question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Viomi V3 Max point/zone clean

See original GitHub issue

I was able to get the room clean working using the following code, where a,b,c are my room id numbers:

service: xiaomi_miot.call_action
data:
  siid: 4
  aiid: 13
  params:
    - 0
    - 1
    - a,b,c
  entity_id: vacuum.dusty

For point-zone cleaning, the siid is 6 and aiid 1 (point) or 5 (zone). There’s nothing on the documentation about expected params, but it seems obvious: list x,y for point and x1,y1…x4,y4 for zone.

service: xiaomi_miot.call_action
data:
  siid: 6
  aiid: 1
  params:
    - x,y 
  entity_id: vacuum.dusty

I’ve also tried to specify params, a second layout that also works for room cleanup, but does not work for point or zone:

 params:
    - piid: 1
      value: x,y 

I am using the Xiaomi Vacuum Map card to get coordinates, and it does seem that maybe there a difference in the coordinates (a map coordinate would look like -1298, 3402, but the sample in the documentation is 3.23,6.89. I’ve tried using both larger and smaller numbers as my coordinates, wondering if the larger numbers were out of range.

Any direction on getting this to work?

Also, I would like to use the “Point and Go” option on the map card, but I don’t see a way in the documentation to send this vacuum to a coordinate without cleanup (so sent it to the garbage can and wait there to be emptied). Let me know if there’s a way to accomplish that as well.

Thank you!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
foxymichellecommented, Sep 20, 2022

It requires two service calls: set property, then start clean. Here’s the code to get it to clean a point:

service: xiaomi_miot.set_miot_property
data:
  entity_id: vacuum.dusty
  siid: 6
  piid: 1
  value: "x,y"

service: xiaomi_miot.call_action
data:
  siid: 6
  aiid: 1
  entity_id: vacuum.dusty

And here’s for zone clean up:

service: xiaomi_miot.set_miot_property
data:
  entity_id: vacuum.dusty
  siid: 6
  piid: 2
  value: “x1,y1,x2,y2,x3,y3,x4,y4”

service: xiaomi_miot.call_action
data:
  siid: 6
  aiid: 5
  entity_id: vacuum.dusty

I posted how to get this working with the Xiaomi Vacuum Map Card here.

0reactions
al-onecommented, Sep 20, 2022

@foxymichelle If you get the command parameters, welcome to share your service yaml.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Viomi V3 Max| Best Lidar Robot Vacuum For Pet Hair
With 3 cleaning modes, like sweep only, mop only and sweep-mop, Viomi V3 Max robot vacuum can thoroughly removes dust, dirt, water stains,...
Read more >
VIOMI V3 Max - 产品规格- Xiaomi Miot Spec
PIID 名称 描述 类型 单位 权限 1 status Status uint8 none 读 通知 2 fault Device Fault uint32 读 通知 4 sweep‑type Sweep Type uint8 none...
Read more >
Viomi V3 Max Robot Vacuum Review: Is It the Best Budget ...
If you're looking for a quality robotic vacuum cleaner on a budget, the V3 Max fits the bill.
Read more >
VIOMI V3 Max Robot Vacuum and Mop Combo with Smart ...
Buy VIOMI V3 Max Robot Vacuum and Mop Combo with Smart Mapping Technology, 2700Pa Robot Vacuum Cleaner Work 300mins with Alexa/Google, Lidar Navigation ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found