Hi, I would like to have optimistic mode for Z-Wave the same way we have it for mqtt.
When a state_topic is not available, the switch will work in optimistic mode. In this mode, the switch will immediately change state after every command. Otherwise, the switch will wait for state confirmation from the device (message from state_topic).
This would be useful for the GE Z-Wave and other dimmers that don’t immediately report their status so the switch flips back to the previous position for a few seconds before settling in the correct position. Setting polling and refresh does not correct this behavior. The only way right now to fix this is to set Z-Wave Command Dim Rate to 1 so that the transition happens fast enough for the flip to not happen. This is not ideal though and optimistic mode may be a better method.
I just wanted to add, there is also a “delay” zwave device_config parameter which can be used (see below), which seems to delay for the specified time in seconds before refreshing the value (where can I find the documentation for these z-wave device_config params?). This is helpful for these GE Dimmers. … however, this does not prevent the state from falsely flipping back and forth on the HA UI before this time. My point in bringing this up is this optimistic mode for z-wave will likely need to somehow take into account this delay parameter as well. Like, maybe it could be “optimistic” about the state of the light until after the delay period… at which point it will update the actual values???
I did some searching on github and it looks like the main issue may be that the Z-wave delay attribute just doesn’t work. There have been multiple issues opened and they just get closed with no resolution. This problem seems to be pretty wide-spread, so it is concerning this has been an issue for so long. I would like to buy more Z-wave dimmers, but not before this issue is fixed.
Same issue here, just picked up a few GE Dimmers, they are terrible compared to Leviton, not saying Leviton switches don’t have their own issues but they are bad.
+1 for this - I just switched over from Vera and the z-wave support in Home Assistant is… disappointing. I use HA mainly as a HomeKit bridge and this screws all kinds of things up in HomeKit, sometimes lights won’t turn off because it thinks they’re already off, or vice-versa.