ZWavejs2mqtt

I decided to try a GE Fan Switch and when I choose “off” I get an error, switch flips back to on. Setting the fan to low, medium and high work fine.

From the log I see the following. It looks like it try’s to write ‘off vs ‘0’. Is this configuration I could change? I confirmed that if I send a ‘0’ manually by posting a MQTT message the fan will turn off. The "off’ is coming for Home Assistant.

`2021-01-26 02:10:15.974 INFO ZWAVE: Success zwave api call writeValue 
2021-01-26 02:10:16.015 INFO ZWAVE: Node 16: value updated: 112-0-3 0 => 0
2021-01-26 02:10:48.559 INFO MQTT: Message received on zwavejs/Master_Fan/switch_multilevel/endpoint_0/currentValue/set, '255'
2021-01-26 02:10:48.562 INFO MQTT: Message received on zwavejs/Master_Fan/switch_multilevel/endpoint_0/targetValue/set, '50'
2021-01-26 02:10:48.563 INFO ZWAVE: Writing 50 to 38-0-targetValue
2021-01-26 02:10:48.656 INFO ZWAVE: Node 16: value updated: 38-0-currentValue 24 => 50
2021-01-26 02:10:59.506 INFO MQTT: Message received on zwavejs/Master_Fan/switch_multilevel/endpoint_0/currentValue/set, '255'
2021-01-26 02:10:59.510 INFO MQTT: Message received on zwavejs/Master_Fan/switch_multilevel/endpoint_0/targetValue/set, '24'
2021-01-26 02:10:59.512 INFO ZWAVE: Writing 24 to 38-0-targetValue
2021-01-26 02:10:59.637 INFO ZWAVE: Node 16: value updated: 38-0-currentValue 50 => 24
2021-01-26 02:11:03.013 INFO MQTT: Message received on zwavejs/Master_Fan/switch_multilevel/endpoint_0/currentValue/set, '0'
2021-01-26 02:12:10.256 INFO MQTT: Message received on zwavejs/Master_Fan/switch_multilevel/endpoint_0/currentValue/set, '255'
2021-01-26 02:12:10.298 INFO MQTT: Message received on zwavejs/Master_Fan/switch_multilevel/endpoint_0/targetValue/set, '99'
2021-01-26 02:12:10.300 INFO ZWAVE: Writing 99 to 38-0-targetValue
2021-01-26 02:12:10.398 INFO ZWAVE: Node 16: value updated: 38-0-currentValue 24 => 99
2021-01-26 02:12:20.091 INFO MQTT: Message received on zwavejs/Master_Fan/switch_multilevel/endpoint_0/currentValue/set, '255'
2021-01-26 02:12:20.094 INFO MQTT: Message received on zwavejs/Master_Fan/switch_multilevel/endpoint_0/targetValue/set, '24'
2021-01-26 02:12:20.096 INFO ZWAVE: Writing 24 to 38-0-targetValue
2021-01-26 02:12:20.209 INFO ZWAVE: Node 16: value updated: 38-0-currentValue 99 => 24
2021-01-26 02:12:26.524 INFO MQTT: Message received on zwavejs/Master_Fan/switch_multilevel/endpoint_0/currentValue/set, '255'
2021-01-26 02:12:26.530 INFO MQTT: Message received on zwavejs/Master_Fan/switch_multilevel/endpoint_0/targetValue/set, 'off'
2021-01-26 02:12:26.532 INFO ZWAVE: Writing off to 38-0-targetValue
2021-01-26 02:12:26.535 ERROR ZWAVE: Error while writing off on 38-0-targetValue: Command not valid for Multilevel Switch Command not valid for Multilevel Switch
Error: Command not valid for Multilevel Switch
    at ZwaveClient.writeValue (/usr/src/app/lib/ZwaveClient.js:2199:17)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
2021-01-26 02:12:26.537 ERROR ZWAVE: Unable to write off on 38-0-targetValue
2021-01-26 02:18:11.131 INFO MQTT: Message received on zwavejs/Master_Fan/switch_multilevel/endpoint_0/currentValue/set, '0'
`

Waytogo ! ZwVe2js will be the official zwave integration . Check next beta :slight_smile:

1 Like

I am having a weird issue where my zwave temp sensors are having strange fluctuations in reading. Has anyone encountered this? They are MultiSensor 6.
image
image
image