Few days ago, I need to reconnect my Google Assistant integration.
I use Home Assistant 65.5
My configuration.yaml looks like this:
google_assistant:
project_id: !secret assistant_project_id
client_id: !secret assistant_client_id
access_token: !secret assistant_access_token
api_key: !secret assistant_api_key
exposed_domains:
- light
But when I try to connect my Google Assistant project it returns the “Could not update settings. Please check your…”
Also I get this two error Logs in Home Assistant:
Log Details (ERROR)
Thu Mar 22 2018 13:21:24 GMT+0100 (Mitteleuropäische Zeit)
Unexpected error
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/google_assistant/smart_home.py", line 205, in _process
result = await handler(hass, config, inputs[0].get('payload'))
File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/google_assistant/smart_home.py", line 232, in async_devices_sync
serialized = entity.sync_serialize()
File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/google_assistant/smart_home.py", line 128, in sync_serialize
device['attributes'].update(trt.sync_attributes())
File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/google_assistant/trait.py", line 310, in sync_attributes
attrs.get(light.ATTR_MIN_MIREDS)),
File "/usr/local/lib/python3.5/dist-packages/homeassistant/util/color.py", line 443, in color_temperature_mired_to_kelvin
return math.floor(1000000 / mired_temperature)
TypeError: unsupported operand type(s) for /: 'int' and 'NoneType'
Log Details (ERROR)
Thu Mar 22 2018 13:21:24 GMT+0100 (Mitteleuropäische Zeit)
Error handling message {'requestId': '18002153049767507791', 'inputs': [{'intent': 'action.devices.SYNC'}]}: {'errorCode': 'unknownError'}
The strange thing is, if I change my configuration.yaml to this…:
google_assistant:
project_id: !secret assistant_project_id
client_id: !secret assistant_client_id
access_token: !secret assistant_access_token
api_key: !secret assistant_api_key
expose_by_default: false
exposed_domains:
- light
entity_config:
light.deckenlampe_herd:
expose: true
…it syncs and will show me the deckenlampe_herd as light.
But if I try to add more ligts with this mehtod it won’t sync and shows me the two error messages from above in HA again
I have no clue what I can do here anymore to fix this behaviour :-/
…::edit::…
Ok, seems that it should to be fixed with this commit: https://github.com/home-assistant/home-assistant/pull/13358