Hi,
My project is receive and transmit the switch status.
When receving the status change, the switch didn't change status. I don't where was I wrong?
If you know, please share it with me. Thank you very much!
The receiving data from MQTT:
Your problem is that the switch node is looking at msg.payload and expecting it to be a Boolean true or false but your msg.payload is an object.
You need to add a change node like this:
[{"id":"58d031cdf59c82dd","type":"change","z":"56ddfd60db026782","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.d.mp3[0]","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":320,"wires":[["4c7b54e310541d11","41c8a7a79718265a"]]}]
Hello @zenofmud ,
Thank you very much for your help. I will try with your suggestions.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.