MIOT HomeMIOT Home
MIOT
#xiaomi.light.lamp40

xiaomi.light.lamp40

urn:miot-spec-v2:device:light:0000A001:xiaomi-lamp40:1:0000C818
语言
Service tree
灯
#2 · light
属性 14动作 5

Properties

开关
#1 · on
格式
bool
读写
R / W / N
值
—
色温
#3 · color-temperature
格式
uint16
读写
R / W / N
值
1800 ~ 6500,步长 1 kelvin
亮度
#2 · brightness
格式
uint8
读写
R / W / N
值
1 ~ 100,步长 1 percentage
颜色
#4 · color
格式
uint32
读写
R / W / N
值
0 ~ 16777215,步长 1 rgb
当前颜色模式
#6 · current-color-mode
格式
uint8
读写
R / N
值
1颜色
2色温
模式
#7 · mode
格式
uint8
读写
R / W / N
值
0空场景(灯不在任何情况模式时,上报该属性值)
1落日
2晴空
3蜜桃
4薰衣草
5蓝调
6森林
7沙滩
8雪山
9围炉
10晨曦
11冥想
12极光
13海浪
14幻境
15樱花
16萤火
17月晕
18落叶
21夜灯
默认上电状态
#9 · default-power-on-state
格式
uint8
读写
R / W / N
值
0断电记忆
1上电关闭
2上电打开
开灯渐亮时长
#10 · light-on-gradient-time
格式
float
读写
R / W / N
值
0 ~ 10,步长 0.5 seconds
关灯渐灭时长
#11 · light-off-gradient-time
格式
float
读写
R / W / N
值
0 ~ 10,步长 0.5 seconds
夜灯亮度
#17 · night-brightness
格式
uint8
读写
R / W / N
值
1 ~ 100,步长 1 percentage
智能夜灯开关
#18 · night-light-switch
格式
bool
读写
R / W / N
值
—
亮度调节值
#19 · brightness-delta
格式
uint8
读写
值
1 ~ 30,步长 1 percentage
色温调节值
#20 · color-temperature-delta
格式
uint16
读写
值
200 ~ 2400,步长 100 kelvin
夜灯启用时间段(格式为:0x12002359代表12:00到23:59)
#21 · enable-time-period
格式
uint32
读写
R / W / N
值
0 ~ 593044313,步长 1

Actions

开关状态切换
#1 · toggle
亮度+
#2 · brightness-up
入参
#19亮度调节值uint8
亮度-
#3 · brightness-down
入参
#19亮度调节值uint8
色温+
#4 · color-temperature-up
入参
#20色温调节值uint16
色温-
#5 · color-temperature-down
入参
#20色温调节值uint16
延时
#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
值
0 ~ 60,步长 1 minutes
上灯
#4 · light
属性 1

Properties

开关
#1 · on
格式
bool
读写
R / W / N
值
—
主灯
#5 · light
属性 1

Properties

开关
#1 · on
格式
bool
读写
R / W / N
值
—
yeelight
#6 · yeelight
属性 6

Properties

开灯并延时关灯
#3 · on-then-delayoff
格式
uint8
读写
W
值
1 ~ 60,步长 1 minutes
切换光源
#4 · light-sourc
格式
uint8
读写
R / N / W
值
1All
2BottomOnly
3TopOnly
模式管理列表(ID1|ID2...IDx)
#6 · mode-list
格式
string
读写
R / N / W
值
—
夜灯自定义色温
#7 · night-light-ct
格式
uint16
读写
R / N / W
值
1800 ~ 3000,步长 100
开灯并调整亮度
#8 · on-then-lightness
格式
uint8
读写
R / N / W
值
1 ~ 100,步长 1 percentage
开灯并设置灯光
#9 · on-then-switch
格式
uint8
读写
R / N / W
值
1Sunset
2Sky
3Peach
4Lavender
5Blues
6Forest
7Beach
8Snow Mountain
9Fireside
10Dawn
11Meditation
12Aurora
13Wave
14Illusion
15Sakura
16Firefly
17Moon Halo
18Autumn Leaves