Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google home device initialisation is ok but no alarm/timer sensor #231

Closed
Zolli opened this issue Apr 28, 2021 · 13 comments
Closed

Google home device initialisation is ok but no alarm/timer sensor #231

Zolli opened this issue Apr 28, 2021 · 13 comments

Comments

@Zolli
Copy link

Zolli commented Apr 28, 2021

Describe the bug

I have a fist generation google home speaker as well as a nest hub and a home mini. The last 2 works fine but for the original google home i not see alarm/timer sensor.

Version of the integration

1.2

Logs

Provided later this day

@KapJI
Copy link
Collaborator

KapJI commented Apr 28, 2021

Try to reboot that device.

@CorvetteCole
Copy link

CorvetteCole commented Apr 28, 2021

Same issue here, logs below

2021-04-28 14:19:44 DEBUG (MainThread) [custom_components.google_home] Bedroom speaker device timed out while performing a request to it - Raw data: None
2021-04-28 14:19:44 DEBUG (MainThread) [custom_components.google_home] Getting Do Not Disturb setting from Google Home device Bedroom speaker
2021-04-28 14:19:44 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/notifications for Google Home device Bedroom speaker - https://192.168.1.150:8443/setup/assistant/notifications
2021-04-28 14:19:46 DEBUG (MainThread) [custom_components.google_home] Bedroom speaker device timed out while performing a request to it - Raw data: None
2021-04-28 14:19:46 DEBUG (MainThread) [custom_components.google_home] Finished fetching sensor data in 4.007 seconds

@CorvetteCole
Copy link

Restarting the google home and home assistant managed to resolve this issue for me. I had to reinstall the integration as well

@S-Starvey
Copy link

Restarting the google home and home assistant managed to resolve this issue for me. I had to reinstall the integration as well

Yep. Didn't change a thing for me. Timers and alarms still won't work.

@KapJI
Copy link
Collaborator

KapJI commented Apr 29, 2021

@S-Starvey it's hard to say anything without logs.

@S-Starvey
Copy link

@S-Starvey it's hard to say anything without logs.

Going to a higher level of logging as soon as I come home. Plus I currently don't have access to the RPi :-D

@S-Starvey
Copy link

Well, that's gonna be helpful...
Went back home, changed the logging level, restarted HA, and now it works.
While I'm happy it works, I still would like to know what went wrong, how I could avoid it, and what happened while I wasn't there.
Maybe what @CorvetteCole said did the trick and I didn't realize (errors often come from me, let's be realistic :-D )

Anyway. I'll leave the logging level to debug for a while in case it happens again.

@Zolli
Copy link
Author

Zolli commented Apr 29, 2021

Try to reboot that device.

Hey, thanks, it actually solved the problem.

Steps i did:

  • Rebooted device
  • While booting removed the integration from HA
  • After its booted readded the integration

@CorvetteCole
Copy link

yep that's exactly what I did pretty much. Can take a few min for alarms to appear after that

ArnyminerZ added a commit that referenced this issue Jun 6, 2021
Added new section "Devices found and initialized, but no alarms/timers sensor" to the Troubleshooting guide for reference of issue #231
@ArnyminerZ
Copy link
Collaborator

Closing issue since the issue has been solved and added to the troubleshooting guide.

KapJI pushed a commit that referenced this issue Jun 7, 2021
Added new section "Devices found and initialized, but no alarms/timers sensor" to the Troubleshooting guide for reference of issue #231
@Jay2645
Copy link

Jay2645 commented Nov 12, 2021

@ArnyminerZ I'm also running into this issue sporadically, but across a number of my Google Homes. I can make it go away temporarily by following the troubleshooting steps, but it usually comes back after a week or two.

This part of the logs stuck out:

