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.
Actually - it’s working fine if you install custom integration:
I simply followed the steps, and it works like a charm!
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…
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?
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
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 ?
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]
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
found out a few things about this vacuum cleaner.
Here are my scripts (including remote control):
##############################################################################################################################
### NONO Parameter ###
######################
#############
#LED AN/AUS #
#############
# ViomiLedState
# Off = 0
# On = 1
####################################################################################################################
nono_led:
alias: Nono - Leds AN od. AUS
sequence:
- choose:
- conditions:
- condition: template
value_template: "{{state_attr('vacuum.nono', 'light_state') == 1}}"
sequence:
- service: vacuum.send_command
data:
entity_id: vacuum.nono
command: set_light
params: [0]
- conditions:
- condition: template
value_template: "{{state_attr('vacuum.nono', 'light_state') == 0}}"
sequence:
- service: vacuum.send_command
data:
entity_id: vacuum.nono
command: set_light
params: [1]
#################
# Fernbedienung #
#################
# Forward = 1
# Left = 2 # Rotate
# Right = 3 # Rotate
# Backward = 4
# Stop = 5
# Unknown = 10 # Macht einen Ton sonst NICHTS!
####################################################################################################################
nono_vorne:
alias: Nono - Remote vorne
sequence:
- service: vacuum.send_command
data:
entity_id: vacuum.nono
command: set_direction
params: [1]
nono_zuruck:
alias: Nono - Remote zurück
sequence:
- service: vacuum.send_command
data:
entity_id: vacuum.nono
command: set_direction
params: [4]
nono_links:
alias: Nono - Remote links
sequence:
- service: vacuum.send_command
data:
entity_id: vacuum.nono
command: set_direction
params: [2]
nono_rechts:
alias: Nono - Remote rechts
sequence:
- service: vacuum.send_command
data:
entity_id: vacuum.nono
command: set_direction
params: [3]
#########
# Zonen #
#########
####################################################################################################################
nono_ausleeren:
alias: Nono - ausleeren bei Mistkübel
sequence:
- service: vacuum.xiaomi_clean_zone
data:
entity_id: vacuum.nono
zone: [[-5.8,-1.5, -5, -2]]
repeats: 1
if you found out more things I would be happy if you share that … Thanks
Hi, does multiroom still work for you?
I send this, in nodered
{
"entity_id": "vacuum.vacuum_viomi_hugo",
"command": "set_mode_withroom",
"params": [
0,
1,
1,
15,
10
]
}
and it cleans just the first room, then returns to dock.