I have exposed my covers to Google Assistant and now I am trying to do the same with my vacuum (XIAOMI) to get some voice controls. I got it to show up as a switch and can turn it off and on. Is there a way to get some more functionality like spot-cleanup etc. to work with another type of google_assistant_type ?
That would be better, as a switch it works fine with âonâ for start and âoffâ for dock, but proper Google integration would apparently also add pause, stop and dock, and asking if itâs running. And more flexible commands.
Just added this for a Xiaomi Vacuum - Works fine as a switch and hoping to see native vacuum support in a future revision. Does anyone know if theres a pr to have it added?
I upvoted that request, also i am wondering about the list of supported devices. I remember seeing that one too when I first set everything up, but cannot seem to find it anymore. The problem is: covers are supposedly exposed and they are, my cover shows up in Google Home. But they are seen as a switch. So saying âClose the coverâ actually works, but âOpen the coverâ does not. I need to say âturn on the coverâ. I think I read somewhere that right now, that its only possible to control light and switch-functionality with google home through HA (but would love someone to confirm that).
digging this topic up again since the vacuum cant be exposed as a switch with the new update for the component which got rid of the âtypeâ feature.I think it should be possible with an input_boolean and an automation, I will try my luck and post the results here!
It works as expected. Create an input boolean --> create two automations with trigger on state switch from on to off and vice versa --> expose the boolean to google!
That is indeed a better way! Works well with less scripting!
My template incase someone wants to do the same sometime(it takes a moment for the switch to turn on/stay on after switching it on, guess its just the response time of the vac):
I have done it as describled on my customization.yaml file.
It shows on my HA State but I doesnât list on my google assistant devices list. Have already synced, removed and added again my [test]Device and nothing⌠any tips?
you canât expose the vacuum component to GA anymore because the type feature was removed. So you have to use a template switch as explained by @d0nnae in the post before your postâŚ