Setting up Google Actions for Assistant

Bummer. All was working fine for the last few weeks.

As I wanted to re-sync my devices I unlinked my account in the Google Home app. Then tries to link again but it does not show up anymore in the app so that ik can be linked…

Any pointers on what I can do?

Go to your google dev console and do a test draft of your app. It will show again in your GH app.

1 Like

@gbboy Great! That did it! Thanks.

Aw geeze. I forgot to do a docker-compose pull home-assistant so I was a couple releases behind. Sorry about that!

No, I think the command gets handled based on the native entity type in HASS - i.e. group.

Group had a bug earlier because there is not group.turn_on/off but this has been fixed in one of the newer versions.

Right so I’m having trouble understanding what you’re saying. In the version I currently have, 0.57.3, if I tell Google to turn off my downstairs lights group, it tries calling group.turn_off. If I were to trick Google Assistant to thinking my group was a light, and I added a light and a switch to the group, then told Google to turn off the group, it would call light.turn_off, and my switch would stay on, would it not?

Has the code been fixed in latest versions to call homeassistant.turn_off so it can turn everything in the group off?

I think yes. Just use your sensor id in

target_sensor:

You can find it in Developer Tools → States

Do not expose your temperature sensor to Google Assistant, it doesn’t work yet.
The idea was to attach sensor to dummy climate device.
So

  • create dummy switch, which is required by ‘generic_thermostat’

switch:

  • platform: mqtt
    command_topic: “abc”
    name: demo1
  • create dummy climate device and link your temperature sensor to it

climate:

  • platform: generic_thermostat
    name: climate1
    heater: switch.demo1
    target_sensor: sensor.broadlink_sensor_temperature
  • expose ‘climate1’ to Google Assistant, if you don’t do it for all supported devices
1 Like

No, the GA component will call group.turn_off i.e. the native type of the exposed group.

Note: In newer versions, group will instead use homeassistant as the entity type.

I bought Zanzito and Zanzito licence, and its works well, but now I want to share licence with my wife, but Google Family is not available in my country (Portugal). Is there any way to solve this?

Thanks for the tip. I was adding a 2nd user as an editor but coudn’t get her to add the [test] project. Added her as owner ,accepted the email invite, and the [test] project showed up after about a minute.

Anyone having issues relinking the google home component? Mine seems to link successfully but no devices populate. I removed the API key and even created a new project (updated project_id of course) and still nothing. Is the API key even need any more now that gh syncs verbally? Or do I need to setup the request_sync service/homegraph again on the new project?

edit: it even allows me to link to the new test project (shows briefly “successfully linked”) - but still no devices populate. When I ask to sync (after linking) it only syncs other devices I have linked outside of hass… sheesh

I had the same problem, and this was related to an error in my customize.yaml (which was not loading entirely)

I can’t get the gactions step of the setup to work on my Mac (10.11.6). I downloaded the file and tried to execute the command: gactions update --action_package project.json --project homeassistant-8f736 in terminal but get -bash: gactions: command not found

Any ideas? Ever since installing hass.io, I’m really missing my linux cli.

As mentioned in the documentation (though it does say for Linux), you need to use ./gactions so that it knows where to find it.

Thanks, got it going! Excellent component!

Do you recall how you resolved the invalid client id issue? I am getting same message, have not been able to resolve.

Anyone have any idea why the Google Assistant app works but my Google Home’s don’t? I set everything up correctly and linked my app and all it’s smart devices from Home Assistant. I originally got one of the Google Home’s working, but when I was trying to setup my 2nd one that is when it all went down hill. But like I said, the Google Assistant app works fine and can control all of my Home Assistant devices, but I want the Google Home’s to be doing this.

In my logs I noticed the “auth: False” message, is this a clue into anything?

2018-01-01 21:38:53 INFO (MainThread) [homeassistant.components.http] Serving /api/google_assistant/auth to 10.0.1.1 (auth: False)

Appreciate the help

Try clicking on “TEST DRAFT” and then try linking again. Ensure your client_id is configured to the app in the Actions console and in the component config in Home Assistant

I had a similar problem, I needed to clear the cache of the Google Home app on my Android device. Then retry.