I have updated the driver to use the built in “Hampton Bay Fan Component” driver for the fan child device. I was going to ask Hubitat to implement a “Fan Component” driver but found this one while poking around and it seems to work well. If you have included the device already before updating the driver to today’s version you can:
Update the main LZW36 driver in Hubitat. You can use the Hubitat Package Manager to do this or use the “Import” button from inside the page that displays the driver code.
Select the Fan child device and change it’s driver to the Hampton Bay one.
I think that made it worse. Now after a breaker flip to reconnect only a couple button presses causes a disconnect. Before it would take quite a while. Doesn’t look like I can change back to the Inovelli child devices either.
When turning the fan on or off from the physical switch, the “speed” state in the child device is not updated, only the “switch” state. Since the Dashboard tile relies on that attribute, it doesn’t reflect the state of the fan. Sending a digital on/off to the child device does toggle both attributes.
Tested this change… almost fixed except for the “off” state (it’s falling through to the else value of “high”). I made this change on line 241 to resolve it. Limited testing seems to work for me!
if (cmd.value == 0) {
childDevice.sendEvent(name: "speed", value: "off")
} else if (cmd.value == 1) {
Edit: Alternatively, perhaps the default else state should be “off”?
For the record, how many child devices should be present? Right now I have 4 which doesn’t seem correct (two for Fan and two for Light). Two get automatically populated when adding device (non-removable). Then an additional two show up after changing the default driver to the inovelli supplied driver (removable).
The two items named “Fan” and “Light” are non removable. I’ve removed the switch entirely and added again only to get the same behavior (4 child devices). If I remove the other two they eventually automatically show up again.
All 4 child devices correctly control the switch, but then the physical switch un-syncs and requires the air gap be pulled. I’m monitoring the forums for that other problem.