I have an esp32 sending data to a MQTT server and a node-red flow subscribed which then turns relays on and off. All of the controls work perfectly but I would like to have something in the UI showing if the relays are on or off. I tried using the switches in the dashboard node and I read in the help tab it sends a true/false msg payload so I changed the code on the esp32 to send a true/false instead of 0/1(used to control gpio pins). I also tried changing the code to use on/off and still nothing.
I will try upload a photo of what my UI looks like now. So I would like those switches to turn on when the relevant relay turns on but I am open to any idea that would accomplish the same goal.
Thanks in advance