语言
Service tree
灯#2 · light属性 11动作 3
灯
#2 · light
Properties
开关
#1 · on
- 格式
- bool
- 读写
- R / W / N
- 值
- —
亮度
#2 · brightness
- 格式
- uint8
- 读写
- R / W / N
- 值
- 1 ~ 100,步长 1 percentage
默认上电状态
#3 · default-power-on-state
- 格式
- uint8
- 读写
- R / W / N
- 值
- 0断电记忆1上电打开2上电关闭
已工作时间
#4 · working-time
- 格式
- uint32
- 读写
- R / N
- 值
- 0 ~ 1440,步长 1 minutes
亮度调节值
#5 · brightness-delta
- 格式
- uint8
- 读写
- 值
- 1 ~ 30,步长 1 percentage
开灯次数
#6 · light-on-times
- 格式
- uint16
- 读写
- R / N
- 值
- 0 ~ 1000,步长 1 times
模式
#7 · mode
- 格式
- uint8
- 读写
- R / W / N
- 值
- 0空场景1阅读模式2观屏模式
夜灯开关
#8 · night-light-switch
- 格式
- bool
- 读写
- R / W / N
- 值
- —
夜间亮度
#9 · night-brightness
- 格式
- uint8
- 读写
- R / W / N
- 值
- 1 ~ 30,步长 1 percentage
启用时间段(格式为:00:00:00-00:00:00)
#10 · enable-time-period
- 格式
- string
- 读写
- R / W / N
- 值
- —
环境适应
#12 · auto-lighting
- 格式
- bool
- 读写
- R / W / N
- 值
- —
Actions
开关状态切换
#1 · toggle
亮度+
#2 · brightness-up
入参
#5亮度调节值uint8
亮度-
#3 · brightness-down
入参
#5亮度调节值uint8
延时#3 · delay属性 3
延时
#3 · delay
Properties
延时
#1 · delay
- 格式
- bool
- 读写
- R / W / N
- 值
- —
延时时间
#2 · delay-time
- 格式
- uint32
- 读写
- R / W / N
- 值
- 1 ~ 60,步长 1 minutes
延时剩余时间
#3 · delay-remain-time
- 格式
- uint32
- 读写
- R / N
- 值
- 1 ~ 60,步长 1 minutes
物理控制锁(童锁)#4 · physical-controls-locked属性 1
物理控制锁(童锁)
#4 · physical-controls-locked
Properties
物理控制锁
#1 · physical-controls-locked
- 格式
- bool
- 读写
- R / W / N
- 值
- —
专注模式#6 · focus-mode属性 4
专注模式
#6 · focus-mode
Properties
开关
#1 · on
- 格式
- bool
- 读写
- R / W / N
- 值
- —
专注时长
#2 · focus-time
- 格式
- uint8
- 读写
- R / W / N
- 值
- 1 ~ 90,步长 1 minutes
休息时长
#3 · rest-time
- 格式
- uint8
- 读写
- R / W / N
- 值
- 1 ~ 90,步长 1 minutes
循环次数
#4 · recycle-number
- 格式
- uint8
- 读写
- R / W / N
- 值
- 1 ~ 60,步长 1 times
存在传感器#7 · occupancy-sensor属性 4
存在传感器
#7 · occupancy-sensor
Properties
有人无人状态
#1 · occupancy-status
- 格式
- uint8
- 读写
- R / N
- 值
- 0无效状态1无人2有人
无人判定时长
#2 · no-one-determine-time
- 格式
- float
- 读写
- R / W / N
- 值
- 0.5 ~ 30,步长 0.5 minutes
触发有人有效距离
#3 · detection-distance
- 格式
- uint8
- 读写
- R / W / N
- 值
- 0近档1远档
使能开关
#4 · enable-switch
- 格式
- bool
- 读写
- R / W / N
- 值
- —
主光源#8 · light属性 1
主光源
#8 · light
Properties
开关
#1 · on
- 格式
- bool
- 读写
- R / W / N
- 值
- —
背光源#9 · light属性 1
背光源
#9 · light
Properties
开关
#1 · on
- 格式
- bool
- 读写
- R / W / N
- 值
- —
自定义服务#5 · yeelight属性 13事件 2
自定义服务
#5 · yeelight
Properties
开灯并延时关灯
#1 · on-then-delayoff
- 格式
- uint8
- 读写
- W
- 值
- 1 ~ 60,步长 1 minutes
久坐次数(检测到有人并持续X分钟就上报1)
#3 · long-sit-count
- 格式
- uint16
- 读写
- R / N
- 值
- 0 ~ 100,步长 1
久坐检测功能开关
#4 · long-sit-detect
- 格式
- bool
- 读写
- R / N / W
- 值
- —
环境光不足持续时长(关灯零点上报10分钟间隔上报)
#5 · low-light-duration
- 格式
- uint32
- 读写
- R / N
- 值
- 0 ~ 1440,步长 1 minutes
开关环境光不足的通知
#6 · low-light-detect
- 格式
- bool
- 读写
- R / N / W
- 值
- —
灯光状态阅读/观屏/其他/关灯(零点后强制上报1次)
#7 · light-state
- 格式
- uint8
- 读写
- R / N
- 值
- 0Off1Reading2Screen3Other
自动息屏开关
#8 · screen-auto-off
- 格式
- bool
- 读写
- R / N / W
- 值
- —
久坐时间设置
#9 · long-sit-duration
- 格式
- uint16
- 读写
- R / N / W
- 值
- 30 ~ 120,步长 10 minutes
1:环境光不足;0:环境光正常(此值决定APP是否提醒)
#10 · low-light-state
- 格式
- uint8
- 读写
- R / N
- 值
- 0Normal Light1Low Light
app写1则设备关闭环境光不足提示
#11 · close-lowlight-alarm
- 格式
- uint8
- 读写
- W
- 值
- 1Close Lowlight Alarm
app写1则设备关闭久坐提示
#12 · close-longsit-alarm
- 格式
- uint8
- 读写
- W
- 值
- 1Close Longsit Alarm
1:检测到久坐;0:没有久坐(此值决定APP是否提醒)
#13 · long-sit-state
- 格式
- uint8
- 读写
- R / N
- 值
- 0Long Sit Exit1Long Sit
workmode
#14 · workmode
- 格式
- uint8
- 读写
- R / N
- 值
- 1Main2Bgnd3Both
Events
入座开灯
#1 · on-by-human-detect
离坐关灯
#2 · off-by-human-detect
