Working with the switch

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:


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.