Last Updated on : 2022-01-17 05:20:04download
This topic describes the standard instruction set of dimmer switches (tgkg).
Code | Name | Data type | Value |
---|---|---|---|
colour_data | Colored light | String | {} |
temp_value | Color temperature value | Integer | {“min”:0,“max”:1000,“scale”:0,“step”:1} |
light_mode | Indicator light status setting | Enum | {“range”:[“none”,“relay”,“pos”]} |
relay_status | Power status setting | Enum | {“range”:[“off”,“on”,“memory”]} |
work_mode | Mode | Enum | {“range”:[“light_white”]} |
switch_led_1 | Switch 1 | Boolean | {} |
switch_led_2 | Switch 2 | Boolean | {} |
switch_led_3 | Switch 3 | Boolean | {} |
brightness_min_1 | Minimum brightness 1 | Integer | {“min”:10,“max”:1000,“scale”:0,“step”:1} |
brightness_min_2 | Minimum brightness 2 | Integer | {“min”:10,“max”:1000,“scale”:0,“step”:1} |
brightness_min_3 | Minimum brightness 3 | Integer | {“min”:10,“max”:1000,“scale”:0,“step”:1} |
brightness_max_1 | Maximum brightness 1 | Integer | {“min”:10,“max”:1000,“scale”:0,“step”:1} |
brightness_max_2 | Maximum brightness 2 | Integer | {“min”:10,“max”:1000,“scale”:0,“step”:1} |
brightness_max_3 | Maximum brightness 3 | Integer | {“min”:10,“max”:1000,“scale”:0,“step”:1} |
bright_value_1 | Brightness value 1 | Integer | {“min”:10,“max”:1000,“scale”:0,“step”:1} |
bright_value_2 | Brightness value 2 | Integer | {“min”:10,“max”:1000,“scale”:0,“step”:1} |
bright_value_3 | Brightness value 3 | Integer | {“min”:10,“max”:1000,“scale”:0,“step”:1} |
countdown_1 | Countdown of switch 1 | Integer | {“unit”:“s”,“min”:0,“max”:86400,“scale”:0,“step”:1} |
countdown_2 | Countdown of switch 2 | Integer | {“unit”:“s”,“min”:0,“max”:86400,“scale”:0,“step”:1} |
countdown_3 | Countdown of switch 3 | Integer | {“unit”:“s”,“min”:0,“max”:86400,“scale”:0,“step”:1} |
led_type_1 | Light source type 1 | Enum | {“range”:[“led”,“incandescent”,“halogen”]} |
led_type_2 | Light source type 2 | Enum | {“range”:[“led”,“incandescent”,“halogen”]} |
led_type_3 | Light source type 3 | Enum | {“range”:[“led”,“incandescent”,“halogen”]} |
colour_data
instruction controls the color change of the light in the form of hue, saturation, and value (HSV).
Examples of sending instructions are as follows:
{
"commands":[
{
"code":"colour_data",
"value":{
"h":201,
"s":511,
"v":899
}
}
]
}
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback