语言
Service tree
灯#2 · light属性 6动作 1
灯
#2 · light
Properties
开关
#1 · on
- 格式
- bool
- 读写
- R / W / N
- 值
- —
模式
#2 · mode
- 格式
- uint8
- 读写
- R / W / N
- 值
- 0日光模式1夜光模式
亮度
#3 · brightness
- 格式
- uint8
- 读写
- R / W / N
- 值
- 1 ~ 100,步长 1
色温
#5 · color-temperature
- 格式
- uint16
- 读写
- R / W / N
- 值
- 2700 ~ 6500,步长 1
流光功能
#6 · flow
- 格式
- uint8
- 读写
- R / W / N
- 值
- 0Auto
关机延时时间
#7 · off-delay-time
- 格式
- uint32
- 读写
- R / W / N
- 值
- 0 ~ 180,步长 1
Actions
开关状态切换
#1 · toggle
风扇#3 · fan属性 6动作 1
风扇
#3 · fan
Properties
开关
#1 · on
- 格式
- bool
- 读写
- R / W / N
- 值
- —
风机档位
#2 · fan-level
- 格式
- uint8
- 读写
- R / W / N
- 值
- 0低1中2高
模式
#7 · mode
- 格式
- uint8
- 读写
- R / W / N
- 值
- 0Auto
工作状态
#8 · status
- 格式
- uint8
- 读写
- R / N
- 值
- 0Idle1Busy
故障
#9 · fault
- 格式
- uint8
- 读写
- R / N
- 值
- 0No faults
关机延时时间
#10 · off-delay-time
- 格式
- uint32
- 读写
- R / W / N
- 值
- 0 ~ 480,步长 1
Actions
开关状态切换
#1 · toggle
yl light私有服务#4 · yl-light属性 3动作 4
yl light私有服务
#4 · yl-light
Properties
上电是否开灯
#1 · init-power-opt
- 格式
- uint8
- 读写
- R / W / N
- 值
- 1On2Off
夜灯时间段(en, dly, em, eh, sm, sh)
#2 · night-time
- 格式
- int64
- 读写
- R / W / N
- 值
- 0 ~ 281474976710655,步长 1
例如"ct 2700 100"
#3 · scene-param
- 格式
- string
- 读写
- R / W / N
- 值
- —
Actions
设置灯光情景
#1 · set-scene
入参
#3例如"ct 2700 100"string
亮度切换(智能联动)
#2 · brightness-cycle
色温切换(智能联动)
#3 · ct-cycle
风扇档位切换(智能联动)
#4 · fan-gears-cycle
yl fan私有服务#5 · yl-fan属性 1动作 1
yl fan私有服务
#5 · yl-fan
Properties
上电是否开风扇
#1 · fan-init-power-opt
- 格式
- uint8
- 读写
- R / W / N
- 值
- 0Off1On
Actions
风扇档位切换(智能联动)
#1 · fan-gears-cycle
