語言
Service tree
Robot Cleaner#2 · vacuum屬性 11動作 8事件 1
Robot Cleaner
#2 · vacuum
Properties
工作狀態
#1 · status
- 格式
- uint8
- 讀寫
- R / N
- 值
- 0睡眠1待機2暫停3回充中4充電中5掃地中6掃拖中7拖地中
Error
#2 · fault
- 格式
- uint32
- 讀寫
- R / N
- 值
- 0Text1Text2Text3Text4Text5Text6Text7Text8Text9Text10Text11Text12Text13Text14Text15Text16Text17Text20Text21Text22Text23Text24Text18Text25Text26Text
Wide Dynamic Range Mode
#11 · wdr-mode
- 格式
- uint8
- 讀寫
- R / W / N
- 值
- 0Text1Text2Text
Door State
#12 · door-state
- 格式
- uint8
- 讀寫
- R / N
- 值
- 0Text1Text2Text3Text
Contact State
#13 · contact-state
- 格式
- uint8
- 讀寫
- R / N
- 值
- 0Text1Text
Text
#14 · stream-address
- 格式
- string
- 讀寫
- 值
- —
Text
#15 · contact-state
- 格式
- uint16
- 讀寫
- R / N
- 值
- 0 ~ 999,步長 1 minutes
Text
#16 · contact-state
- 格式
- uint16
- 讀寫
- R / N
- 值
- 0 ~ 1200,步長 1 none
Text
#17 · mute
- 格式
- uint8
- 讀寫
- R / W / N
- 值
- 0 ~ 10,步長 1 none
Text
#4 · sweep-type
- 格式
- uint8
- 讀寫
- R / W / N
- 值
- 0Text2Text3Text4Text5Text
Mode
#19 · mode
- 格式
- uint8
- 讀寫
- R / W / N
- 值
- 0Text1Text2Text3Text
Actions
開始
#1 · start-sweep
停止
#2 · stop-sweeping
暫停
#3 · pause
回充
#4 · start-charge
停止回充
#5 · stop-massage
開始
#6 · start-mop
開始
#7 · start-only-sweep
開始
#8 · start-sweep-mop
Events
Text
#2 · exception-occurred
觸發參數
#2Erroruint32
Battery#3 · battery屬性 1
Battery
#3 · battery
Properties
Text
#1 · battery-level
- 格式
- uint8
- 讀寫
- R / N
- 值
- 0 ~ 100,步長 1 percentage
扫地机#4 · viomi-vacuum屬性 33動作 4事件 4
扫地机
#4 · viomi-vacuum
Properties
#1 · repeat-state
- 格式
- uint8
- 讀寫
- R / W / N
- 值
- 0Text1Text
#3 · remember-state
- 格式
- uint8
- 讀寫
- W / N / R
- 值
- 0Text1Text
#6 · mop-route
- 格式
- uint8
- 讀寫
- R / N / W
- 值
- 0Text1Text
Text
#8 · side-brush-life
- 格式
- uint8
- 讀寫
- R / N
- 值
- 0 ~ 100,步長 1 percentage
Text
#9 · side-brush-hours
- 格式
- uint8
- 讀寫
- R / N
- 值
- 0 ~ 180,步長 1 hours
Text
#10 · main-brush-life
- 格式
- uint8
- 讀寫
- R / N
- 值
- 0 ~ 100,步長 1 percentage
Text
#11 · main-brush-hours
- 格式
- uint16
- 讀寫
- R / N
- 值
- 0 ~ 360,步長 1 hours
Text
#12 · hypa-life
- 格式
- uint8
- 讀寫
- R / N
- 值
- 0 ~ 100,步長 1 percentage
Text
#13 · hypa-hours
- 格式
- uint8
- 讀寫
- R / N
- 值
- 0 ~ 180,步長 1 hours
Text
#14 · mop-life
- 格式
- uint8
- 讀寫
- R / N
- 值
- 0 ~ 100,步長 1 percentage
Text
#15 · mop-hours
- 格式
- uint8
- 讀寫
- R / N
- 值
- 0 ~ 180,步長 1 hours
#16 · direction
- 格式
- uint8
- 讀寫
- W
- 值
- 1Text2Text3Text4Text5Text
#17 · suction-grade
- 格式
- uint8
- 讀寫
- W / R / N
- 值
- 0Text1Text2Text3Text
出水量大小
#18 · water-grade
- 格式
- uint8
- 讀寫
- R / N / W
- 值
- 0Text1Text2Text
当前储存的地图数量
#23 · map-num
- 格式
- uint8
- 讀寫
- R / N
- 值
- 0 ~ 5,步長 1 none
设备时区属性
#24 · time-zone
- 格式
- int32
- 讀寫
- R / N / W
- 值
- -99999 ~ 99999,步長 1 none
清扫开始时间,时间戳,单位秒
#25 · clean-start-time
- 格式
- int64
- 讀寫
- R / N
- 值
- 0 ~ 9999999999,步長 1 seconds
清扫使用时间,单位秒
#26 · clean-use-time
- 格式
- uint32
- 讀寫
- R / N
- 值
- 0 ~ 99999,步長 1 seconds
清扫总面积,单位m2
#27 · clean-area
- 格式
- uint32
- 讀寫
- R / N
- 值
- 0 ~ 9999,步長 1 none
清扫地图url
#28 · clean-map-url
- 格式
- string
- 讀寫
- R / N
- 值
- —
#29 · clean-mode
- 格式
- uint8
- 讀寫
- R / N
- 值
- 0全局1沿边2区域3定点
#30 · clean-way
- 格式
- uint8
- 讀寫
- R / N
- 值
- 0扫地1扫拖2拖地
Text
#31 · cur-lang
- 格式
- string
- 讀寫
- R / N / W
- 值
- —
Text
#32 · cur-map-id
- 格式
- uint32
- 讀寫
- R / N
- 值
- 0 ~ 2147483647,步長 1 none
Text
#33 · cur-map-url
- 格式
- string
- 讀寫
- R / N / W
- 值
- —
Text
#34 · last-update-time
- 格式
- int64
- 讀寫
- R / N
- 值
- 0 ~ 9999999999,步長 1 seconds
Text
#35 · consumable-index
- 格式
- uint8
- 讀寫
- W
- 值
- 0Text1Text2Text3Text
Text
#36 · clean-room-mode
- 格式
- uint8
- 讀寫
- W
- 值
- 0Text1Text
Text
#37 · clean-room-oper
- 格式
- uint8
- 讀寫
- W
- 值
- 0Text1Text2Text
Text
#38 · clean-room-ids
- 格式
- string
- 讀寫
- W
- 值
- —
Text
#39 · has-map
- 格式
- uint8
- 讀寫
- R / N
- 值
- 0Text1Text
Text
#40 · has-newmap
- 格式
- uint8
- 讀寫
- R / N
- 值
- 0Text1Text2Text
Text
#41 · dust-collection
- 格式
- uint8
- 讀寫
- R / N / W
- 值
- 0Text1Text
Actions
Text
#7 · reset-map
Text
#10 · set-calibration
Text
#11 · reset-consumable
入參
#35Textuint8
Text
#13 · set-room-clean
入參
#36Textuint8#37Textuint8#38Textstring
Events
Text
#1 · mop-remind
Text
#2 · wait-remind
Text
#3 · low-remind
Text
#4 · clean-end
觸發參數
#25清扫开始时间,时间戳,单位秒int64#26清扫使用时间,单位秒uint32#27清扫总面积,单位m2uint32#28清扫地图urlstring#29uint8#30uint8
预约、勿扰相关#5 · order屬性 21動作 2
预约、勿扰相关
#5 · order
Properties
预约id
#1 · order-id
- 格式
- uint8
- 讀寫
- W
- 值
- 0 ~ 100,步長 1 none
是否开启该条预约
#2 · enable
- 格式
- uint8
- 讀寫
- W
- 值
- 01
转换成二进制后,每一位代表一天,1 - 预约 0 - 无预约,bit0-bit6 星期日-星期六
#3 · day
- 格式
- uint16
- 讀寫
- W
- 值
- 0 ~ 256,步長 1 none
预约小时(24小时制)
#4 · hour
- 格式
- uint8
- 讀寫
- W
- 值
- 0 ~ 23,步長 1 none
预约分钟
#5 · minute
- 格式
- uint8
- 讀寫
- W
- 值
- 0 ~ 59,步長 1 none
是否重复
#6 · repeat
- 格式
- uint8
- 讀寫
- W
- 值
- 01
#8 · clean-way
- 格式
- uint8
- 讀寫
- W
- 值
- 0扫地1扫拖2拖地
预约吸力大小
#9 · suction
- 格式
- uint8
- 讀寫
- W
- 值
- 0123
预约出水量大小
#10 · water
- 格式
- uint8
- 讀寫
- W
- 值
- 012
是否二次清扫
#11 · twice-clean
- 格式
- uint8
- 讀寫
- W
- 值
- 01
预约的地图id,若没地图则传0
#12 · mapid
- 格式
- uint32
- 讀寫
- W
- 值
- 0 ~ 99999999,步長 1 none
预约的房间数量
#13 · room-count
- 格式
- uint8
- 讀寫
- W
- 值
- 0 ~ 64,步長 1 none
预约的房间数据JSON字符串[{name:'房间1',id:10},{name:'房间2‘,id:11},{...},{...}...]
#14 · room-data
- 格式
- string
- 讀寫
- W
- 值
- —
勿扰是否打开
#15 · dnd-enable
- 格式
- uint8
- 讀寫
- R / N / W
- 值
- 01
勿扰开始小时
#16 · dnd-start-hour
- 格式
- uint8
- 讀寫
- W / R / N
- 值
- 0 ~ 23,步長 1 hours
勿扰开始分钟
#17 · dnd-start-minute
- 格式
- uint8
- 讀寫
- R / N / W
- 值
- 0 ~ 59,步長 1 minutes
勿扰结束小时
#18 · dnd-end-hour
- 格式
- uint8
- 讀寫
- R / N / W
- 值
- 0 ~ 23,步長 1 hours
勿扰结束分钟
#19 · dnd-end-minute
- 格式
- uint8
- 讀寫
- R / N / W
- 值
- 0 ~ 59,步長 1 minutes
时区参数
#20 · dnd-timezone
- 格式
- int32
- 讀寫
- R / N / W
- 值
- -99999 ~ 99999,步長 1 none
timestamp
#21 · timestamp
- 格式
- int64
- 讀寫
- N / W / R
- 值
- -999999 ~ 999999,步長 1 none
N组预约数据逗号分割,每组数据内的具体数据用下划线_分割 {order_id}_{order_enable}_{week}_{hour}_{minute}_{repeat}_{mode}_{suction}_{water}_{twice}_{mapid}_{room_size}_{roomid}_{roomname}
#22 · orderdata
- 格式
- string
- 讀寫
- R / N
- 值
- —
Actions
删除一组预约
#2 · del
入參
#1预约iduint8
获取预约数据
#3 · get
出參
#22N组预约数据逗号分割,每组数据内的具体数据用下划线_分割 {order_id}_{order_enable}_{week}_{hour}_{minute}_{repeat}_{mode}_{suction}_{water}_{twice}_{mapid}_{room_size}_{roomid}_{roomname}string
指哪扫那 划区 虚拟墙#6 · point-zone屬性 3動作 4
指哪扫那 划区 虚拟墙
#6 · point-zone
Properties
指哪扫那目标点,XY逗号分割,如’3.23,6.89‘
#1 · target-point
- 格式
- string
- 讀寫
- W / R / N
- 值
- —
划区的四个顶点坐标 'x1,y1,x2,y2,x3,y3,x4,y4'
#2 · zone-points
- 格式
- string
- 讀寫
- W
- 值
- —
restrict-points
#3 · restrict-points
- 格式
- string
- 讀寫
- W
- 值
- —
Actions
开始指哪扫那清扫
#1 · start-point-clean
暂停指哪扫那清扫
#2 · pause-point-clean
开始区域清扫
#5 · start-zone-clean
暂停区域清扫
#6 · pause-zone-clean
地图相关#7 · map屬性 15動作 12
地图相关
#7 · map
Properties
#1 · map-type
- 格式
- uint8
- 讀寫
- R / N / W
- 值
- 0上传到url01上传到url12上传到url2
地图id
#2 · map-id
- 格式
- int64
- 讀寫
- R / N / W
- 值
- 0 ~ 9999999999,步長 1 none
地图名字
#4 · map-name
- 格式
- string
- 讀寫
- R / N / W
- 值
- —
语言参数
#5 · lang
- 格式
- string
- 讀寫
- W
- 值
- —
要合并的房间id参数,逗号分割,如:‘10,11,12’表示合并房间id为10,11,12的房间;
#6 · arrange-room-ids
- 格式
- string
- 讀寫
- W
- 值
- —
目标房间id
#7 · target-room-id
- 格式
- uint8
- 讀寫
- W
- 值
- 0 ~ 128,步長 1 none
分割线段的两个端点坐标,如:'3.45,6.78|4.56,-3.45'
#8 · split-points
- 格式
- string
- 讀寫
- W
- 值
- —
房间名称
#9 · room-name
- 格式
- string
- 讀寫
- W
- 值
- —
#10 · cur-cleaning-path
- 格式
- string
- 讀寫
- R / N
- 值
- —
地图列表数据[{name : '地图1',id:1585849584,cur : true},{name : '地图2',id : 1585849784,cur : false}]
#11 · map-list
- 格式
- string
- 讀寫
- R / N
- 值
- —
Text
#12 · last-point-index
- 格式
- int32
- 讀寫
- 值
- 0 ~ 2147483647,步長 1 none
Text
#13 · oper-result
- 格式
- string
- 讀寫
- R / N
- 值
- —
Text
#14 · auto-area-id
- 格式
- int64
- 讀寫
- R / N
- 值
- 0 ~ 9999999999,步長 1 none
Text
#15 · map-download-url
- 格式
- string
- 讀寫
- 值
- —
Text
#16 · new-map-oper
- 格式
- uint8
- 讀寫
- 值
- 0 ~ 2,步長 1 none
Actions
上传指定类型的地图
#1 · upload-by-maptype
上传指定id的地图
#2 · upload-by-mapid
设置当前地图
#3 · set-cur-map
入參
#2地图idint64#15Textstring
del-map
#5 · del-map
入參
#2地图idint64
重命名地图
#7 · rename-map
入參
#2地图idint64#4地图名字string
合并房间
#8 · arrange-room
入參
#2地图idint64#5语言参数string#6要合并的房间id参数,逗号分割,如:‘10,11,12’表示合并房间id为10,11,12的房间;string#14Textint64
出參
#13Textstring
分割房间
#9 · split-room
入參
#2地图idint64#5语言参数string#7目标房间iduint8#8分割线段的两个端点坐标,如:'3.45,6.78|4.56,-3.45'string#14Textint64
房间重命名
#10 · rename-room
入參
#2地图idint64#7目标房间iduint8#9房间名称string#14Textint64
获取地图列表数据
#11 · get-map-list
出參
#11地图列表数据[{name : '地图1',id:1585849584,cur : true},{name : '地图2',id : 1585849784,cur : false}]string
Text
#12 · get-cleaning-path
入參
#12Textint32
出參
#10string
Text
#13 · set-new-map
Text
#14 · deal-new-map
入參
#16Textuint8
声音相关#8 · voice屬性 6動作 3
声音相关
#8 · voice
Properties
Text
#3 · target-voice
- 格式
- string
- 讀寫
- N / W / R
- 值
- —
Text
#4 · cur-voice
- 格式
- string
- 讀寫
- R / N
- 值
- —
Text
#5 · download-status
- 格式
- uint8
- 讀寫
- R / N
- 值
- 0Text1Text
Text
#6 · download-progress
- 格式
- uint8
- 讀寫
- R / N
- 值
- 0 ~ 100,步長 1 none
Text
#7 · voice-url
- 格式
- string
- 讀寫
- W
- 值
- —
Text
#8 · voice-mdfive
- 格式
- string
- 讀寫
- W
- 值
- —
Actions
寻找扫地机
#2 · find-device
Text
#3 · download-voice
入參
#3Textstring#7Textstring#8Textstring
Text
#4 · get-downloadstatus
出參
#6Textuint8#3Textstring#4Textstring#5Textuint8
