Got my google assistant setup last night and it is working pretty good, still have some issue with resync to sort out, my project isn’t listed on the site shown in step 9 but that’s a different time.
I have my 11 devices presented from ha to ga it seems them and I can tell google to control them no problem except for the two groups I have made avaliable. Google sees them but when I say turn on christmas lights it waits then says it cant control that device. Do groups not work or do we need to tweak something?
When you ask GA to turn on a group, is sends a service call turn_on on a group. The domain group do not support turn_on. I googled (some time) on this as well and could not find anything so I settled for a workaround. I create a template switch for each group I want to expose in GA.
It is also possible to group entities in the Google Home app, but I really wanted to avoid config in there since at least right now there is a lot of linking and unlinking for me.
It looks like the Google Assistant Component has a function called determine_service in smart_home.py to convert the Google Home Command to a Home Assistant command smart_home.py.
It may be possible to add a case for if the entity is a group and the command is turn_on to use set with state on instead.
And then in the configuration.yaml you need to add this line:
google_assistant_group_fix:
This basically just registers the turn_on and turn_off services for the group domain and forwards them to the Home Assistant on/off service. It’s pretty hacky, but it does appear to work and doesn’t require customizations for every group you have.
Edit:
Fixed spacing issue lost when posting (thanks @pernordlund)
As mentioned by @pernordlund below, you also need to add en entry to the customize element to set the google_assistant_type for the group.
@Khalos Thanks a lot. I was thinking in those lines but never got to it. Now you did. Thanks. For those less experienced you lost 4 spaces in front of the last three line. Also one need to set the property google_assistant_type to something else than group eg light
Yes @anon35356645 I meant the ROOM functionality. In my opinion using the grouping in Hass is a lot better. You get all your config in Hass. Also, if you for some reason need to unlink your device and GA then you loose all your room-device relations in GA.
But if you never will unlink your account you might be just as well off using the ROOM thing. For some reason (incompetence maybe) I think I have linked and unlinked 15 times already today…
Whole smokes thanks everyone for the great recommendations, I am going to be lazy right now and use the google rooms functions just for time and effort, I don’t make a bunch of changes to my google assistant room setup.
But since my home control is also linked to my Kasa app for TP link I can technically have each switch assigned to 2 different rooms one via Kasa and 1 via google assistant integration which will get me what I need.