MIOT HomeMIOT Home
Viomi S9
#viomi.vacuum.v18

Viomi S9

urn:miot-spec-v2:device:vacuum:0000A006:viomi-v18:2
Version v2 v1
Language
Service tree
Robot Cleaner
#2 · vacuum
11 properties8 actions1 events

Properties

State
#1 · status
Format
uint8
Access
R / N
Value
0Sleep
1Idle
2Paused
3Go Charging
4Charging
5Sweeping
6Sweeping And Mopping
7Mopping
Error
#2 · fault
Format
uint32
Access
R / N
Value
0Text
1Text
2Text
3Text
4Text
5Text
6Text
7Text
8Text
9Text
10Text
11Text
12Text
13Text
14Text
15Text
16Text
17Text
20Text
21Text
22Text
23Text
24Text
18Text
25Text
26Text
Wide Dynamic Range Mode
#11 · wdr-mode
Format
uint8
Access
R / W / N
Value
0Text
1Text
2Text
Door State
#12 · door-state
Format
uint8
Access
R / N
Value
0Text
1Text
2Text
3Text
Contact State
#13 · contact-state
Format
uint8
Access
R / N
Value
0Text
1Text
Text
#14 · stream-address
Format
string
Access
Value
—
Text
#15 · contact-state
Format
uint16
Access
R / N
Value
0 ~ 999, step 1 minutes
Text
#16 · contact-state
Format
uint16
Access
R / N
Value
0 ~ 1200, step 1 none
Text
#17 · mute
Format
uint8
Access
R / W / N
Value
0 ~ 10, step 1 none
Text
#4 · sweep-type
Format
uint8
Access
R / W / N
Value
0Text
2Text
3Text
4Text
5Text
Mode
#19 · mode
Format
uint8
Access
R / W / N
Value
0Text
1Text
2Text
3Text

Actions

Start
#1 · start-sweep
Stop
#2 · stop-sweeping
Pause
#3 · pause
Returning To Charge
#4 · start-charge
Stop Returning
#5 · stop-massage
Start
#6 · start-mop
Start
#7 · start-only-sweep
Start
#8 · start-sweep-mop

Events

Text
#2 · exception-occurred
Arguments
#2Erroruint32
Battery
#3 · battery
1 properties

Properties

Text
#1 · battery-level
Format
uint8
Access
R / N
Value
0 ~ 100, step 1 percentage
扫地机
#4 · viomi-vacuum
36 properties5 actions4 events

Properties

#1 · repeat-state
Format
uint8
Access
R / W / N
Value
0Text
1Text
#3 · remember-state
Format
uint8
Access
W / N / R
Value
0Text
1Text
#6 · mop-route
Format
uint8
Access
R / N / W
Value
0Text
1Text
Text
#8 · side-brush-life
Format
uint8
Access
R / N
Value
0 ~ 100, step 1 percentage
Text
#9 · side-brush-hours
Format
uint8
Access
R / N
Value
0 ~ 180, step 1 hours
Text
#10 · main-brush-life
Format
uint8
Access
R / N
Value
0 ~ 100, step 1 percentage
Text
#11 · main-brush-hours
Format
uint16
Access
R / N
Value
0 ~ 360, step 1 hours
Text
#12 · hypa-life
Format
uint8
Access
R / N
Value
0 ~ 100, step 1 percentage
Text
#13 · hypa-hours
Format
uint8
Access
R / N
Value
0 ~ 180, step 1 hours
Text
#14 · mop-life
Format
uint8
Access
R / N
Value
0 ~ 100, step 1 percentage
Text
#15 · mop-hours
Format
uint8
Access
R / N
Value
0 ~ 180, step 1 hours
#16 · direction
Format
uint8
Access
W
Value
1Text
2Text
3Text
4Text
5Text
#17 · suction-grade
Format
uint8
Access
W / R / N
Value
0Text
1Text
2Text
3Text
出水量大小
#18 · water-grade
Format
uint8
Access
R / N / W
Value
0Text
1Text
2Text
当前储存的地图数量
#23 · map-num
Format
uint8
Access
R / N
Value
0 ~ 5, step 1 none
设备时区属性
#24 · time-zone
Format
int32
Access
R / N / W
Value
-99999 ~ 99999, step 1 none
清扫开始时间,时间戳,单位秒
#25 · clean-start-time
Format
int64
Access
R / N
Value
0 ~ 9999999999, step 1 seconds
清扫使用时间,单位秒
#26 · clean-use-time
Format
uint32
Access
R / N
Value
0 ~ 99999, step 1 seconds
清扫总面积,单位m2
#27 · clean-area
Format
uint32
Access
R / N
Value
0 ~ 9999, step 1 none
清扫地图url
#28 · clean-map-url
Format
string
Access
R / N
Value
—
#29 · clean-mode
Format
uint8
Access
R / N
Value
0全局
1沿边
2区域
3定点
#30 · clean-way
Format
uint8
Access
R / N
Value
0扫地
1扫拖
2拖地
Text
#31 · cur-lang
Format
string
Access
R / N / W
Value
—
Text
#32 · cur-map-id
Format
uint32
Access
R / N
Value
0 ~ 2147483647, step 1 none
Text
#33 · cur-map-url
Format
string
Access
R / N / W
Value
—
Text
#34 · last-update-time
Format
int64
Access
R / N
Value
0 ~ 9999999999, step 1 seconds
Text
#35 · consumable-index
Format
uint8
Access
W
Value
0Text
1Text
2Text
3Text
Text
#36 · clean-room-mode
Format
uint8
Access
W
Value
0Text
1Text
Text
#37 · clean-room-oper
Format
uint8
Access
W
Value
0Text
1Text
2Text
Text
#38 · clean-room-ids
Format
string
Access
W
Value
—
Text
#39 · has-map
Format
uint8
Access
R / N
Value
0Text
1Text
Text
#40 · has-newmap
Format
uint8
Access
R / N
Value
0Text
1Text
2Text
Text
#41 · dust-collection
Format
uint8
Access
R / N / W
Value
0Text
1Text
custom-room-clean
#42 · custom-room-clean
Format
string
Access
R / N / W
Value
—
cleantimes
#43 · cleantimes
Format
uint8
Access
W
Value
1 ~ 10, step 1
swept-area-type
#44 · swept-area-type
Format
uint8
Access
R / N / W
Value
0RoomClean
1AllClean
2PartClean

