Using Hassbian 0.60.1. Google assistant voice command is working fine with previously synced devices. Was able to call google_assistant.request_sync about a week ago to add devices with no problem. Couple of days ago added a few more devices and tried to sync and in the log I am getting:[homeassistant.components.google_assistant] request_sync request failed: 400 b’{\n “error”: {\n “code”: 400,\n “message”: “Request contains an invalid argument.”,\n “status”: “INVALID_ARGUMENT”\n }\n}\n’
A - I tried removing the items I added and I am still getting the sync error.
B - Https and certificates are working fine.
C - Couldn’t find anything on the Google console other than there was an error and poked around and couldn’t find any further information on the hassbian PI3.
I dont really want to try to un-link and re-link since I may lose the 20 or so currently working modules.
1 - Does anyone know how to get any more in depth error information? (ie which argument it doesn’t like)
2 - Is there any way to see the sync call to take a look at the arguments that are being sent.
Really? I have never had it not work. (except for a week or so ago and I did unlink/relink which was a PITA - I did go through the docs again and it all started working again)
Actually, tempting fate I just went into the Google config and my devices would not sync and in HA I got an error as well. So I just then unlinked the app and relinked it (PITA had to assign rooms again) and it’s working again now.
nope. every time I make a change that adds or renames an entity exposed to GA I have to unlink / relink to get the changes across, the request sync fails every time. I don’t know what to change. Apart from that, the GA integration works well
nope. I get an error saying cant “I dont know how to help with that yet”, however when asked the same thing a few days ago, the error was something like “there was an error syncing hassio”
It did work at least in Hassbian. You need to add the API key from the google console in the configuration.yaml then call google_assistant.request_sync from services.
google_assistant:
project_id:
client_id:
access_token:
api_key:
exposed_domains:
- switch
- light
As I said, it did work but now I am getting:
2018-03-02 13:37:05 ERROR (MainThread) [homeassistant.components.google_assistant] request_sync request failed: 400 b’{\n “error”: {\n “code”: 400,\n “message”: “Request contains an invalid argument.”,\n “status”: “INVALID_ARGUMENT”\n }\n}\n’
I haven’t been brave enough to attempt the re-link, Most of my major modules are working and I’d hate to lose that right now. if you get brave enough to un-link and re-link be sure to post your results.
J
I still dont understand the reason to place all your devices into their respective rooms within the Google Home app anyway?
At present I have a heap of devices in my Google Home app and have never bothered even creating a single room. Since my Kitchen light for example is actually called “Kitchen Light” in HA, all I have to say to Google is “Hey Google, turn the Kitchen light on”, and it works perfectly.
What benefit could there possibly be from spending the time to create rooms and assign devices in the Google Home app? Just more time wasted if you need to unlink/relink…
Well I have multiple different lights in my office. So I can control those individually or I can tell google to turn on all lights in x room. Pretty common use case I’d say.
Also, in Home Assistant Google Assistant settings the room: option is now active and working so if you set that up once, when you unlink the app and relink it everything goes into the right room automatically. No more screwing around with rooms in the google assistant app.
that can still be done using different names for the offices lights such as ‘office desk light’, ‘office light’ and then having them as a group.
however I do see that this is another way, certainly nicer now that the unlinking doesnt cause you to have to redo them all… IF you pay for HA Cloud once they start charging for it. personally I would like to see the cloud option provide a fair bit more before paying
You don’t need the cloud component to do this. This works with the google assistant component. It’s in the docs as a coming feature but was implemented in the API this week. Total cost $0!
I am sure there are other ways to do it but this is the simplest way. Why screw with groups when you can just define a room. Everything in Google Assistant expects a room and I see no reason not to use that function.
I don’t use the app either. Everything by voice. Using rooms just makes it easier to control everything in a room without needing to setup anything else.