2021-11-11 23:07:24 DEBUG (MainThread) [custom_components.google_home] Failed to fetch timers/alarms information from device Bedroom display. We could not determine its IP address, the device is either offline or is not compatible Google Home device. Will try again later.
2021-11-11 23:07:24 DEBUG (MainThread) [custom_components.google_home] Failed to fetch timers/alarms information from device Guest Bathroom Speaker. We could not determine its IP address, the device is either offline or is not compatible Google Home device. Will try again later.
2021-11-11 23:07:24 DEBUG (MainThread) [custom_components.google_home] Failed to fetch timers/alarms information from device Living Room TV. We could not determine its IP address, the device is either offline or is not compatible Google Home device. Will try again later.
2021-11-11 23:07:24 DEBUG (MainThread) [custom_components.google_home] Failed to fetch timers/alarms information from device Garage Speaker. We could not determine its IP address, the device is either offline or is not compatible Google Home device. Will try again later.
2021-11-11 23:07:24 DEBUG (MainThread) [custom_components.google_home] Failed to fetch timers/alarms information from device Michelle's Office. We could not determine its IP address, the device is either offline or is not compatible Google Home device. Will try again later.
2021-11-11 23:07:24 DEBUG (MainThread) [custom_components.google_home] Failed to fetch timers/alarms information from device Bedroom Wifi. We could not determine its IP address, the device is either offline or is not compatible Google Home device. Will try again later.
2021-11-11 23:07:24 DEBUG (MainThread) [custom_components.google_home] Failed to fetch timers/alarms information from device Bathroom Speaker. We could not determine its IP address, the device is either offline or is not compatible Google Home device. Will try again later.
2021-11-11 23:07:24 DEBUG (MainThread) [custom_components.google_home] Failed to fetch timers/alarms information from device Office TV. We could not determine its IP address, the device is either offline or is not compatible Google Home device. Will try again later.
2021-11-11 23:07:24 DEBUG (MainThread) [custom_components.google_home] Failed to fetch timers/alarms information from device Living Room WiFi. We could not determine its IP address, the device is either offline or is not compatible Google Home device. Will try again later.
2021-11-11 23:07:24 DEBUG (MainThread) [custom_components.google_home] Failed to fetch timers/alarms information from device Family Room TV. We could not determine its IP address, the device is either offline or is not compatible Google Home device. Will try again later.
2021-11-11 23:07:24 DEBUG (MainThread) [custom_components.google_home] Failed to fetch timers/alarms information from device Office speaker. We could not determine its IP address, the device is either offline or is not compatible Google Home device. Will try again later.
2021-11-11 23:07:24 DEBUG (MainThread) [custom_components.google_home] Finished fetching sensor data in 5.977 seconds (success: True)

Might it be worth changing that to a warning? Then at the very least there's a way to see that something went wrong without needing to switch logging to full debug.

These are a mix of Google Home Minis, 1 Google Home Max (Office Speaker), 1 Chromecast Ultra (Office TV), a couple Google Wifi points (the newer ones with Google Homes built-in), and a couple of the Google display things whose name escapes me at the moment.

When the issue happens, I can see this spammed in the logs as well:

2021-11-11 23:07:23 DEBUG (SyncWorker_9) [glocaltokens.client] [Device - Garage Speaker(id=54115606-7a0e-4fb2-a4c3-28355fcc5dc2)] Initializing new Device instance
2021-11-11 23:07:23 DEBUG (SyncWorker_9) [glocaltokens.client] [Device - Garage Speaker(id=54115606-7a0e-4fb2-a4c3-28355fcc5dc2)] Set device_name to "Garage Speaker", local_auth_token to "h***********************************************************************************************************", IP to "None", PORT to "None" and hardware to "Google Home Mini"

It generally seems to be "all-or-nothing" in my experience. If glocaltokens is able to return the correct IP on the first try, everything seems to work. That makes me think there might possibly be a race condition in glocaltokens?

Obviously the devices must have an IP for them to be found on the network, so seeing an IP of "None" should presumably raise an error of some kind.


EDIT: When it does work, I get a bunch of timeouts on the first boot:

