语言
Service tree
灯#2 · light属性 10动作 5
灯
#2 · light
Properties
总开关
#1 · on
- 格式
- bool
- 读写
- R / W / N
- 值
- —
整灯亮度
#2 · brightness
- 格式
- uint8
- 读写
- R / W / N
- 值
- 1 ~ 100,步长 1
模式
#7 · mode
- 格式
- uint8
- 读写
- R / W / N
- 值
- 0空场景(灯不在任何情况模式时,上报该属性值)4日光5月光(夜间)模式7温馨8电视模式(影院模式)9阅读模式10电脑模式11会客模式12娱乐模式13唤醒模式14黄昏模式15助眠模式16我的模式117我的模式218我的模式319我的模式420护眼模式
默认上电状态
#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
智能场景#4 · scene属性 4
智能场景
#4 · scene
Properties
亮度增加
#1 · brightness-add
- 格式
- bool
- 读写
- W
- 值
- —
亮度减少
#2 · brightness-dec
- 格式
- bool
- 读写
- W
- 值
- —
亮度切换
#3 · brightness-switch
- 格式
- bool
- 读写
- W
- 值
- —
开或切换亮度
#4 · on-or-brightness
- 格式
- bool
- 读写
- W
- 值
- —
功能设置#5 · function属性 8
功能设置
#5 · function
Properties
默认灯光
#1 · user-save
- 格式
- uint8
- 读写
- R / W / N
- 值
- 0Off1On
灯光变化
#2 · dimming
- 格式
- uint8
- 读写
- R / W / N
- 值
- 0Gradient1Immediately
起夜灯模式
#3 · night-switch
- 格式
- uint8
- 读写
- R / W / N
- 值
- 0Off1On
类型识别
#4 · type
- 格式
- uint8
- 读写
- R / N
- 值
- 0Ambient1No Ambient2Standard3Multi-function
人体感应功能
#5 · body-sensor
- 格式
- bool
- 读写
- R / W / N
- 值
- —
学习模式
#6 · learning
- 格式
- bool
- 读写
- R / W / N
- 值
- —
自动调光模式
#7 · automatic
- 格式
- bool
- 读写
- R / W / N
- 值
- —
学习时间
#8 · learning-time
- 格式
- uint8
- 读写
- R / W / N
- 值
- 1 ~ 120,步长 1
遥控器#6 · remote属性 14
遥控器
#6 · 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
上光源#7 · light属性 2
上光源
#7 · light
Properties
上光源开关
#1 · on
- 格式
- bool
- 读写
- R / W / N
- 值
- —
上光源亮度
#2 · brightness
- 格式
- uint8
- 读写
- R / W / N
- 值
- 1 ~ 100,步长 1
下光源#8 · light属性 2
下光源
#8 · light
Properties
下光源开关
#1 · on
- 格式
- bool
- 读写
- R / W / N
- 值
- —
下光源亮度
#2 · brightness
- 格式
- uint8
- 读写
- R / W / N
- 值
- 1 ~ 100,步长 1
辅灯#9 · ambient-light属性 2
辅灯
#9 · ambient-light
Properties
辅灯开关
#1 · on
- 格式
- bool
- 读写
- R / W / N
- 值
- —
辅灯亮度
#2 · brightness
- 格式
- uint8
- 读写
- R / W / N
- 值
- 1 ~ 100,步长 1
