I have noticed unexpected behaviour in the UI when I turn a Z-Wave dimmer from ON to OFF.
When I turn the light off, the UI shows the following: The Light Icon changes from ON to OFF, then back to ON, then fades to OFF over a few seconds.
The Dimmer is recognised by the Z-Wave JS Integration and the “light” entity (on/off-switch icon) has been added to the UI. There are no other automations, scripts etc. related to this device.
I have posted the Z-Wave JS Debug logs below.
{'command': 'node.set_value',
'messageId': 'd1738xxxxxxxxxxxxxxxxxxxxxxxxxx',
'nodeId': 31,
'value': 0,
'valueId': {'ccVersion': 3,
'commandClass': 38,
'commandClassName': 'Multilevel Switch',
'endpoint': 0,
'metadata': {'label': 'Target value',
'max': 99,
'min': 0,
'readable': True,
'type': 'number',
'writeable': True},
'property': 'targetValue',
'propertyName': 'targetValue',
'value': 0}}
2021-04-12 16:09:49 DEBUG (MainThread) [zwave_js_server] Received message:
WSMessage(type=<WSMsgType.TEXT: 1>, data='{"type":"event","event":{"source":"node","event":"value updated","nodeId":31,"args":{"commandClassName":"Multilevel Switch","commandClass":38,"endpoint":0,"property":"currentValue","newValue":0,"prevValue":99,"propertyName":"currentValue"}}}', extra='')
2021-04-12 16:09:49 DEBUG (MainThread) [homeassistant.components.zwave_js.entity] [light.dimmer_spare_room] Value currentValue/None changed to: 0
2021-04-12 16:09:49 DEBUG (MainThread) [zwave_js_server] Received message:
WSMessage(type=<WSMsgType.TEXT: 1>, data='{"type":"result","success":true,"messageId":"d1738xxxxxxxxxxxxxxxxxxxxxxxxxx","result":{"success":true}}', extra='')
2021-04-12 16:09:50 DEBUG (MainThread) [zwave_js_server] Received message:
WSMessage(type=<WSMsgType.TEXT: 1>, data='{"type":"event","event":{"source":"node","event":"value updated","nodeId":31,"args":{"commandClassName":"Multilevel Switch","commandClass":38,"endpoint":0,"property":"currentValue","newValue":81,"prevValue":0,"propertyName":"currentValue"}}}', extra='')
2021-04-12 16:09:50 DEBUG (MainThread) [homeassistant.components.zwave_js.entity] [light.dimmer_spare_room] Value currentValue/None changed to: 81
2021-04-12 16:09:51 DEBUG (MainThread) [zwave_js_server] Received message:
WSMessage(type=<WSMsgType.TEXT: 1>, data='{"type":"event","event":{"source":"node","event":"value updated","nodeId":31,"args":{"commandClassName":"Multilevel Switch","commandClass":38,"endpoint":0,"property":"currentValue","newValue":63,"prevValue":81,"propertyName":"currentValue"}}}', extra='')
2021-04-12 16:09:51 DEBUG (MainThread) [homeassistant.components.zwave_js.entity] [light.dimmer_spare_room] Value currentValue/None changed to: 63
2021-04-12 16:09:52 DEBUG (MainThread) [zwave_js_server] Received message:
WSMessage(type=<WSMsgType.TEXT: 1>, data='{"type":"event","event":{"source":"node","event":"value updated","nodeId":31,"args":{"commandClassName":"Multilevel Switch","commandClass":38,"endpoint":0,"property":"currentValue","newValue":27,"prevValue":63,"propertyName":"currentValue"}}}', extra='')
2021-04-12 16:09:52 DEBUG (MainThread) [homeassistant.components.zwave_js.entity] [light.dimmer_spare_room] Value currentValue/None changed to: 27
2021-04-12 16:09:53 DEBUG (MainThread) [zwave_js_server] Received message:
WSMessage(type=<WSMsgType.TEXT: 1>, data='{"type":"event","event":{"source":"node","event":"value updated","nodeId":31,"args":{"commandClassName":"Multilevel Switch","commandClass":38,"endpoint":0,"property":"currentValue","newValue":0,"prevValue":27,"propertyName":"currentValue"}}}', extra='')
2021-04-12 16:09:53 DEBUG (MainThread) [homeassistant.components.zwave_js.entity] [light.dimmer_spare_room] Value currentValue/None changed to: 0
2021-04-12 16:09:54 DEBUG (MainThread) [zwave_js_server] Received message:
WSMessage(type=<WSMsgType.TEXT: 1>, data='{"type":"event","event":{"source":"node","event":"value updated","nodeId":31,"args":{"commandClassName":"Multilevel Switch","commandClass":38,"endpoint":0,"property":"currentValue","newValue":0,"prevValue":0,"propertyName":"currentValue"}}}', extra='')
2021-04-12 16:09:54 DEBUG (MainThread) [homeassistant.components.zwave_js.entity] [light.dimmer_spare_room] Value currentValue/None changed to: 0