Update SetPoint on Domoticz from Node Red

瀏覽次數:181 次
跳到第一則未讀訊息

ulf....@gmail.com

未讀,
2021年9月20日 凌晨1:07:172021/9/20
收件者:MQTT
Not sure if this is Node Red, MQTT or Domoticz related. Crossposted in Slack Node Red and Domoticz forum

I need to change a value on Domoticz using MQTT. The output from domoticz/out looks like this:
Battery: 255
LastUpdate: "2021-09-19 20:19:00"
RSSI: 12
description: ""
dtype: "Thermostat"

hwid: "2"
id: "0014058"
idx: 8
name: "Termostat Stue"
nvalue: 0
stype: "SetPoint"
svalue1: "0.00"
unit: 1

I need to change svalue1, using a mqtt out node, but I cannot find a syntax that is working.
Tried to send a message using a topic like this from an insert node. 

{"idx":8, "svalue1" : "20"}

But that's definitely not the way to go. Can someone please help me out?

Best regards

Ulf 

ulf....@gmail.com

未讀,
2021年9月20日 上午10:19:552021/9/20
收件者:MQTT
Got a solution from Domoticz forum:

Use a function node and send this msg to the mqtt insert node:

msg.payload={"command": "udevice","idx":8, "svalue": "20.5"}
return msg;

Works like a dream
回覆所有人
回覆作者
轉寄
0 則新訊息