Closed Anto79-ops closed 5 months ago
Hey there @home-assistant/cloud, mind taking a look at this issue as it has been labeled with an integration (google_assistant
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
google_assistant documentation google_assistant source (message by IssueLinks)
This was changed for #115622 -- what states does the alarm control panel support?
This was meant to solve a problem where alarm control panels are not showing up in google home due to missing arm level.
Experiencing the exact same issue since 2024.6.2 (2024.6.1 didn't have it). The error was introduced in #119238 - it seems like the method _default_arm_state assumes the default armState will be the first supported state, but the list of states that may be supported doesn't even include "disarmed", so that can't work.
hello all.
I'd be happy to provided a list of supported states, do you need diagonostics? I'm not sure how to provide a list of this, but definitely disarmed
is supported.
disarmed
is definitely supported in general, but I think the google assistant integration didn't make use of it (see https://github.com/home-assistant/core/pull/119238/files#diff-610fcbdd05a06183431282ef0d29febefc0c5d56166c572cb35e6d6bdf4ef857R1562), since the armLevel
wasn't being sent if the alarm was disarmed
When disarmed, it should send the default state that would happen if you arm. So it needs to be another one of the other states supported.
If you look in the developer section on your alarm entity, what states does it list?
Ps. Would be the feature flags of the alarm
When my alarm panel is armed_home
it becomes available in GA.
@Anto79-ops can you share the state attributes?
Also -- are you able to control the alarm control panel from Googl eHome?
Hi @allenporter
I just tried to get attributes but there are not any of them, i don't think the integration supports it (via mqtt). The alarm integration is provided by a custom component here.
The alarm system works as it should in HA and has been for over 2 years now. Its only in GA that it recently broke, and get this, its only broken when the system is disarmed
state. Soon as I arm the system to say armed_home
, the alarm control returns to GA and I can control it normally in HA, but soon as I disarm the system, the alarm cannot be controlled via GA because its offline
see photos of this test:
Hope this helps.
Thanks, can you also include detail about the alarm control panel from home assistant developer tools when in each state? Looking for its state and attributes.
ok here's the state, i.e. disarmed
when its broken in GA
I'll have to get you the rest (if you need them)
Sorry for the ping @XaF, if you wanted to chime in on this, that would be great :)
Thank you -- sorry, but can you also include the same thing when working in Google Home / Nest Hub? appreciate it
I think the bug is if len(states) != 1:
code but should have been len(states) < 1
to check for no arm states.
sure, here's when its working in GA (armed_home
or armed_stay
state)
I think the bug is
if len(states) != 1:
code but should have beenlen(states) < 1
to check for no arm states.
Somewhat like that yes. For some arming only allowed one level to exist for default logic to trigger. I missed that when I extracted the code, and the tests only ever had one level so it never triggered.
So that limit need to removed from the reporting case at least.
I've opened a fix for this issue. It's a "semi" fix/feature change. So i'm not sure if i can include it in a patch release. We'll see.
Looks like this is fixed on 2024.7.0b0. Thanks
The problem
hello,
I noticed the alarm panel on my Google Assistant Hub UI was greyed out (unavaiable) and saw this in my logs:
The log is from 2023.6.2 but, it may have also been there on 2023.6.x as I noticed the alarm panel was also grey-out before 2023.6.2
thanks
the alarm panel works and is it should in HA UI directly.
What version of Home Assistant Core has the issue?
2024.6.2
What was the last working version of Home Assistant Core?
pre 2024.6 (maybe)
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Google Assistant
Link to integration documentation on our website
https://www.home-assistant.io/integrations/google_assistant/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response