Xiaomi VIOMI SE

@marotoweb, would you be willing to share this? I’d love to see at least a somewhat proper integration for my Viomi SE.

Otherwise, I’ve spent some time playing with miiocli and got some basic things working (start, stop, pause, return home) using shell commands + scripts. I’m not much of coder so I went this way.

Since I use hass.io I first had to set up private key SSH login and run the command through SSH. This post should help with the config.

In configuration.yaml add as a shell command:

viomi_return_home: "ssh -F /config/ssh_config -i /config/.ssh/id_rsa -p <ssh_port> root@<ha_lan_ip> '/usr/bin/miiocli viomivacuum --ip <viomi_ip> --token <viomi_token> home'"

Replace home with start, stop, pause and add as new shell commands.

And then create a script calling the service

shell_command.viomi_return_home