You tap for a particular action
Your command gets directed to the cloud
Local router receives the cloud signal and bypasses it to the gateway
Gateway decodes the meaning of the signal
The decoded massage is sent from gateway to the receiver with Zigbee communication protocol
The switchboard module actuates the action in realtime.