I had a thread on these switches about 2 years ago when we were still using OpenZwave and they still give me some issues under Zwave_JS.
My problem is when manually operating these dimmers. It seems like HomeAssistant just gets everything backwards and I’ve been trying to do automations to get around it, but I’m not having much luck.
If HomeAssistant thinks the light is off (but it’s actually on), pressing off on the switch, causes HA to send out a state changed event from off to on. I have an automation that triggers on the zwave_js.value_updated
platform and it also shows a previous_value
of 0 and a ‘current_value’ of 97.
If HomeAssistant thinks the light is on (but it’s actually off), pressing the switch on will send out a state changed from on to off and the automation picks up a previous_value
of 97 and a ‘current_value’ of 0.
If the light is in sync with HomeAssistant and in the “on” state, if I press the switch off, then no state change is sent because HA thinks it should be turning it on and sees it is already on, so it does nothing and the automation shows a previous_value
of 97 and a current_value
of 97.
Going to the developer tools and doing a zwave_js.refresh_value
on the switch gets everything synced up. If I try to do the refresh from my automation, it seems to be hit or miss as to whether it works or not.
Controlling the light when it’s in sync using the UI and not manually pressing the physical switch seems to work normally and I see what I would expect to see when turning the light on/off.
Anyone else had these issues with dimmers before, or have any suggestion on an ok workaround?