The device allows integration with other systems using the REST protocol.
REST API can operate in three modes:
Static key - each REST command must include a static key generated by the application.
Dynamic key - a variable key generated using an algorithm.
Key not required - the key can have any value in the hex system, e.g., "00".
Changing the mode is possible in the advanced device settings, in the Remote Access section. In the REST API Calls section, sample commands are presented that you can use to control the device.
The protocol is disabled by default. Therefore, to test the operation of the commands, select the Key not required mode.
Remember to set the REST mode to one of the secure options after testing: Static key, Dynamic key, or Disabled.
REST API Calls
Set the green color to the maximum value of 255 - RGB palette
Set the color to 0 - RGB palette, blocking time for programmers to 4000s
Get color - RGB palette
Set the green color to 0 - HSV palette
Reduce brightness to 50% without changing hue and saturation - HSV palette
Reduce saturation to 50% without changing hue and brightness - HSV palette
Get color - HSV palette
Set color temperature and brightness to 50%
Get temperature
Setting device state change time to 1000 ms
Retrieving device state change time
Turning on LEDs
Turning off LEDs
Retrieving device state
Changes the device state to the opposite. After 5s the device returns to the default state or schedule.