I have an Arduino Mega 2560 connected to AIO's MQTT broker via an ethernet shield and its working great - I have (5) feeds up and running.
Tonight, I took things one step further and added a ZigBee network using XBee radios. The coordinator is connected to my Mega, and its talking to a single router on a remote breadboard. The radios are configured in AT command mode. All of this too is working great.
I have a toggle switch on my dashboard that controls a relay (via a transistor that's connected to a digital output pin on my router). The relay drives a lamp. There is some latency, and some messages get lost, but on average, the system is working well.
Question - I have a hard-wired switch connected to my Mega that's also controlling the relay circuit. Is it possible to synchronize the two switches (the switch on my dashboard and the hard-wired switch on my breadboard)? That is, can I send a message feed to the toggle switch on my AIO dashboard to keep it in sync with my hard-wired switch?
Help is much appreciated!