Garage Speaker device timed out while performing a request to it - Raw data: None
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Getting alarm volume from Google Home device Garage Speaker
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms/volume for Google Home device Garage Speaker - https://192.168.86.35:8443/setup/assistant/alarms/volume
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Bedroom display device timed out while performing a request to it - Raw data: None
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Getting alarm volume from Google Home device Bedroom display
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms/volume for Google Home device Bedroom display - https://192.168.86.24:8443/setup/assistant/alarms/volume
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Guest Bathroom Speaker device timed out while performing a request to it - Raw data: None
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Getting alarm volume from Google Home device Guest Bathroom Speaker
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms/volume for Google Home device Guest Bathroom Speaker - https://192.168.86.45:8443/setup/assistant/alarms/volume
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Bedroom Wifi device timed out while performing a request to it - Raw data: None
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Getting alarm volume from Google Home device Bedroom Wifi
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms/volume for Google Home device Bedroom Wifi - https://192.168.86.249:8443/setup/assistant/alarms/volume
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Michelle's Office device timed out while performing a request to it - Raw data: None
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Getting alarm volume from Google Home device Michelle's Office
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms/volume for Google Home device Michelle's Office - https://192.168.86.29:8443/setup/assistant/alarms/volume
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Living Room WiFi device timed out while performing a request to it - Raw data: None
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Getting alarm volume from Google Home device Living Room WiFi
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms/volume for Google Home device Living Room WiFi - https://192.168.86.21:8443/setup/assistant/alarms/volume
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Office TV device timed out while performing a request to it - Raw data: None
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Getting alarm volume from Google Home device Office TV
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms/volume for Google Home device Office TV - https://192.168.86.37:8443/setup/assistant/alarms/volume
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Family Room TV device timed out while performing a request to it - Raw data: None
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Getting alarm volume from Google Home device Family Room TV
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms/volume for Google Home device Family Room TV - https://192.168.86.234:8443/setup/assistant/alarms/volume
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Office speaker device timed out while performing a request to it - Raw data: None
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Getting alarm volume from Google Home device Office speaker
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms/volume for Google Home device Office speaker - https://192.168.86.39:8443/setup/assistant/alarms/volume
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Received alarm volume from Google Home device Guest Bathroom Speaker - Volume: 100(raw=1.0)
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Getting Do Not Disturb setting from Google Home device Guest Bathroom Speaker
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/notifications for Google Home device Guest Bathroom Speaker - https://192.168.86.45:8443/setup/assistant/notifications
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Received alarm volume from Google Home device Garage Speaker - Volume: 71(raw=0.7142857313156128)
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Getting Do Not Disturb setting from Google Home device Garage Speaker
2021-11-11 23:17:45 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/notifications for Google Home device Garage Speaker - https://192.168.86.35:8443/setup/assistant/notifications
2021-11-11 23:17:46 DEBUG (MainThread) [custom_components.google_home] Failed to perform request to Office TV, API returned 404. The device(hardware='Chromecast Ultra') is possibly not Google Home compatible and has no alarms/timers. Will retry later.
2021-11-11 23:17:46 DEBUG (MainThread) [custom_components.google_home] Getting Do Not Disturb setting from Google Home device Office TV
2021-11-11 23:17:46 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/notifications for Google Home device Office TV - https://192.168.86.37:8443/setup/assistant/notifications
2021-11-11 23:17:46 DEBUG (MainThread) [custom_components.google_home] Received alarm volume from Google Home device Bedroom Wifi - Volume: 67(raw=0.6666666865348816)
2021-11-11 23:17:46 DEBUG (MainThread) [custom_components.google_home] Getting Do Not Disturb setting from Google Home device Bedroom Wifi
2021-11-11 23:17:46 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/notifications for Google Home device Bedroom Wifi - https://192.168.86.249:8443/setup/assistant/notifications
2021-11-11 23:17:46 DEBUG (MainThread) [custom_components.google_home] Received Do Not Disturb setting from Google Home device Guest Bathroom Speaker - Enabled: False
2021-11-11 23:17:46 DEBUG (MainThread) [custom_components.google_home] Received alarm volume from Google Home device Living Room WiFi - Volume: 67(raw=0.6666666865348816)
2021-11-11 23:17:46 DEBUG (MainThread) [custom_components.google_home] Getting Do Not Disturb setting from Google Home device Living Room WiFi
2021-11-11 23:17:46 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/notifications for Google Home device Living Room WiFi - https://192.168.86.21:8443/setup/assistant/notifications
2021-11-11 23:17:46 DEBUG (MainThread) [custom_components.google_home] Failed to perform request to Office TV, API returned 404. The device(hardware='Chromecast Ultra') is possibly not Google Home compatible and has no alarms/timers. Will retry later.
2021-11-11 23:17:46 DEBUG (MainThread) [custom_components.google_home] Received Do Not Disturb setting from Google Home device Garage Speaker - Enabled: False
2021-11-11 23:17:46 DEBUG (MainThread) [custom_components.google_home] Received Do Not Disturb setting from Google Home device Bedroom Wifi - Enabled: False
2021-11-11 23:17:46 DEBUG (MainThread) [custom_components.google_home] Received Do Not Disturb setting from Google Home device Living Room WiFi - Enabled: False

But then after a few minutes it tries again with more success:

