I had no problems with my google assistant connection per this guide until recently when I lost my hability to “sync my devices”. I tried everything including deleting the project and creating a new one. Problem is that now I can’t connect the test app to google home getting an error message “can’t update definition. check connection” (free translation from portuguese).
In HA logs I get the following:
Logger: homeassistant.components.google_assistant.smart_home
Source: components/google_assistant/trait.py:1210
Integration: Google Assistant (documentation, issues)
First occurred: 19:06:43 (9 occurrences)
Last logged: 19:10:41
Unexpected error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/google_assistant/smart_home.py", line 57, in _process
result = await handler(hass, data, inputs[0].get("payload"))
File "/usr/src/homeassistant/homeassistant/components/google_assistant/smart_home.py", line 90, in async_devices_sync
for entity in async_get_entities(hass, data.config)
File "/usr/src/homeassistant/homeassistant/components/google_assistant/helpers.py", line 435, in sync_serialize
device["attributes"].update(trt.sync_attributes())
File "/usr/src/homeassistant/homeassistant/components/google_assistant/trait.py", line 1210, in sync_attributes
modes.append(_generate("option", attrs[input_select.ATTR_OPTIONS]))
KeyError: 'options'
I seem to have the same issue at the moment. Which version of HA are you on? I’m on 0.109.6. I will try to upgrade to 0.111.4 to see if that makes a difference. Also, what have you already tried? I tried the following:
re-enable the draft test version in Google Actions. That worked in the past.
toggle the URL in the action section to recreate the preview (per documentation)
generate a new serve account JSON file
None of the above made a difference. The error I get is:
I have your own logs but I have not solved.
At this moment I don’t have access to devices in home assistant via google assistant.
I can’t connect the test app to google home getting an error message “can’t update definition. check connection”.
After doing a lot of tests I found out that the error was because I didnt have “exposed_domains:” set on google_assistant “tag” on my configurations.yaml