ha-google-home: Sensors unavailable/ not created

Describe the bug

I updated to the latest version. But the sensor became unavailable. So i did a few reinstalls but no luck yet. I did however forced to logout some unknown activity in my Google account. This was propabely this component. With reinstalling the component it did came back. The sensor didnโ€™t came back though.

Version of the integration

If you are unsure about the version check the github release here. latest

Add version here.

Glocaltokens Version (Underlying package)

0.2.8

Logs

Logger: custom_components.google_home
Source: helpers/update_coordinator.py:179
Integration: Google Home (documentation, issues)
First occurred: 16:10:45 (11 occurrences)
Last logged: 16:21:20

Timeout fetching sensor data

Debug log

This goes on and onโ€ฆ


2021-04-03 16:11:33 DEBUG (MainThread) [glocaltokens.client] Initializing new GLocalAuthenticationTokens instance.
2021-04-03 16:11:33 DEBUG (MainThread) [glocaltokens.client] Set self username to "u*************************", password to "2*************", master_token to "a******************************************************************************************************************************************************************************************************************************" and android_id to 1*************
2021-04-03 16:11:33 DEBUG (MainThread) [glocaltokens.client] Set self access_token, homegraph, access_token_date and homegraph_date to None
2021-04-03 16:11:33 DEBUG (SyncWorker_12) [glocaltokens.client] Initializing models list if empty...
2021-04-03 16:11:33 DEBUG (SyncWorker_12) [glocaltokens.client] Forcing homegraph reload.
2021-04-03 16:11:33 DEBUG (SyncWorker_12) [glocaltokens.client] Invalidated homegraph
2021-04-03 16:11:33 DEBUG (SyncWorker_12) [glocaltokens.client] Getting homegraph...
2021-04-03 16:11:33 DEBUG (SyncWorker_12) [glocaltokens.client] There is not any stored homegraph, or the stored one has expired, getting a new one...
2021-04-03 16:11:33 DEBUG (SyncWorker_12) [glocaltokens.client] Creating SSL channel credentials...
2021-04-03 16:11:33 DEBUG (SyncWorker_12) [glocaltokens.client] Creating access token call credentials...
2021-04-03 16:11:33 DEBUG (SyncWorker_12) [glocaltokens.client] There is not any stored access_token, or the stored one has expired, getting a new one...
2021-04-03 16:11:33 DEBUG (SyncWorker_12) [glocaltokens.client] Master token: aas_et/A******
2021-04-03 16:11:34 DEBUG (SyncWorker_12) [glocaltokens.client] Access token: ya29.a******, datetime 2021-04-03 16:11:34.042230
2021-04-03 16:11:34 DEBUG (SyncWorker_12) [glocaltokens.client] Compositing channel credentials...
2021-04-03 16:11:34 DEBUG (SyncWorker_12) [glocaltokens.client] Establishing secure channel with the Google Home Foyer API...
2021-04-03 16:11:34 DEBUG (SyncWorker_12) [glocaltokens.client] Getting channels StructuresServiceStub...
2021-04-03 16:11:34 DEBUG (SyncWorker_12) [glocaltokens.client] Getting HomeGraph request...
2021-04-03 16:11:34 DEBUG (SyncWorker_12) [glocaltokens.client] Fetching HomeGraph...
2021-04-03 16:11:36 DEBUG (SyncWorker_12) [glocaltokens.client] Storing gotten homegraph...
2021-04-03 16:11:36 DEBUG (SyncWorker_12) [glocaltokens.client] Getting network devices...
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Iterating in homegraph devices (len=29)
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Lamp wc
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Plafondlamp slaapkamer
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Tasmota
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Temperatuur woonkamer
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for keuken
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Betsy
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Lesley slaapt
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Wasmachine
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Wat eten we vandaag?
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Simone slaapt
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Looking for a device in local network? True
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Initializing new Device instance.
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Set self device_name to "Slaapkamer", local_auth_token to None, google_device to {name:Slaapkamer,ip:192.168.178.69,port:8009,model:Google Home Mini}, and hardware to Google Home Mini
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] google_device is not None
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self ip to 192.168.178.69
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self port to 8009
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self local_auth_token to q***********************************************************************************************************
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Adding {device.device_name} to devices list
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Nachtlamp Lesley
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for AdGuard Filtering
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for lampen tv
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Slapen
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Pillen Simone
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for lamp overloop
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Gast aanwezig
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Looking for a device in local network? True
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Initializing new Device instance.
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Set self device_name to "Keuken 3", local_auth_token to None, google_device to {name:Keuken 3,ip:192.168.178.21,port:8009,model:Google Home Mini}, and hardware to Google Home Mini
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] google_device is not None
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self ip to 192.168.178.21
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self port to 8009
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self local_auth_token to h***********************************************************************************************************
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Adding {device.device_name} to devices list
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Wat eten we morgen?
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for lampen banken
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Looking for a device in local network? True
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Initializing new Device instance.
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Set self device_name to "SHIELD", local_auth_token to None, google_device to {name:SHIELD,ip:192.168.178.10,port:8009,model:SHIELD Android TV}, and hardware to SHIELD Android TV
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] google_device is not None
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self ip to 192.168.178.10
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self port to 8009
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self local_auth_token to C***********************************************************************************************************
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Adding {device.device_name} to devices list
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Iemand thuis
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for lamp gang
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Looking for a device in local network? True
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Initializing new Device instance.
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Set self device_name to "Woonkamer", local_auth_token to None, google_device to {name:Woonkamer,ip:192.168.178.19,port:8009,model:Google Home}, and hardware to Google Home
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] google_device is not None
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self ip to 192.168.178.19
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self port to 8009
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self local_auth_token to A***********************************************************************************************************
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Adding {device.device_name} to devices list
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for lampen eettafel
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Ledstrip master
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Nachtlamp Simone
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Simone thuis
2021-04-03 16:11:56 DEBUG (SyncWorker_12) [glocaltokens.client] Google Home devices: [<glocaltokens.client.Device object at 0x7ff9d5c9d4f0>, <glocaltokens.client.Device object at 0x7ff9d5c9d520>, <glocaltokens.client.Device object at 0x7ff9cc2a2220>, <glocaltokens.client.Device object at 0x7ff9c4eabd60>]
2021-04-03 16:11:56 DEBUG (MainThread) [custom_components.google_home] Fetching data from Google Home device Slaapkamer - https://192.168.178.69:8443/setup/assistant/alarms
2021-04-03 16:11:56 DEBUG (MainThread) [custom_components.google_home] Fetching data from Google Home device Keuken 3 - https://192.168.178.21:8443/setup/assistant/alarms
2021-04-03 16:11:56 DEBUG (MainThread) [custom_components.google_home] Fetching data from Google Home device SHIELD - https://192.168.178.10:8443/setup/assistant/alarms
2021-04-03 16:11:56 DEBUG (MainThread) [custom_components.google_home] Fetching data from Google Home device Woonkamer - https://192.168.178.19:8443/setup/assistant/alarms
2021-04-03 16:12:06 ERROR (MainThread) [custom_components.google_home] Timeout fetching sensor data
2021-04-03 16:12:06 DEBUG (MainThread) [custom_components.google_home] Finished fetching sensor data in 32.997 seconds
2021-04-03 16:12:26 DEBUG (MainThread) [glocaltokens.client] Initializing new GLocalAuthenticationTokens instance.
2021-04-03 16:12:26 DEBUG (MainThread) [glocaltokens.client] Set self username to "u*************************", password to "2*************", master_token to "a******************************************************************************************************************************************************************************************************************************" and android_id to 1*************
2021-04-03 16:12:26 DEBUG (MainThread) [glocaltokens.client] Set self access_token, homegraph, access_token_date and homegraph_date to None
2021-04-03 16:12:26 DEBUG (SyncWorker_12) [glocaltokens.client] Initializing models list if empty...
2021-04-03 16:12:26 DEBUG (SyncWorker_12) [glocaltokens.client] Forcing homegraph reload.
2021-04-03 16:12:26 DEBUG (SyncWorker_12) [glocaltokens.client] Invalidated homegraph
2021-04-03 16:12:26 DEBUG (SyncWorker_12) [glocaltokens.client] Getting homegraph...
2021-04-03 16:12:26 DEBUG (SyncWorker_12) [glocaltokens.client] There is not any stored homegraph, or the stored one has expired, getting a new one...
2021-04-03 16:12:26 DEBUG (SyncWorker_12) [glocaltokens.client] Creating SSL channel credentials...
2021-04-03 16:12:26 DEBUG (SyncWorker_12) [glocaltokens.client] Creating access token call credentials...
2021-04-03 16:12:26 DEBUG (SyncWorker_12) [glocaltokens.client] There is not any stored access_token, or the stored one has expired, getting a new one...
2021-04-03 16:12:26 DEBUG (SyncWorker_12) [glocaltokens.client] Master token: xxxx
2021-04-03 16:12:27 DEBUG (SyncWorker_12) [glocaltokens.client] Access token: xxxxx
2021-04-03 16:12:27 DEBUG (SyncWorker_12) [glocaltokens.client] Compositing channel credentials...
2021-04-03 16:12:27 DEBUG (SyncWorker_12) [glocaltokens.client] Establishing secure channel with the Google Home Foyer API...
2021-04-03 16:12:27 DEBUG (SyncWorker_12) [glocaltokens.client] Getting channels StructuresServiceStub...
2021-04-03 16:12:27 DEBUG (SyncWorker_12) [glocaltokens.client] Getting HomeGraph request...
2021-04-03 16:12:27 DEBUG (SyncWorker_12) [glocaltokens.client] Fetching HomeGraph...
2021-04-03 16:12:29 DEBUG (SyncWorker_12) [glocaltokens.client] Storing gotten homegraph...
2021-04-03 16:12:29 DEBUG (SyncWorker_12) [glocaltokens.client] Getting network devices...
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Iterating in homegraph devices (len=29)
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Lamp wc
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Plafondlamp slaapkamer
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Tasmota
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Temperatuur woonkamer
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for keuken
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Betsy
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Lesley slaapt
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Wasmachine
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Wat eten we vandaag?
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Simone slaapt
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Looking for a device in local network? True
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Initializing new Device instance.
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Set self device_name to "Slaapkamer", local_auth_token to None, google_device to {name:Slaapkamer,ip:192.168.178.69,port:8009,model:Google Home Mini}, and hardware to Google Home Mini
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] google_device is not None
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self ip to 192.168.178.69
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self port to 8009
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self local_auth_token to q***********************************************************************************************************
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Adding {device.device_name} to devices list
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Nachtlamp Lesley
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for AdGuard Filtering
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for lampen tv
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Slapen
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Pillen Simone
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for lamp overloop
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Gast aanwezig
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Looking for a device in local network? True
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Initializing new Device instance.
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Set self device_name to "Keuken 3", local_auth_token to None, google_device to {name:Keuken 3,ip:192.168.178.21,port:8009,model:Google Home Mini}, and hardware to Google Home Mini
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] google_device is not None
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self ip to 192.168.178.21
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self port to 8009
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self local_auth_token to h***********************************************************************************************************
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Adding {device.device_name} to devices list
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Wat eten we morgen?
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for lampen banken
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Looking for a device in local network? True
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Initializing new Device instance.
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Set self device_name to "SHIELD", local_auth_token to None, google_device to {name:SHIELD,ip:192.168.178.10,port:8009,model:SHIELD Android TV}, and hardware to SHIELD Android TV
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] google_device is not None
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self ip to 192.168.178.10
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self port to 8009
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self local_auth_token to C***********************************************************************************************************
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Adding {device.device_name} to devices list
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Iemand thuis
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for lamp gang
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Looking for a device in local network? True
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Initializing new Device instance.
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Set self device_name to "Woonkamer", local_auth_token to None, google_device to {name:Woonkamer,ip:192.168.178.19,port:8009,model:Google Home}, and hardware to Google Home
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] google_device is not None
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self ip to 192.168.178.19
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self port to 8009
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Setting self local_auth_token to A***********************************************************************************************************
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Adding {device.device_name} to devices list
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for lampen eettafel
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Ledstrip master
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Nachtlamp Simone
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] local_auth_token is not initialized for Simone thuis
2021-04-03 16:12:49 DEBUG (SyncWorker_12) [glocaltokens.client] Google Home devices: [<glocaltokens.client.Device object at 0x7ff9be04eac0>, <glocaltokens.client.Device object at 0x7ff9b2e86610>, <glocaltokens.client.Device object at 0x7ff9b2e86790>, <glocaltokens.client.Device object at 0x7ff9b3008550>]
2021-04-03 16:12:49 DEBUG (MainThread) [custom_components.google_home] Fetching data from Google Home device Slaapkamer - https://192.168.178.69:8443/setup/assistant/alarms
2021-04-03 16:12:49 DEBUG (MainThread) [custom_components.google_home] Fetching data from Google Home device Keuken 3 - https://192.168.178.21:8443/setup/assistant/alarms
2021-04-03 16:12:49 DEBUG (MainThread) [custom_components.google_home] Fetching data from Google Home device SHIELD - https://192.168.178.10:8443/setup/assistant/alarms
2021-04-03 16:12:49 DEBUG (MainThread) [custom_components.google_home] Fetching data from Google Home device Woonkamer - https://192.168.178.19:8443/setup/assistant/alarms
2021-04-03 16:12:59 ERROR (MainThread) [custom_components.google_home] Timeout fetching sensor data
2021-04-03 16:12:59 DEBUG (MainThread) [custom_components.google_home] Finished fetching sensor data in 32.988 seconds

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 43 (14 by maintainers)

