Xiaomi Viomi V1/V2 support

Hi,

just a quick question (hope i’m in the right section :slight_smile: ). Is possible to use “Xiaomi Viomi V2” vacuum with HA xiaomi vacuum integration? Or is here anybody who managed that?

Thank you for any input.

2 Likes

Have you found a solution?

When I try to setup my viomi with home-assistant, I just keep getting:
[homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device

Not sure if there’s any way around it.

Unfortunately, nope. Actually i wanted to make sure it’s working before purchase (I could get it quite cheaply). Because there was no response from anybody, i rather didn’t buy it at all. :slight_smile:

Actually - it’s working fine if you install custom integration:

I simply followed the steps, and it works like a charm!

4 Likes

Nice! Good to know, thanks.

Hello @2hol
This has worked for me as well, thank you for sharing the link

However, I have a different (related) problem. Maybe you can shed some light?
I’m also using the HA system as a bridge to my homekit. While I see viomi in my HA, I don’t see it in homekit. Any idea why or how to configure it?

Thanks,
Omer

It’s working for me! Thanks!

I have now scripts to clean each room:

'15896780984':
  alias: Viomi Clean Bedroom
  sequence:
  - data:
      command: set_mode_withroom
      params:
      - 0
      - 1
      - 1
      - 14
    entity_id: vacuum.viomi
    service: vacuum.send_command

params:
- 0 (0=Normal Vacuum, 1=Edge only)
- 1 (Don’t know what it does, have to test it, maybe number of passages)
- 1 (Quantity of rooms)
- 14 (Room ID)

You can get the room IDs by trial and error, mine started from 10.

Next step multi room cleaning…

2 Likes

Hi

I am looking into the option to switch from Smartthings to HA, so I have set up temporary HA running on Docker on my Synology NAS. I also tried to install this integration however I get message

“Platform error vacuum.miio2 - Integration ‘miio2’ not found.”

What is the location of the maps I need to create?
I have it in/
/hass.io/hass.io/homeassistant/config/custom_components/miio2

Thanks

Hi,

Where can i find more info about this integration, i find the topic to generic and couldn’t make it to work.
Thanks in advance.

I was thinking if this could be integrated into the “normal” xiaomi intergration? :slight_smile:

What does not work and what did you try?
my config looks like this:

vacuum:

  • platform: miio2
    host: 192.168.xx.xxx
    token: xxxx
    name: Bente

@DGj I have min in /config/custom_components/miio2

Hello !

Thanks for your actual share, it helped me a lot to make basic room cleaning work and to understand how “scripts” works in HA. (It was my first one).

Did you succeed to get the multiroom cleaning ? If yes, could you share it too please ?

1 Like

Problem with Zone cleaning
Using Hacky Home assistant support for Xiaomi vacuum STYJ02YM integration"
Using home assistant version 0.116.4
The zone cleaning stopped working. it says it start cleaning and after couple seconds it state it completed and return to dock.
The script I’m using:
vacuum_clean_livingroom:

sequence:

- data:

    command: set_language

    entity_id: vacuum.viomi

    params: 2

  service: vacuum.send_command

- data:

    command: set_mode_withroom

    entity_id: vacuum.viomi

    params:

      - 0

      - 1

      - 1

      - 13

  service: vacuum.send_command

mode: single

Any suggestions?

Try changing the room number (4th parameter)

i use this for multiroom und his works very well!

nono_alles_ausser_bad_reinigen:
  alias: Nono - Alles ausser BAD reinigen
  sequence:
  - service: vacuum.send_command
    data:
      entity_id: vacuum.nono
      command: set_mode_withroom
      params: [0, 1, 4, 10, 11, 13, 14]

4 rooms, with number 10, 11, 13 and 14

and this is for my carpet in the floor

nono_vorzimmer_teppich_reinigen:
  alias: Nono - Vorzimmer Teppich reinigen
  sequence:
  - service: vacuum.xiaomi_clean_point
    data_template:
      entity_id: vacuum.nono
      point: [0,1]
1 Like

the only function that would still be needed would be a remote control.

Where are the coordinates of the point? point: [0,1] - too little for coordinates

put it works good for me.