MIOT HomeMIOT Home
Yeelight K2智能开关(屏显四键)
#yeelink.switch.sw20

Yeelight K2智能开关(屏显四键)

urn:miot-spec-v2:device:switch:0000A003:yeelink-sw20:1:0000D010
Version v2 v1
Language
Service tree
First Switch Service
#2 · switch
2 properties1 actions

Properties

Key 1
#1 · on
Format
bool
Access
R / W / N
Value
—
Mode
#2 · mode
Format
uint8
Access
R / W / N
Value
0Wired And Wireless
1Wireless

Actions

Toggle
#1 · toggle
Second Switch Service
#3 · switch
2 properties1 actions

Properties

Key 2
#1 · on
Format
bool
Access
R / W / N
Value
—
Mode
#2 · mode
Format
uint8
Access
R / W / N
Value
0Wired And Wireless
1Wireless

Actions

Toggle
#1 · toggle
Third Switch Service
#4 · switch
2 properties1 actions

Properties

Key 3
#1 · on
Format
bool
Access
R / W / N
Value
—
Mode
#2 · mode
Format
uint8
Access
R / W / N
Value
0Wired And Wireless
1Wireless

Actions

Toggle
#1 · toggle
Fourth Switch Service
#5 · switch
2 properties1 actions

Properties

Key 4
#1 · on
Format
bool
Access
R / W / N
Value
—
Mode
#2 · mode
Format
uint8
Access
R / W / N
Value
0Wired And Wireless
1Wireless

Actions

Toggle
#1 · toggle
Switch Sensor
#6 · switch-sensor
1 properties3 events

Properties

Button Type
#1 · button-type
Format
uint8
Access
Value
1First Button
2Second Button
3Third Button
4Fourth Button

Events

Click
#1 · click
Arguments
#1Button Typeuint8
Double Click
#2 · double-click
Arguments
#1Button Typeuint8
Long Press
#3 · long-press
Arguments
#1Button Typeuint8
basic-func-setting
#12 · basic-func-setting
15 properties1 actions

Properties

#1 · device-mode
Format
uint32
Access
R / W / N
Value
0 ~ 4294967295, step 1
#2 · sw-timer-off
Format
uint16
Access
R / W / N
Value
0 ~ 65535, step 1
#3 · sw-timer-off-first
Format
uint16
Access
R / W / N
Value
1 ~ 36000, step 1
#4 · pwr-on-bits
Format
uint8
Access
R / W / N
Value
0 ~ 31, step 1
#5 · switch-mutex
Format
uint8
Access
R / W / N
Value
0 ~ 31, step 1
#6 · key-relay-map
Format
uint32
Access
R / W / N
Value
0 ~ 4294967295, step 1
#7 · sw-flex-off-time
Format
uint8
Access
R / W / N
Value
1 ~ 20, step 1
#8 · sw-timer-off-second
Format
uint16
Access
R / W / N
Value
1 ~ 36000, step 1
#9 · sw-timer-off-third
Format
uint16
Access
R / W / N
Value
1 ~ 36000, step 1
#10 · sw-timer-off-fouth
Format
uint16
Access
R / W / N
Value
1 ~ 36000, step 1
#11 · all-switch-status
Format
uint16
Access
W
Value
0 ~ 65535, step 1
#17 · light-off-time
Format
uint16
Access
R / W / N
Value
30 ~ 600, step 1
light-off-level
#18 · light-off-level
Format
uint8
Access
R / W / N
Value
0 ~ 2, step 1
#19 · light-on-level
Format
uint8
Access
R / W / N
Value
0 ~ 2, step 1
#20 · time-set
Format
uint32
Access
W
Value
1767196800 ~ 4294967295, step 1

Actions

all-onoff
#1 · all-onoff
Input
#11uint16
adv-func-setting
#13 · adv-func-setting
3 properties

Properties

#1 · ability
Format
uint32
Access
R / N
Value
0 ~ 4294967295, step 1
#2 · switch-one-fo-mode
Format
uint32
Access
R / N / W
Value
0 ~ 4294967295, step 1
#3 · sk-fir-fou-setting
Format
uint32
Access
R / W / N
Value
0 ~ 4294967295, step 1
switch-dual-ctrl
#14 · switch-dual-ctrl
9 properties

Properties

#1 · sk-ch-cmd
Format
uint16
Access
W
Value
0 ~ 65535, step 1
#2 · remoter-a
Format
uint32
Access
R / N
Value
0 ~ 4294967295, step 1
#3 · remoter-b
Format
uint32
Access
R / N
Value
0 ~ 4294967295, step 1
#4 · remoter-c
Format
uint32
Access
R / N
Value
0 ~ 4294967295, step 1
#5 · remoter-d
Format
uint32
Access
R / N
Value
0 ~ 4294967295, step 1
#6 · remoter-e
Format
uint32
Access
R / N
Value
0 ~ 4294967295, step 1
#7 · remoter-f
Format
uint32
Access
R / N
Value
0 ~ 4294967295, step 1
#8 · remoter-g
Format
uint32
Access
R / N
Value
0 ~ 4294967295, step 1
#9 · remoter-h
Format
uint32
Access
R / N
Value
0 ~ 4294967295, step 1