Does anyone see what I am doing wrong when trying to control a zwave wall plug through mqtt with following command
I can control is through the ui of Zwave to MQTT
Does anyone see what I am doing wrong when trying to control a zwave wall plug through mqtt with following command
I can control is through the ui of Zwave to MQTT
Use MQTT Explorer to see what is transmitted when you switch on.off your plug
I have tried that but the only change I see is the currentValue. I can’t see the command where the targetValue is set.
The log file show following when i control the plug through the UI but when i try “zwave/Living/5/37/0/targetValue/set” true or false nothing happens.
2021-08-19 18:03:01.963 INFO ZWAVE: Writing false to 5-37-0-targetValue
2021-08-19 18:03:02.050 INFO ZWAVE: Node 5: value updated: 37-0-currentValue true => false
2021-08-19 18:03:02.053 INFO ZWAVE: Success zwave api call writeValue { success: true, message: 'Success zwave api call', result: undefined }
2021-08-19 18:03:02.123 INFO ZWAVE: Node 5: value updated: 37-0-currentValue false => false
2021-08-19 18:03:02.904 INFO ZWAVE: Calling api writeValue with args: [
{ nodeId: 5, commandClass: 37, endpoint: 0, property: 'targetValue' },
true,
[length]: 2
]
2021-08-19 18:03:02.908 INFO ZWAVE: Writing true to 5-37-0-targetValue
2021-08-19 18:03:02.991 INFO ZWAVE: Node 5: value updated: 37-0-currentValue false => true
2021-08-19 18:03:02.992 INFO ZWAVE: Success zwave api call writeValue { success: true, message: 'Success zwave api call', result: undefined }
2021-08-19 18:03:03.073 INFO ZWAVE: Node 5: value updated: 37-0-currentValue true => true
2021-08-19 18:03:03.334 INFO ZWAVE: Node 5: value updated: 37-0-currentValue true => true
2021-08-19 18:03:07.236 INFO ZWAVE: Node 5: value updated: 50-0-value-65537 0 => 0
2021-08-19 18:03:07.302 INFO ZWAVE: Node 5: value updated: 50-0-value-66049 2.91 => 2.87
2021-08-19 18:03:07.374 INFO ZWAVE: Node 5: value updated: 50-0-value-66561 230.45 => 229.23
2021-08-19 18:03:07.453 INFO ZWAVE: Node 5: value updated: 50-0-value-66817 0.03 => 0.03
In your first post I see you published with json. Did you try raw ?
Yes also tried raw.
But I wonder why the mqtt explorer doesn’t pick anything up when I use the UI of “zwave to mqtt” to turn the plug on or off?
Because when you use the control panel it is not using MQTT. The control panel interacts with the javascript driver API directly.