zwave-js / zwave-js-ui

Full featured Z-Wave Control Panel UI and MQTT gateway. Built using Nodejs, and Vue/Vuetify
https://zwave-js.github.io/zwave-js-ui
MIT License
987 stars 201 forks source link

[question] want to alter the setPoint of a TRV #2722

Closed janneman001 closed 2 years ago

janneman001 commented 2 years ago

Hi, Thanks for your nice zwave UI.

When i use the command below on a binary switch it works fine with true/false

mosquitto_pub -h mosquitto -t zwve/kitchen/switch/37/0/targetValue/set -m {"value":"false"}

Analoguous i tried to alter the setpoint of a TRV (thermostatic radiator valve).

mosquitto_pub -h mosquitto -t zwve/kitchen/thermostat/67/0/setpoint/1/set -m {"value":15}

however it looks like this does not work. Either i do something wrong or i assume something that is not there yet?

I use a devolo MT02650 and i can alter the setpoint in the UI ( i attach a partial screenshot) Schermafdruk van 2022-10-11 21-11-59

regards Jan

robertsLando commented 2 years ago

@janneman001 Try using mqtt explorer to be sure you are using the correct topic. For example in your screenshot I see you have a typo in thermostAAt, see the duplicated a char.

janneman001 commented 2 years ago

@robertsLando Thanks,

I am sorry for the confusion. I used an screenshot from earlier setup. For clearness i now use english names for location and node.

Schermafdruk van 2022-10-12 12-24-50

janneman001 commented 2 years ago

With: mosquitto_sub -h mosquitto -t zwve/kitchen/thermostat/#

when i change it via the user interface i get: {"time":1665570912408,"value":true,"status":"Awake","nodeId":5} {"time":1665570930517,"value":true,"status":"Asleep","nodeId":5} {"time":1665570939286,"value":true,"status":"Awake","nodeId":5} {"time":1665570939599,"value":17} {"time":1665570939638,"value":17} {"time":1665570940290,"value":18} {"time":1665570940401,"value":18}

In the zwavejs logs: 2022-10-12T10:35:39.593Z SERIAL « 0x010c00040005064303014206a455 (14 bytes) 2022-10-12T10:35:39.594Z SERIAL » [ACK] (0x06) 2022-10-12T10:35:39.598Z CNTRLR [Node 005] [~] [Thermostat Setpoint] setpoint[1]: 17 => 17 [Endpoint 0] 2022-10-12T10:35:39.600Z CNTRLR [Node 005] [~] [Thermostat Setpoint] setpointScale[1]: [Endpoint 0] [internal] 0 => 0 2022-10-12T10:35:39.600Z DRIVER « [Node 005] [REQ] [ApplicationCommand] └─[ThermostatSetpointCCReport] setpoint type: Heating value: 17 °C 2022-10-12T10:35:39.606Z CNTRLR « [Node 005] received current value of setpoint Heating: 17 °C 2022-10-12T10:35:39.610Z SERIAL » 0x010c001305054301010112251287 (14 bytes) 2022-10-12T10:35:39.611Z DRIVER » [Node 005] [REQ] [SendData] │ transmit options: 0x25 │ callback id: 18 └─[ThermostatSetpointCCSet] setpoint type: Heating value: 18 °C 2022-10-12T10:35:39.612Z CNTRLR » [Node 005] querying battery status... 2022-10-12T10:35:39.630Z SERIAL « 0x010c00040005064303014206a455 (14 bytes) 2022-10-12T10:35:39.631Z SERIAL » [ACK] (0x06) 2022-10-12T10:35:39.632Z SERIAL « [CAN] (0x18) 2022-10-12T10:35:39.635Z CNTRLR Failed to execute controller command after 1/3 attempts. Scheduling next try i n 100 ms. 2022-10-12T10:35:39.638Z CNTRLR [Node 005] [~] [Thermostat Setpoint] setpoint[1]: 17 => 17 [Endpoint 0] 2022-10-12T10:35:39.639Z CNTRLR [Node 005] [~] [Thermostat Setpoint] setpointScale[1]: [Endpoint 0] [internal] 0 => 0 2022-10-12T10:35:39.640Z DRIVER « [Node 005] [REQ] [ApplicationCommand] └─[ThermostatSetpointCCReport] setpoint type: Heating value: 17 °C 2022-10-12T10:35:39.738Z SERIAL » 0x010c001305054301010112251287 (14 bytes) 2022-10-12T10:35:39.739Z DRIVER » [Node 005] [REQ] [SendData] │ transmit options: 0x25 │ callback id: 18 └─[ThermostatSetpointCCSet] setpoint type: Heating value: 18 °C 2022-10-12T10:35:39.741Z SERIAL « [ACK] (0x06) 2022-10-12T10:35:39.748Z SERIAL « 0x0104011301e8 (6 bytes) 2022-10-12T10:35:39.748Z SERIAL » [ACK] (0x06) 2022-10-12T10:35:39.750Z DRIVER « [RES] [SendData] was sent: true 2022-10-12T10:35:40.253Z SERIAL « 0x0107001312000033ca (9 bytes) 2022-10-12T10:35:40.254Z SERIAL » [ACK] (0x06) 2022-10-12T10:35:40.257Z DRIVER « [REQ] [SendData] callback id: 18 transmit status: OK

However when i send: mosquitto_pub -h mosquitto -t zwve/kitchen/thermostat/67/0/setpoint/1/set -m {"value":15}

I see {"value":15} with mosquitto_sub but nothing in the log.

robertsLando commented 2 years ago

As I said I need to see the exact topics you have to be sure there is no typo. Please try using mqtt-explorer

Also be sure you are using latest version 8.2.0

janneman001 commented 2 years ago

Thanks, That did the trick. I found i did not escape the \"value\". Works fine now.