Closed natekspencer closed 1 week ago
Hey there @home-assistant/cloud, @ochlocracy, @jbouwh, mind taking a look at this issue as it has been labeled with an integration (alexa
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
alexa documentation alexa source (message by IssueLinks)
Okay, do you want to open a PR to fix this yourself?
Okay, do you want to open a PR to fix this yourself?
Yeah, I'd be happy to do so!
If you open a PR, make sure you add a test case as well that covers the cases that should be successful.
The problem
I have a routine that I run at night from Alexa where one of the steps is to arm my security system in stay mode. If I run it again (or if the system is already armed), I get an error response from Alexa saying: "Hmm, is not responding."
What version of Home Assistant Core has the issue?
core-2024.10.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
alexa
Link to integration documentation on our website
https://www.home-assistant.io/integrations/alexa/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
According to the Alexa security panel interface documentation, arming a system with the same status should result in a success, not an error:
"Support the Arm directive so that users can arm their security system. If you receive an Arm directive, and the new armState matches the current armState, respond with a success response, not an error response. However, there are strict requirements for changing armState."
These strict requirements seem to state that the only restriction is you can't change from ARMED_AWAY to a different armed state without first disarming the system.
This would imply that you could, however, go from ARMED_STAY to ARMED_AWAY without first needing to disarm the system.
Thus, it would reason that this check in the code should be adjusted: https://github.com/home-assistant/core/blob/5cf13d92739c8554d386874617e056258fb043c6/homeassistant/components/alexa/handlers.py#L1086-L1088