Xiaomi Eve Plus Integration

Hello guys.
I learned how to make scripts for cleaning zones by Roidmi EVE Plus.
Look to my example:

clean_living_room:
  alias: clean_living_room
  sequence:
    - service: xiaomi_miot.call_action
      data:
        entity_id: vacuum.roidmi_eve_robot_cleaner
        did: 441963123
        siid: 14
        aiid: 1
        params: [2,"{\"mapId\":1627839123,\"segmentId\":[3]}"]
  mode: single
  icon: mdi:sofa

Little how-to:

  1. Use Xiaomi Miot For HomeAssistant integration. Install it by manual. If it ask type of commands - select CLOUD connect.
  2. Use vevs mod of Mi home for collect needed data. Install mod and create folders for logs: /vevs/logs/. After make folder - login to you acc. If you already logined - make relogin, for creating logs.
  3. Go to you Roidmi EVE page and start segment cleaning.
  4. Find in /vevs/logs/miio/ folder txt file with DID of you device. (in my case 441963123.txt)
  5. Send log file to PC and find word ‘segmentId’ - this line will start segment cleaning. In my case line it is: 2021-08-02 20:48:12 → {“params”:{“did”:“441963123”,“siid”:14,“aiid”:1,“in”:[2,"{“mapId”:1627839123,“segmentId”:[3]}"]}} /miotspec/action
  6. Just use data after “in”: this line in you scripts for params line. In my case it params: [2,"{“mapId”:1627839123,“segmentId”:[3]}"]
  7. (additional) You also can use Xiaomi Cloud Map Extractor
    This is my config for it:
  - platform: xiaomi_cloud_map_extractor
    host: 192.168.1.***
    token: 454f4********************9764b58
    username: s******@gmail.com
    password: ***********
    draw: ['all']
    store_map_raw: true
    force_api: roidmi
    attributes:
      - calibration_points 

All needed data you can find in vevs mod - just tap and hold you device in start page, and choose reneame button - after you see window with all info about it, inc. token.

7 Likes