High,
I have a switch button which controls a pump by sending an ON String or an OFF string. That works fine if I switch the button from ON to OFF by means of the Node-red panel.
Now I want to control this switch button by means of a Node-Red input message ON or OFF, and the switch should show its new state - either ON or OFF - on my Node-Red display.
What I have to do to obtain this behaviour?
High,
thanks for your prompt answer.
Since my payload messages are strings "PN" for pump on and "PF" for pump off. my MQTT input node should send "PN" and "PF"?
thanks, Alfitaly