question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

5 is not a valid GoogleHomeAlarmStatus

See original GitHub issue

Describe the bug

Integration fails to load due to an unknown alarm status image

Version of the integration

1.9.3

Logs

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
    self.data = await self._async_update_data()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 147, in _async_update_data
    return await self.update_method()
  File "/config/custom_components/google_home/api.py", line 139, in update_google_devices_information
    coordinator_data = await asyncio.gather(
  File "/config/custom_components/google_home/api.py", line 152, in collect_data_from_endpoints
    device = await self.update_alarms_and_timers(device)
  File "/config/custom_components/google_home/api.py", line 168, in update_alarms_and_timers
    device.set_alarms(cast(List[AlarmJsonDict], response[JSON_ALARM]))
  File "/config/custom_components/google_home/models.py", line 48, in set_alarms
    self._alarms = [
  File "/config/custom_components/google_home/models.py", line 49, in <listcomp>
    GoogleHomeAlarm(
  File "/config/custom_components/google_home/models.py", line 169, in __init__
    self.status = GoogleHomeAlarmStatus(status)
  File "/usr/local/lib/python3.9/enum.py", line 384, in __call__
    return cls.__new__(cls, value)
  File "/usr/local/lib/python3.9/enum.py", line 702, in __new__
    raise ve_exc
ValueError: 5 is not a valid GoogleHomeAlarmStatus

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
leikoiljacommented, Jan 5, 2022

Big kuddos to @williamg97 for fixing the issue with missed alarm status 5. Please upgrade the integration to version v1.9.4 using Hacs in HA. https://github.com/leikoilja/ha-google-home/releases/tag/v1.9.4 If you still encounter any issues please open new issue ticket 😃

1reaction
williamg97commented, Jan 4, 2022

Looks like its a new “missed” status. Similar to issue #176. Have created a PR that should fix it!

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solution to track your google home alarms and timers and ...
Config entry for xx google home integration not ready yet ... Unexpected error fetching sensor data: 4 is not a valid GoogleHomeAlarmStatus.
Read more >
Open source Python3 home automation - deel 4
-Config entry for xx google home integration not ready yet ... error fetching sensor data: 4 is not a valid GoogleHomeAlarmStatus ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found