Actions

Text
#7 · reset-map
Text
#10 · set-calibration
Text
#11 · reset-consumable
Input
#35Textuint8
Text
#13 · set-room-clean
Input
#36Textuint8#37Textuint8#38Textstring
set-custom-clean
#14 · set-custom-clean

Events

Text
#1 · mop-remind
Text
#2 · wait-remind
Text
#3 · low-remind
Text
#4 · clean-end
Arguments
#25清扫开始时间,时间戳,单位秒int64#26清扫使用时间,单位秒uint32#27清扫总面积,单位m2uint32#28清扫地图urlstring#29uint8#30uint8
预约、勿扰相关
#5 · order
21 properties2 actions

Properties

预约id
#1 · order-id
Format
uint8
Access
W
Value
0 ~ 100, step 1 none
是否开启该条预约
#2 · enable
Format
uint8
Access
W
Value
0
1
转换成二进制后,每一位代表一天,1 - 预约 0 - 无预约,bit0-bit6 星期日-星期六
#3 · day
Format
uint16
Access
W
Value
0 ~ 256, step 1 none
预约小时(24小时制)
#4 · hour
Format
uint8
Access
W
Value
0 ~ 23, step 1 none
预约分钟
#5 · minute
Format
uint8
Access
W
Value
0 ~ 59, step 1 none
是否重复
#6 · repeat
Format
uint8
Access
W
Value
0
1
#8 · clean-way
Format
uint8
Access
W
Value
0扫地
1扫拖
2拖地
预约吸力大小
#9 · suction
Format
uint8
Access
W
Value
0
1
2
3
预约出水量大小
#10 · water
Format
uint8
Access
W
Value
0
1
2
是否二次清扫
#11 · twice-clean
Format
uint8
Access
W
Value
0
1
预约的地图id,若没地图则传0
#12 · mapid
Format
uint32
Access
W
Value
0 ~ 99999999, step 1 none
预约的房间数量
#13 · room-count
Format
uint8
Access
W
Value
0 ~ 64, step 1 none
预约的房间数据JSON字符串[{name:'房间1',id:10},{name:'房间2‘,id:11},{...},{...}...]
#14 · room-data
Format
string
Access
W
Value
—
勿扰是否打开
#15 · dnd-enable
Format
uint8
Access
R / N / W
Value
0
1
勿扰开始小时
#16 · dnd-start-hour
Format
uint8
Access
W / R / N
Value
0 ~ 23, step 1 hours
勿扰开始分钟
#17 · dnd-start-minute
Format
uint8
Access
R / N / W
Value
0 ~ 59, step 1 minutes
勿扰结束小时
#18 · dnd-end-hour
Format
uint8
Access
R / N / W
Value
0 ~ 23, step 1 hours
勿扰结束分钟
#19 · dnd-end-minute
Format
uint8
Access
R / N / W
Value
0 ~ 59, step 1 minutes
时区参数
#20 · dnd-timezone
Format
int32
Access
R / N / W
Value
-99999 ~ 99999, step 1 none
timestamp
#21 · timestamp
Format
int64
Access
N / W / R
Value
-999999 ~ 999999, step 1 none
N组预约数据逗号分割,每组数据内的具体数据用下划线_分割 {order_id}_{order_enable}_{week}_{hour}_{minute}_{repeat}_{mode}_{suction}_{water}_{twice}_{mapid}_{room_size}_{roomid}_{roomname}
#22 · orderdata
Format
string
Access
R / N
Value
—

Actions

删除一组预约
#2 · del
Input
#1预约iduint8
获取预约数据
#3 · get
Output
#22N组预约数据逗号分割,每组数据内的具体数据用下划线_分割 {order_id}_{order_enable}_{week}_{hour}_{minute}_{repeat}_{mode}_{suction}_{water}_{twice}_{mapid}_{room_size}_{roomid}_{roomname}string
指哪扫那 划区 虚拟墙
#6 · point-zone
4 properties4 actions

Properties

指哪扫那目标点,XY逗号分割,如’3.23,6.89‘
#1 · target-point
Format
string
Access
W / R / N
Value
—
划区的四个顶点坐标 'x1,y1,x2,y2,x3,y3,x4,y4'
#2 · zone-points
Format
string
Access
W
Value
—
restrict-points
#3 · restrict-points
Format
string
Access
W
Value
—
multiple-zone-points
#4 · multiple-zone-points
Format
string
Access
W
Value
—

Actions

开始指哪扫那清扫
#1 · start-point-clean
暂停指哪扫那清扫
#2 · pause-point-clean
开始区域清扫
#5 · start-zone-clean
暂停区域清扫
#6 · pause-zone-clean
地图相关
#7 · map
15 properties12 actions

Properties

#1 · map-type
Format
uint8
Access
R / N / W
Value
0上传到url0
1上传到url1
2上传到url2
地图id
#2 · map-id
Format
int64
Access
R / N / W
Value
0 ~ 9999999999, step 1 none
地图名字
#4 · map-name
Format
string
Access
R / N / W
Value
—
语言参数
#5 · lang
Format
string
Access
W
Value
—
要合并的房间id参数,逗号分割,如:‘10,11,12’表示合并房间id为10,11,12的房间;
#6 · arrange-room-ids
Format
string
Access
W
Value
—
目标房间id
#7 · target-room-id
Format
uint8
Access
W
Value
0 ~ 128, step 1 none
分割线段的两个端点坐标,如:'3.45,6.78|4.56,-3.45'
#8 · split-points
Format
string
Access
W
Value
—
房间名称
#9 · room-name
Format
string
Access
W
Value
—
#10 · cur-cleaning-path
Format
string
Access
R / N
Value
—
地图列表数据[{name : '地图1',id:1585849584,cur : true},{name : '地图2',id : 1585849784,cur : false}]
#11 · map-list
Format
string
Access
R / N
Value
—
Text
#12 · last-point-index
Format
int32
Access
Value
0 ~ 2147483647, step 1 none
Text
#13 · oper-result
Format
string
Access
R / N
Value
—
Text
#14 · auto-area-id
Format
int64
Access
R / N
Value
0 ~ 9999999999, step 1 none
Text
#15 · map-download-url
Format
string
Access
Value
—
Text
#16 · new-map-oper
Format
uint8
Access
Value
0 ~ 2, step 1 none

Actions

上传指定类型的地图
#1 · upload-by-maptype
上传指定id的地图
#2 · upload-by-mapid
设置当前地图
#3 · set-cur-map
Input
#2地图idint64#15Textstring
del-map
#5 · del-map
Input
#2地图idint64
重命名地图
#7 · rename-map
Input
#2地图idint64#4地图名字string
合并房间
#8 · arrange-room
Input
#2地图idint64#5语言参数string#6要合并的房间id参数,逗号分割,如:‘10,11,12’表示合并房间id为10,11,12的房间;string#14Textint64
Output
#13Textstring
分割房间
#9 · split-room
Input
#2地图idint64#5语言参数string#7目标房间iduint8#8分割线段的两个端点坐标,如:'3.45,6.78|4.56,-3.45'string#14Textint64
房间重命名
#10 · rename-room
Input
#2地图idint64#7目标房间iduint8#9房间名称string#14Textint64
获取地图列表数据
#11 · get-map-list
Output
#11地图列表数据[{name : '地图1',id:1585849584,cur : true},{name : '地图2',id : 1585849784,cur : false}]string
Text
#12 · get-cleaning-path
Input
#12Textint32
Output
#10string
Text
#13 · set-new-map
Text
#14 · deal-new-map
Input
#16Textuint8
声音相关
#8 · voice
6 properties3 actions

Properties

Text
#3 · target-voice
Format
string
Access
N / W / R
Value
—
Text
#4 · cur-voice
Format
string
Access
R / N
Value
—
Text
#5 · download-status
Format
uint8
Access
R / N
Value
0Text
1Text
Text
#6 · download-progress
Format
uint8
Access
R / N
Value
0 ~ 100, step 1 none
Text
#7 · voice-url
Format
string
Access
W
Value
—
Text
#8 · voice-mdfive
Format
string
Access
W
Value
—

Actions

寻找扫地机
#2 · find-device
Text
#3 · download-voice
Input
#3Textstring#7Textstring#8Textstring
Text
#4 · get-downloadstatus
Output
#6Textuint8#3Textstring#4Textstring#5Textuint8