Most upvoted comments

I have found the error i think. PR coming in a couple of minutes. ๐Ÿ˜„

Itโ€™s working for me! It proper gives a time out in the debug log for the SHIELD and catches the data from the other devices. Nice!

What i thought was simple to fix, is giving me a lot of trouble.

The problem is that we timeout while gathering information from get_alarms_and_timers() for each device. If the device times out (404), it fails the entire gather function in update_google_devices_information and it returns an exception (asyncio.Timeout), even when other coroutines returns data. So effectively if one device returns 404, the coordinator times out.

I actually believe that this is the root cause of many of the reported problems. ๐Ÿ˜ž

I am going to bed now and will look into it tomorrow if any one else havenโ€™t found a solution. ๐Ÿ˜ช

@lolouk44 @LEJOUI @vlebourl Can you guys please try and install latest master and see if that fixes your issues?

Working for me as well! And in the end, data is correctly retrieved. Sorry for that lousy PR I did. And thanks for the good job!

@lolouk44 @LEJOUI @vlebourl Can you guys please try and install latest master and see if that fixes your issues?

So in HA 2021.4.1 it seems to be working again. I still need to put the SHIELD off to make it update the sensors.

See if you can replace compatable with compatible when you get the chance ๐Ÿ˜‰

just did a PR for this ๐Ÿ˜ƒ

Amazing, thanks for feedback! Thanks @DurgNomis-drol & @KapJI once again for hard work fixing it ๐Ÿš€

@LEJOUI Great to hear, can you confirm it does not timeout after sometime? ๐Ÿ˜Š

I can confirm it. have been running it all night without failing.

@leikoilja @KapJI @lolouk44 @LEJOUI and @vlebourl I think i have found out why this is happening and how we can mitigate it. ๐Ÿ˜„

The problem is caused by how we user asyncio.gather. I am right now investigating how we can mitigate it. When using gather, if one task is not completed correctly, it fails everything. It is a limitation of gather unfortunately.

Please update to 1.3.0 to see if this issue is already resolved there. Also it should redact logs properly now.

@LEJOUI, thanks for the info, what you have described looks like a bug to me. I believe what happens is when we try fetching data from unsupported devices like shield the data updater hangs with Timeout fetching sensor data blocking the other device sensors to update. I think we need to better handle timeouts when they occur in apiโ€™s. What do you guys thing, @DurgNomis-drol, @KapJI?

@lolouk44 just as @DurgNomis-drol has mentioned please provide some logs so we could understand better the issue you are having