2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms for Google Home device Bedroom display - https://192.168.86.24:8443/setup/assistant/alarms
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms for Google Home device Guest Bathroom Speaker - https://192.168.86.45:8443/setup/assistant/alarms
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms for Google Home device Garage Speaker - https://192.168.86.35:8443/setup/assistant/alarms
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms for Google Home device Michelle's Office - https://192.168.86.29:8443/setup/assistant/alarms
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms for Google Home device Bedroom Wifi - https://192.168.86.249:8443/setup/assistant/alarms
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms for Google Home device Office TV - https://192.168.86.37:8443/setup/assistant/alarms
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms for Google Home device Living Room WiFi - https://192.168.86.21:8443/setup/assistant/alarms
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms for Google Home device Family Room TV - https://192.168.86.234:8443/setup/assistant/alarms
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms for Google Home device Office speaker - https://192.168.86.39:8443/setup/assistant/alarms
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Failed to perform request to Family Room TV, API returned 404. The device(hardware='Chromecast') is possibly not Google Home compatible and has no alarms/timers. Will retry later.
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Getting alarm volume from Google Home device Family Room TV
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms/volume for Google Home device Family Room TV - https://192.168.86.234:8443/setup/assistant/alarms/volume
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Failed to perform request to Family Room TV, API returned 404. The device(hardware='Chromecast') is possibly not Google Home compatible and has no alarms/timers. Will retry later.
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Getting Do Not Disturb setting from Google Home device Family Room TV
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/notifications for Google Home device Family Room TV - https://192.168.86.234:8443/setup/assistant/notifications
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Failed to perform request to Office TV, API returned 404. The device(hardware='Chromecast Ultra') is possibly not Google Home compatible and has no alarms/timers. Will retry later.
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Getting alarm volume from Google Home device Office TV
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms/volume for Google Home device Office TV - https://192.168.86.37:8443/setup/assistant/alarms/volume
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Failed to perform request to Family Room TV, API returned 404. The device(hardware='Chromecast') is possibly not Google Home compatible and has no alarms/timers. Will retry later.
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Failed to perform request to Office TV, API returned 404. The device(hardware='Chromecast Ultra') is possibly not Google Home compatible and has no alarms/timers. Will retry later.
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Getting Do Not Disturb setting from Google Home device Office TV
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/notifications for Google Home device Office TV - https://192.168.86.37:8443/setup/assistant/notifications
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Failed to perform request to Office TV, API returned 404. The device(hardware='Chromecast Ultra') is possibly not Google Home compatible and has no alarms/timers. Will retry later.
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Successfully retrieved alarms and timers from Living Room WiFi. Response: {'alarm': [], 'timer': [{'fire_time': 1636704340000.0, 'id': 'timer/618d122c-0000-2866-92b0-f072ea096828', 'original_duration': 3600000.0, 'status': 1}]}
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Getting alarm volume from Google Home device Living Room WiFi
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms/volume for Google Home device Living Room WiFi - https://192.168.86.21:8443/setup/assistant/alarms/volume
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Successfully retrieved alarms and timers from Guest Bathroom Speaker. Response: {'alarm': [], 'timer': []}
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Getting alarm volume from Google Home device Guest Bathroom Speaker
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms/volume for Google Home device Guest Bathroom Speaker - https://192.168.86.45:8443/setup/assistant/alarms/volume
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Successfully retrieved alarms and timers from Bedroom Wifi. Response: {'alarm': [], 'timer': []}
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Getting alarm volume from Google Home device Bedroom Wifi
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms/volume for Google Home device Bedroom Wifi - https://192.168.86.249:8443/setup/assistant/alarms/volume
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Successfully retrieved alarms and timers from Garage Speaker. Response: {'alarm': [], 'timer': []}
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Getting alarm volume from Google Home device Garage Speaker
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms/volume for Google Home device Garage Speaker - https://192.168.86.35:8443/setup/assistant/alarms/volume
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Received alarm volume from Google Home device Living Room WiFi - Volume: 67(raw=0.6666666865348816)
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Getting Do Not Disturb setting from Google Home device Living Room WiFi
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/notifications for Google Home device Living Room WiFi - https://192.168.86.21:8443/setup/assistant/notifications
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Received alarm volume from Google Home device Bedroom Wifi - Volume: 67(raw=0.6666666865348816)
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Getting Do Not Disturb setting from Google Home device Bedroom Wifi
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/notifications for Google Home device Bedroom Wifi - https://192.168.86.249:8443/setup/assistant/notifications
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Received alarm volume from Google Home device Guest Bathroom Speaker - Volume: 100(raw=1.0)
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Getting Do Not Disturb setting from Google Home device Guest Bathroom Speaker
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/notifications for Google Home device Guest Bathroom Speaker - https://192.168.86.45:8443/setup/assistant/notifications
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Received Do Not Disturb setting from Google Home device Living Room WiFi - Enabled: False
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Received alarm volume from Google Home device Garage Speaker - Volume: 71(raw=0.7142857313156128)
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Getting Do Not Disturb setting from Google Home device Garage Speaker
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/notifications for Google Home device Garage Speaker - https://192.168.86.35:8443/setup/assistant/notifications
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Received Do Not Disturb setting from Google Home device Bedroom Wifi - Enabled: False
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Received Do Not Disturb setting from Google Home device Guest Bathroom Speaker - Enabled: False
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Received Do Not Disturb setting from Google Home device Garage Speaker - Enabled: False
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Successfully retrieved alarms and timers from Michelle's Office. Response: {'alarm': [], 'timer': []}
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Getting alarm volume from Google Home device Michelle's Office
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms/volume for Google Home device Michelle's Office - https://192.168.86.29:8443/setup/assistant/alarms/volume
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Received alarm volume from Google Home device Michelle's Office - Volume: 72(raw=0.7200000286102295)
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Getting Do Not Disturb setting from Google Home device Michelle's Office
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/notifications for Google Home device Michelle's Office - https://192.168.86.29:8443/setup/assistant/notifications
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Successfully retrieved alarms and timers from Bedroom display. Response: {'alarm': [], 'timer': []}
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Getting alarm volume from Google Home device Bedroom display
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms/volume for Google Home device Bedroom display - https://192.168.86.24:8443/setup/assistant/alarms/volume
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Received Do Not Disturb setting from Google Home device Michelle's Office - Enabled: False
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Received alarm volume from Google Home device Bedroom display - Volume: 72(raw=0.7200000286102295)
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Getting Do Not Disturb setting from Google Home device Bedroom display
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/notifications for Google Home device Bedroom display - https://192.168.86.24:8443/setup/assistant/notifications
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Received Do Not Disturb setting from Google Home device Bedroom display - Enabled: False
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Successfully retrieved alarms and timers from Office speaker. Response: {'alarm': [], 'timer': [{'fire_time': 1636704336497.0, 'id': 'timer/e3a8c164-a690-fd08-6dbc-e9a26659b180', 'original_duration': 3600000.0, 'status': 1}]}
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Getting alarm volume from Google Home device Office speaker
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/alarms/volume for Google Home device Office speaker - https://192.168.86.39:8443/setup/assistant/alarms/volume
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Received alarm volume from Google Home device Office speaker - Volume: 43(raw=0.4333333373069763)
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Getting Do Not Disturb setting from Google Home device Office speaker
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Requesting endpoint setup/assistant/notifications for Google Home device Office speaker - https://192.168.86.39:8443/setup/assistant/notifications
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Received Do Not Disturb setting from Google Home device Office speaker - Enabled: False
2021-11-11 23:20:49 DEBUG (MainThread) [custom_components.google_home] Finished fetching sensor data in 0.335 seconds (success: True)

That again leads me to think that maybe requests are just being made before things are ready somehow? And that's why when things work properly it takes a couple minutes for the alarm to appear.

@leikoilja
Copy link
Owner

@Jay2645, can you please open a new issue where you can state the version of the integration you are using.
The few follow up things that comes to the mind right away:

  • Are you sure your google devices have a static address on your local network? Perhaps re-installing the integration remedies the issue until the dynamic IP addresses for your devices change? The feature proposal here here should introduce a extra functionality to manually specify the IP addresses for integration that fail to use zeroconf to automatically determine the IP address
  • A bunch of timeouts at the startup makes me think that we "overflood" the google devices during the initialization and first couple of API calls. That would kind-of explain why it might get back to life after a few moments.
  • As for the debug message the device is either offline or is not compatible...Will try again later i suggest we first solve Allow a list of local IP addresses to be used to add devices #340 and them change the logic from "will try again later" to loggin as warning and allow the user to manually set the IP address in the integration options

@Jay2645
Copy link

Jay2645 commented Nov 12, 2021

@leikoilja I went ahead and created #390. Thanks for the help! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants