I installed the switch yesterday using the Inovelli driver, all works well except that fan changes made from the switch itself do not update the status of the fan on the dashboards.
If i change the state of the fan from Hubitat the dashboard does update.
I can see the the button presses in the device event history.
I'm seeing a similar issue Inovelli 2-Channel Smart Plug NZW37. If I hit refresh it will update. however, you need to use the latest driver build from vendor. I haven't tested my w36 yet.
Ahh i see a new driver was released yesterday after I installed this
Updated the driver and its now updating the dashboard, however when turn the fan off at the wall control it updates the dashboard with the value of "High"
I suspect this code is the culprit (around line 249)
if (childDevice) {
childDevice.sendEvent(name: "switch", value: cmd.value ? "on" : "off")
if (ep == 2) {
if (cmd.value == 1) {
childDevice.sendEvent(name: "speed", value: "auto")
} else if (cmd.value > 1 && cmd.value <= 33) {
childDevice.sendEvent(name: "speed", value: "low")
} else if (cmd.value > 33 && cmd.value <= 66) {
childDevice.sendEvent(name: "speed", value: "medium")
} else if (cmd.value > 66) {
childDevice.sendEvent(name: "speed", value: "high")
} else { childDevice.sendEvent(name: "speed", value: "high")
}
changing else statement to set the value to "off" makes it work as expected.
dev:1772020-07-12 06:10:11.020 pm errorjava.lang.NullPointerException: Cannot get property 'deviceNetworkId' on null object on line 281 (componentRefresh)