MIOT HomeMIOT Home
米家桌面学习灯 Max
#xiaomi.light.max

米家桌面学习灯 Max

urn:miot-spec-v2:device:light:0000A001:xiaomi-max:1:0000C801
語言
Service tree
灯
#2 · light
屬性 11動作 3

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

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

Properties

物理控制锁
#1 · physical-controls-locked
格式
bool
讀寫
R / W / N
值
—
专注模式
#6 · focus-mode
屬性 4

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

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

Properties

开关
#1 · on
格式
bool
讀寫
R / W / N
值
—
背光源
#9 · light
屬性 1

Properties

开关
#1 · on
格式
bool
讀寫
R / W / N
值
—
自定义服务
#5 · yeelight
屬性 13事件 2

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
值
0Off
1Reading
2Screen
3Other
自动息屏开关
#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 Light
1Low 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 Exit
1Long Sit
workmode
#14 · workmode
格式
uint8
讀寫
R / N
值
1Main
2Bgnd
3Both

Events

入座开灯
#1 · on-by-human-detect
离坐关灯
#2 · off-by-human-detect