Duo as part of an existing smart home
Device management via REST HTTP API
Duo can work in almost any existing Smart Home system using the HTTP REST API.
This means that when implementing automation scripts, it is possible to add controls for devices connected to Duo within the user's existing controller:
Examples of HTTP commands:
- Switch on first channel:
GET http://192.168.1.108/commands/Multiswitch/channel1/on - Switch off second channel
GET http://192.168.1.108/commands/Multiswitch/channel2/off - Getting information about the status of channels:
GET http://192.168.1.108/sensors/Multiswitch/
Smart home control from pressed keys of switches
When you press the key of the switch connected to the Duo, the device sends a UDP packet with information about which key was pressed and to which position it was moved.
The smart home center can execute a GET request to read the received command and perform actions depending on the received information.