I have used version 4.24 before.
Currently, all my devices (sensors / relays) are connected via MQTT. Everything works locally via MQTT and Home Assistant. Google Home allows me to control via the Internet, including voice control - so I would like to see the real state of relays in both Google Home and HA.
In version 4.29 we get a message, for example relay number 1 and 3 turned on, the others turned off:
{"relay1":{"on":1},"relay2":{"on":0},"relay3":{"on":1},"relay4":{"on":0},"relay5":{"on":0},"relay6":{"on":0},"relay7":{"on":0},"relay8":{"on":0},"relay9":{"on":0},"relay10":{"on":0},"relay11":{"on":0},"relay12":{"on":0},"relay13":{"on":0},"relay14":{"on":0},"relay15":{"on":0},"relay16":{"on":0},"relay17":{"on":0},"relay18":{"on":0},"relay19":{"on":0},"relay20":{"on":0},"relay21":{"on":0},"relay22":{"on":0},"relay23":{"on":0},"relay24":{"on":0},"relay25":{"on":0},"relay26":{"on":0},"relay27":{"on":0},"relay28":{"on":0},"relay29":{"on":0},"relay30":{"on":0},"relay31":{"on":0},"relay32":{"on":0},"input1":{"on":0},"input2":{"on":0},"input3":{"on":0},"input4":{"on":0},"input5":{"on":0},"input6":{"on":0}}
Maybe you know some method in Node-Red to cut the state of only one relay from such a message and pass it to the selected output as JSON, e.g. {"relay1": {"on": 1}} ?
Currently, all my devices (sensors / relays) are connected via MQTT. Everything works locally via MQTT and Home Assistant. Google Home allows me to control via the Internet, including voice control - so I would like to see the real state of relays in both Google Home and HA.
In version 4.29 we get a message, for example relay number 1 and 3 turned on, the others turned off:
{"relay1":{"on":1},"relay2":{"on":0},"relay3":{"on":1},"relay4":{"on":0},"relay5":{"on":0},"relay6":{"on":0},"relay7":{"on":0},"relay8":{"on":0},"relay9":{"on":0},"relay10":{"on":0},"relay11":{"on":0},"relay12":{"on":0},"relay13":{"on":0},"relay14":{"on":0},"relay15":{"on":0},"relay16":{"on":0},"relay17":{"on":0},"relay18":{"on":0},"relay19":{"on":0},"relay20":{"on":0},"relay21":{"on":0},"relay22":{"on":0},"relay23":{"on":0},"relay24":{"on":0},"relay25":{"on":0},"relay26":{"on":0},"relay27":{"on":0},"relay28":{"on":0},"relay29":{"on":0},"relay30":{"on":0},"relay31":{"on":0},"relay32":{"on":0},"input1":{"on":0},"input2":{"on":0},"input3":{"on":0},"input4":{"on":0},"input5":{"on":0},"input6":{"on":0}}
Maybe you know some method in Node-Red to cut the state of only one relay from such a message and pass it to the selected output as JSON, e.g. {"relay1": {"on": 1}} ?