Guard state not updated in Home Assistant
See original GitHub issueI have no problems enabling Alexa Guard mode using this component. When I do, the button I press in lovelace changes color to show the status of whether Alexa Guard has been enabled or disabled.
However if Alexa Guard is enabled or disabled by saying to the Amazon echo, “I’m leaving”, or disabled by saying “I’m home”, the state for Alexa Guard doesn’t change in Home Assistant. It remains “disarmed” whether Alexa Guard is enabled or not.
After enabling Alexa Guard by saying to Amazon echo, “I’m leaving”, I get the following log entries:
2019-07-15 23:30:27 DEBUG (SyncWorker_1) [alexapy.alexaapi] get_guard_state response: {'deviceStates': [{'entity': {'entityId': 'AAA_OnGuardSmartHomeBridgeService_XXX', 'entityType': ''}, 'capabilityStates': ['{"namespace":"Alexa.SecurityPanelController","name":"armState","value":"ARMED_STAY","timeOfSample":"2019-07-16T03:30:27.821Z","uncertaintyInMilliseconds":0,"deepQuery":true,"timeOfStateChange":""}'], 'error': None}], 'errors': []}
Upon turning off Alexa Guard by saying, “I’m Home”, I get the following log entries:
2019-07-15 23:33:03 DEBUG (SyncWorker_2) [alexapy.alexaapi] get_guard_state response: {'deviceStates': [{'entity': {'entityId': 'AAA_OnGuardSmartHomeBridgeService_XXX', 'entityType': ''}, 'capabilityStates': ['{"namespace":"Alexa.SecurityPanelController","name":"armState","value":"ARMED_AWAY","timeOfSample":"2019-07-16T03:33:03.186Z","uncertaintyInMilliseconds":0,"deepQuery":true,"timeOfStateChange":""}'], 'error': None}], 'errors': []}
EDIT: Formatting/obfuscation
Issue Analytics
- State:
- Created 4 years ago
- Comments:23
Top Results From Across the Web
Keyguard Sensors on state change instead of periodic?
I would not written here without reading the docs. And the docs clearly say the keyguard sensors update with the periodic sensor (15...
Read more >Companion App Not Updating Device Tracker - Configuration
I just started using Home Assistant this week and have been having a lot of fun with it so far. I set up...
Read more >Entity state does not update in HA - Home Assistant Community
I have a binary sensor that already add to Xiaomi quara. the sensor sent its state to my HA correctly ( I can...
Read more >HA Dashboard Not Updating Third Party Devices - Configuration
Home Assistant will update the states as soon as it has them, but there's nothing HA can do if SmartThings isn't communicating the...
Read more >2021.10.0: Z-Wave S2 support, Tuya, secure ESPHome and ...
As of this release, Home Assistant's Z-Wave JS integration supports S2! S2 is short for Security 2, a new security standard for Z-Wave...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Oh wait, I think I know. At line 158 add
self.schedule_update_ha_state()
Should look like this:Works properly in the new 2.1.2 version., Solved, thanks.