First try Node-Red
Posted: Sunday 19 January 2020 17:05
Hello,
At this moment i have running MQTT, Node-Red and Domoticz.
And trying to connect those.
I have an sensor that is send data to MQTT that i can read with the "debug node" but I'm not able to handle that msg to Domoticz.
So i have made an msg inject to try if I can manual send text to Domoticz, but without any result.
'What do i wrong?
At this moment i have running MQTT, Node-Red and Domoticz.
And trying to connect those.
I have an sensor that is send data to MQTT that i can read with the "debug node" but I'm not able to handle that msg to Domoticz.
So i have made an msg inject to try if I can manual send text to Domoticz, but without any result.
'What do i wrong?
Code: Select all
[
{
"id": "3402e571.9a885a",
"type": "function",
"z": "e0840401.ca73f8",
"name": "payload",
"func": "msg.topic = msg.payload.name;\n\nmsg.payload = {};\nmsg.payload.idx = 168;\nmsg.payload.svalue = msg.payload.name;\nreturn msg; ",
"outputs": 1,
"noerr": 0,
"x": 400,
"y": 80,
"wires": [
[
"387eaffe.4ce8",
"b6dc8975.8aaf08"
]
]
}
]