语言
Service tree
灯#2 · light属性 11动作 5
灯
#2 · light
Properties
开关
#1 · on
- 格式
- bool
- 读写
- R / W / N
- 值
- —
亮度
#2 · brightness
- 格式
- uint8
- 读写
- R / W / N
- 值
- 1 ~ 100,步长 1
色温
#3 · color-temperature
- 格式
- uint16
- 读写
- R / W / N
- 值
- 3000 ~ 6400,步长 1
模式
#7 · mode
- 格式
- uint8
- 读写
- R / W / N
- 值
- 0空场景(灯不在任何情况模式时,上报该属性值)4日光5月光(夜间)模式7温馨8电视模式(影院模式)9阅读模式10电脑模式11会客模式12娱乐模式13唤醒模式14黄昏模式15助眠模式
默认上电状态
#9 · default-power-on-state
- 格式
- uint8
- 读写
- R / W / N
- 值
- 0断电记忆1上电打开2上电关闭
助眠模式
#13 · sleep-aid-mode
- 格式
- bool
- 读写
- R / W / N
- 值
- —
唤醒模式
#14 · wake-up-mode
- 格式
- bool
- 读写
- R / W / N
- 值
- —
awake-渐变持续时长
#15 · gradual-duration
- 格式
- uint8
- 读写
- 值
- 1 ~ 60,步长 1
asleep-渐变持续时长
#16 · gradual-duration
- 格式
- uint8
- 读写
- 值
- 1 ~ 60,步长 1
渐变终点亮度
#17 · gradual-end-point-brightness
- 格式
- uint8
- 读写
- 值
- 0 ~ 255,步长 1
渐变起点亮度
#18 · gradual-start-point-brightness
- 格式
- uint8
- 读写
- 值
- 0 ~ 255,步长 1
Actions
开关状态切换
#1 · toggle
查询唤醒模式配置
#2 · get-awake-config
出参
#15awake-渐变持续时长uint8#17渐变终点亮度uint8#18渐变起点亮度uint8
查询助眠模式配置
#3 · get-asleep-config
出参
#16asleep-渐变持续时长uint8#17渐变终点亮度uint8#18渐变起点亮度uint8
设置唤醒模式配置
#4 · set-awake-config
入参
#15awake-渐变持续时长uint8#17渐变终点亮度uint8#18渐变起点亮度uint8
设置助眠模式配置
#5 · set-asleep-config
入参
#16asleep-渐变持续时长uint8#17渐变终点亮度uint8#18渐变起点亮度uint8
智能场景#3 · scene属性 8
智能场景
#3 · scene
Properties
亮度增加
#2 · brightness-add
- 格式
- bool
- 读写
- W
- 值
- —
亮度减少
#3 · brightness-dec
- 格式
- bool
- 读写
- W
- 值
- —
亮度切换
#4 · brightness-switch
- 格式
- bool
- 读写
- W
- 值
- —
开或切换亮度
#5 · on-or-brightness
- 格式
- bool
- 读写
- W
- 值
- —
色温增加
#6 · colortemperature-add
- 格式
- bool
- 读写
- W
- 值
- —
色温减少
#7 · colortemperature-dec
- 格式
- bool
- 读写
- W
- 值
- —
色温切换
#8 · colortemperature-sw
- 格式
- bool
- 读写
- W
- 值
- —
开或切换色温
#9 · on-or-colortemp
- 格式
- bool
- 读写
- W
- 值
- —
遥控器#8 · remote属性 14
遥控器
#8 · remote
Properties
遥控器功能开关
#1 · remote-switch
- 格式
- uint8
- 读写
- R / W / N
- 值
- 0Off1On
添加遥控
#2 · remote-add
- 格式
- uint8
- 读写
- W
- 值
- 1Remote-add
删除遥控
#3 · remote-del
- 格式
- int32
- 读写
- W
- 值
- -2147483648 ~ 2147483647,步长 1
遥控1-4类型
#4 · remote-ltype
- 格式
- int32
- 读写
- R / N
- 值
- -2147483648 ~ 2147483647,步长 1
遥控5-8类型
#5 · remote-htype
- 格式
- int32
- 读写
- R / N
- 值
- -2147483648 ~ 2147483647,步长 1
遥控1
#6 · remote-a
- 格式
- int32
- 读写
- R / N
- 值
- -2147483648 ~ 2147483647,步长 1
遥控2
#7 · remote-b
- 格式
- int32
- 读写
- R / N
- 值
- -2147483648 ~ 2147483647,步长 1
遥控3
#8 · remote-c
- 格式
- int32
- 读写
- R / N
- 值
- -2147483648 ~ 2147483647,步长 1
遥控4
#9 · remote-d
- 格式
- int32
- 读写
- R / N
- 值
- -2147483648 ~ 2147483647,步长 1
遥控5
#10 · remote-e
- 格式
- int32
- 读写
- R / N
- 值
- -2147483648 ~ 2147483647,步长 1
遥控6
#11 · remote-f
- 格式
- int32
- 读写
- R / N
- 值
- -2147483648 ~ 2147483647,步长 1
遥控7
#12 · remote-g
- 格式
- int32
- 读写
- R / N
- 值
- -2147483648 ~ 2147483647,步长 1
遥控8
#13 · remote-h
- 格式
- int32
- 读写
- R / N
- 值
- -2147483648 ~ 2147483647,步长 1
遥控指令
#14 · remote-cmd
- 格式
- int32
- 读写
- N
- 值
- -2147483648 ~ 2147483647,步长 1
功能设置#4 · function属性 8
功能设置
#4 · function
Properties
默认灯光
#2 · user-save
- 格式
- uint8
- 读写
- R / W / N
- 值
- 0Off1On
灯光变化
#3 · dimming
- 格式
- uint8
- 读写
- R / W / N
- 值
- 0Gradient1Immediately
起夜灯模式
#5 · night-switch
- 格式
- uint8
- 读写
- R / W / N
- 值
- 0Off1On
延时关灯
#6 · delay
- 格式
- uint8
- 读写
- W
- 值
- 1 ~ 60,步长 1
渐变时间设置,字节[0]开灯渐变时间,字节[1]关灯渐变时间,字节[2]模式渐变时间
#8 · fade-time
- 格式
- uint32
- 读写
- R / W / N
- 值
- 0 ~ 4294967295,步长 1
最低亮度千分比-0恢复默认
#9 · lowest-brightness
- 格式
- uint32
- 读写
- R / W / N
- 值
- 0 ~ 500,步长 1
字节[0]BIT0-锁定重置操作 BIT1-锁定设置参数 BIT2-锁定遥控器配对和情景保存 BIT3-AC开关 BIT4-自定义情景;字节[1]预留0;字节[2]旋钮亮度档位;字节[3]旋钮色温档位
#10 · lock-state
- 格式
- uint32
- 读写
- R / W / N
- 值
- 0 ~ 4294967295,步长 1
参数重置
#18 · factory-reset
- 格式
- uint32
- 读写
- W
- 值
- 0Reset All Params
