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.

Guard state not updated in Home Assistant

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:23

github_iconTop GitHub Comments

1reaction
alandtsecommented, Aug 7, 2019

Oh wait, I think I know. At line 158 add self.schedule_update_ha_state() Should look like this:

        _LOGGER.debug("%s: Alarm State: %s", self.account, self.state)
        self.schedule_update_ha_state()
0reactions
TomboCZcommented, Sep 9, 2019

Works properly in the new 2.1.2 version., Solved, thanks.

Read more comments on GitHub >

github_iconTop 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 >

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