Roidmi Eva Zone cleanup #618
-
Thumbs up for this great card. I own a (Xiaomi) Roidmi EVA and have problems with the zone cleanup. Roidmi EVA needs an output like this: output of map is: [[x0,y0,x1,y1]] I really hope that someone can help me to solve this problem? |
Beta Was this translation helpful? Give feedback.
Replies: 15 comments 77 replies
-
Can you provide an example HA service call with such data? I should be able to make it work with a card. |
Beta Was this translation helpful? Give feedback.
-
Hello PiotrMachowski, here is my working full yaml: service: xiaomi_miot.call_action
data:
throw: true
entity_id: vacuum.roidmi_v66_27e4_robot_cleaner
siid: 14
aiid: 1
params:
- 2
- >-
{"MapId":123456789,"ExtraAreas":[{"name":"划区","id":300,"tag":"4","vertexs":[[85,-1503],[999,-1503],[999,-566],[85,-566]],"active":"normal","mode":"area"}]} |
Beta Was this translation helpful? Give feedback.
-
Hello PiotrMachowski, do you have any news for me how i can get the another question from me would be: I use |
Beta Was this translation helpful? Give feedback.
-
Ok Home Assistant Swipe Navigation do not support vacuum card (at the moment). I have read the many posts and hope that it will change in the future. Because of my Vacuum I took a look at your xiaomi-vacuum-map-card.ts if you can tell me how i can change: this.selectedManualRectangles.push(new ManualRectangle(x, y, width, height, name, than i think my vacuum will 100% work with your card. |
Beta Was this translation helpful? Give feedback.
-
Thumbs up PiotMachowski. Can you tell tell me what i have to change if i whant to to it with max_selections: 2 or more? i also what to run your card whith point cleaning. my idee is to use the x / y coordinates from your script. -/+ them with 0,5m in x/y and make the output in the same way that you show me before. do you think that is the right way? |
Beta Was this translation helpful? Give feedback.
-
Can you tell me what i have to change if i whant to do it with max_selections: 2 or more?
this is what the log file says. Your code for clean point works perfect. i just had to change it to the long version:
Some points (nice to have) in your card:
|
Beta Was this translation helpful? Give feedback.
-
another thing i noticed. on the map card i see the movements of the vacuum cleaner but it doesn't move itself. if i open the mobile phone app at the same time, i can see the position of the vacuum cleaner directly on the line on which it is driving. does this phenomenon have something to do with my vacuum cleaner or with a wrong setting on my map card? |
Beta Was this translation helpful? Give feedback.
-
I did some tests with the repeat button. service: xiaomi_miot.set_miot_property
data:
entity_id: vacuum.roidmi_v66_27e4_robot_cleaner
siid: 8
piid: 20
value: 1 #(0=single, 1=double cleaning) Now I tried to integrate it into the service call in the map: map_modes:
- template: vacuum_clean_segment
max_selections: 7
repeats_type: EXTERNAL
max_repeats: 2
sequens:
- service: xiaomi_miot.set_miot_property
data:
entity_id: '[[entity_id]]'
siid: 8
piid: 20
value: '[[repeats]-1]'
- service: xiaomi_miot.call_action
service_data:
entity_id: '[[entity_id]]'
siid: 14
aiid: 1
params:
- 2
- '{"mapId":0123456789,"segmentId":[[selection]]}' but nothing happens when i hit the play button. is it possible that you can't call multiple services or is my mistake somewhere else? |
Beta Was this translation helpful? Give feedback.
-
Hi. Thak for your amazing work guys. Thanks to this discussion i was able to make my Lydsto W2 workswith areas. As for repeats, i just created a simple wrapper script to replace call_action call in the card config The script
With this i can enable the double clean flag to do two clean pass using "repeats_type: EXTERNAL" Now, my card service call looks like this
|
Beta Was this translation helpful? Give feedback.
-
and here are some screenshots of my configurations: |
Beta Was this translation helpful? Give feedback.
-
My brain starts hurting. @Speichi I am trying to get a basis working of your configuration; getting the EVA to clean a room id.
If I try to make a service call:
the bot starts cleaning, but not the desired room. It just starts its routine. |
Beta Was this translation helpful? Give feedback.
-
@PiotrMachowski |
Beta Was this translation helpful? Give feedback.
-
@PiotrMachowski e.g.:
Could I make an entity out of every room selection from map extractor, and use the attribute for selected on/off? |
Beta Was this translation helpful? Give feedback.
-
@Speichi do you know which action ID is what? edit: |
Beta Was this translation helpful? Give feedback.
No, all walls use the same color, so it's not possible to disable them just for one room