It’s entirely possible that I’m mis-remembering, but I thought at one point, the zwave dimmer switch generic DTH would leave the level state variable at at it’s previous value when the switch was turned off. Now, when the switch is turned off by any means (at the switch, in the ST app, through voice control, etc), the Level is getting set to 0. Though, In a quick look through recent commits to the DTH, I don’t see anything obvious that would change this behavior.
I’m currently pegging this as the culprit for an issue I’m having with turning on these dimmer switches with my harmony remotes. It appears that for dimmers, Harmony may be using a set level command to turn on the switch, and using the value that’s stored in the level state for the new level. So, if I just use the ‘on’ button on my harmony remote to turn on the lights, it sets the level to ‘0’, effectively doing nothing. I then have to use the level rocker on the remote to increase the level, thereby actually turning the light on.
I have a ticket in with Logitech already, but I kind of want to confirm that I’m not crazy and there was actually a change in the DTH behavior. I’m also not quite sure this behavior is appropriate. When the light is turned on from the switch, it will return to the previously set brightness value; however, by setting the state variable to 0 in ST, there’s no way to keep track of what that value is from within ST