I have a TCP relay board which is controlled by a function. I want to be able to control each relay from two sources, namely a dashboard switch and also a Google Home (Nora) switch. What is the best way to ensure the display on the dashboard and in Google Home app both reflect the current state of the switch?
I worked out if I connect both switch outputs to the activating function and also feed each switch output back to the input of the other switch it works. The only down side is, when operating the switch from Google Home, the message gets sent twice to the relay board. Not a major problem but surely there is a better way?