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?
Use a filter node on output to Google and use output from switch to determine current state (not switch output as this does not necessarily represent device state)