There is a dashboard on the NodeRed, which displays the sensors. Now there was a need for a switch, I decided to try espEasy on sonoff on MQTT, everything works, but the problem is that the status of the switch on the dashboard is not updated if I switch through another application from the smartphone.
From the phone I publish: / nameSonoff / gpio / 12
Two messages are published: / nameSonoff / gpio / 12, / nameSonoff / relay / Switch
How do I understand / nameSonoff / relay / Switch is the switch status?
Please tell me how to configure NodeRed, a switch that will track the current state?
Currently in NodeRed: [dashboard switch] -> [output MQTT (subscribed to / nameSonoff / gpio / 12)
If I connect the incoming [input mqtt] signed to (/ nameSonoff / relay / Switch /) to the dashboard switch, then it switches on and switches off immediately when it is switched.