MIOT HomeMIOT Home
Jya 无线台灯(智能版)
#jya.light.sla1

Jya 无线台灯(智能版)

urn:miot-spec-v2:device:light:0000A001:jya-sla1:1
Language
Service tree
Light
#2 · light
5 properties2 actions

Properties

Switch Status
#1 · on
Format
bool
Access
R / W / N
Value
—
Mode
#2 · mode
Format
uint8
Access
R / W / N
Value
0 ~ 255, step 1 none
Brightness
#3 · brightness
Format
uint8
Access
R / W / N
Value
1 ~ 100, step 1 percentage
Power Off Delay Time
#4 · off-delay-time
Format
uint16
Access
R / W / N
Value
0 ~ 7200, step 1 seconds
Device Fault
#5 · fault
Format
uint8
Access
R / N
Value
0 ~ 255, step 1 none

Actions

Brightness Down
#1 · brightness-down
Brightness Up
#2 · brightness-up
Battery
#3 · battery
2 properties1 events

Properties

Battery Level
#1 · battery-level
Format
uint8
Access
R / N
Value
0 ~ 100, step 1 none
Charging State
#2 · charging-state
Format
uint8
Access
R / N
Value
0Charging
1Not charging
3Not chargeable

Events

Low Battery
#1 · low-battery
#4 · jya-light
20 properties6 actions4 events

Properties

远近光
#1 · range
Format
uint8
Access
R / N / W
Value
1近光
2远光
#2 · code
Format
string
Access
R / N
Value
—
#3 · code-cnt
Format
uint8
Access
R / N
Value
0 ~ 255, step 1
亮度档位
#5 · brightness-lv
Format
uint8
Access
R / N / W
Value
1 ~ 5, step 1 none
定时休息提醒状态。关灯时自动清零。
#7 · rest-alert
Format
uint8
Access
R / N / W
Value
0未开启
1工作
2休息
定时休息提醒-工作时间
#8 · work-time
Format
uint16
Access
R / N / W
Value
1 ~ 300, step 1 minutes
定时休息提醒-休息时间
#9 · rest-time
Format
uint16
Access
R / N / W
Value
1 ~ 60, step 1 minutes
倒计时提醒时间
#11 · count-down
Format
uint16
Access
R / N / W
Value
0 ~ 7200, step 1 seconds
音乐模式
#12 · music-mode
Format
uint8
Access
R / N / W
Value
0
1
2
当前音乐播放时间,单位100ms
#13 · music-time
Format
uint16
Access
R / N / W
Value
0 ~ 30000, step 1 none
内置音乐编号
#14 · music-in-id
Format
uint8
Access
R / N / W
Value
0 ~ 255, step 1 none
音乐模式灯效风格
#15 · music-style
Format
uint8
Access
R / N / W
Value
0 ~ 255, step 1 none
音乐模式指令序列,预留
#16 · music-order
Format
string
Access
W
Value
—
预留属性1
#17 · reserved-prop-one
Format
string
Access
R / N / W
Value
—
预留属性2
#18 · reserved-prop-two
Format
string
Access
R / N / W
Value
—
定时提醒剩余时间
#19 · rest-alert-time
Format
uint16
Access
R / N / W
Value
0 ~ 18000, step 1 seconds
倒计时提醒启用标识
#20 · count-down-flag
Format
bool
Access
R / N / W
Value
—
倒计时提醒剩余时间
#21 · count-down-remain
Format
uint16
Access
R / N
Value
0 ~ 7200, step 1 seconds
rest-alert-stamp
#22 · rest-alert-stamp
Format
uint32
Access
R / N / W
Value
1514736000 ~ 4294967295, step 1 seconds
count-down-stamp
#23 · count-down-stamp
Format
uint32
Access
R / N / W
Value
1514736000 ~ 4294967295, step 1 seconds

Actions

#1 · set-code
Input
#2string#3uint8
设置定时休息提醒
#3 · set-rest-alert
Input
#8定时休息提醒-工作时间uint16#9定时休息提醒-休息时间uint16
播放内置音乐。播放过程中要每2s向台灯发送一次,若台灯连续5s未收到该方法,则自动退出音乐模式。
#4 · play-music-in
Input
#13当前音乐播放时间,单位100msuint16#15音乐模式灯效风格uint8#14内置音乐编号uint8
播放外部音乐,预留
#5 · play-music-out
Input
#16音乐模式指令序列,预留string#13当前音乐播放时间,单位100msuint16#15音乐模式灯效风格uint8
预留方法1
#6 · reserved-action-one
Input
#17预留属性1string
预留方法2
#7 · reserved-action-two
Input
#18预留属性2string

Events

#1 · auto-offline
电量耗尽自动关机
#2 · auto-off
预留事件1
#3 · reserved-event-one
预留事件2
#4 · reserved-event-two