Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guard state not updated in Home Assistant #256

Closed
PlayedIn opened this issue Jul 16, 2019 · 23 comments · Fixed by #267
Closed

Guard state not updated in Home Assistant #256

PlayedIn opened this issue Jul 16, 2019 · 23 comments · Fixed by #267
Labels
bug Something isn't working

Comments

@PlayedIn
Copy link

PlayedIn commented Jul 16, 2019

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

@alandtse
Copy link
Owner

So to check, the logs are saying that in the first set, that it's switching to a disarm state ARMED_STAY. The second set of logs says it's in an armed state ARMED_AWAY. Is HA reporting the opposite values for you at all times? Can you experiment with both clicking the button and speaking to HA to see what the get_guard_state response is and whether it's being consistent in either direction?

There's also a lot of volume changes. Are you changing the volume at this time? It may help to isolate that out while testing so there's less traffic to read.

Finally, I went through and made the quoting easier to read and also obfuscated your logs. Please try to do that moving forward (you can click edit to see how I got the block quoting).

@PlayedIn
Copy link
Author

Yes Home Assistant reports just "disarmed" as the state (see screenshot) when I use Alexa to enable Guard.

image

The logs in my other post was from enabling and disabling Guard using voice commands to the Amazon Echo. The logs below are when I enable and disable Guard using your custom component from within Home Assistant.

Enable Guard from HA with this custom component:

2019-07-16 20:51:03 DEBUG (SyncWorker_5) [alexapy.alexaapi] set_guard_state response: {'controlResponses': [{'code': 'SUCCESS', 'message': None, 'data': None, 'entityId': '06e57428-c917-45ed-8ae0-a5d475e12110'}], 'errors': []} for data: {"controlRequests": [{"entityId": "06e57428-c917-45ed-8ae0-a5d475e12110", "entityType": "APPLIANCE", "parameters": {"action": "controlSecurityPanel", "armState": "ARMED_AWAY"}}]} 
2019-07-16 20:51:03 DEBUG (SyncWorker_5) [alexapy.alexaapi] get_guard_state response: {'deviceStates': [{'entity': {'entityId': 'AAA_OnGuardSmartHomeBridgeService_73ecd65d-7e10-3eb3-80df-bdbcc5018020', 'entityType': ''}, 'capabilityStates': ['{"namespace":"Alexa.SecurityPanelController","name":"armState","value":"ARMED_AWAY","timeOfSample":"2019-07-17T00:51:03.298Z","uncertaintyInMilliseconds":0,"deepQuery":true,"timeOfStateChange":""}'], 'error': None}], 'errors': []}

The state changes to armed_away as it should:

image

Disable Guard from within Home Assistant using this custom component:

2019-07-16 20:51:54 DEBUG (SyncWorker_2) [alexapy.alexaapi] set_guard_state response: {'controlResponses': [{'code': 'SUCCESS', 'message': None, 'data': None, 'entityId': '06e57428-c917-45ed-8ae0-a5d475e12110'}], 'errors': []} for data: {"controlRequests": [{"entityId": "06e57428-c917-45ed-8ae0-a5d475e12110", "entityType": "APPLIANCE", "parameters": {"action": "controlSecurityPanel", "armState": "ARMED_STAY"}}]} 
2019-07-16 20:51:54 DEBUG (SyncWorker_2) [alexapy.alexaapi] get_guard_state response: {'deviceStates': [{'entity': {'entityId': 'AAA_OnGuardSmartHomeBridgeService_73ecd65d-7e10-3eb3-80df-bdbcc5018020', 'entityType': ''}, 'capabilityStates': ['{"namespace":"Alexa.SecurityPanelController","name":"armState","value":"ARMED_STAY","timeOfSample":"2019-07-17T00:51:54.664Z","uncertaintyInMilliseconds":0,"deepQuery":true,"timeOfStateChange":""}'], 'error': None}], 'errors': []}

The state changes to disarmed as it should.

@alandtse
Copy link
Owner

What if you make changes in the Alexa app? We're basically mimicking that call but perhaps we're missing some info.

@PlayedIn
Copy link
Author

PlayedIn commented Jul 21, 2019

@alandtse
Here are the log entries when I enabled Guard from within the Alexa app:

2019-07-21 09:07:10 DEBUG (Thread-3) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-07-21 09:07:10 DEBUG (Thread-3) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x679e6cb0 f 0x00000001 0x94b9fbac 0x00000240 GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:A17XZBYWJG1SFN:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:133-7322430-0219216-1563684490000 {"payload":"{\\"destinationUserId\\":\\"A17XZBYWJG1SFN\\",\\"dopplerId\\":{\\"deviceSerialNumber\\":\\"2972e81c5ce2478daa2c71b2383c2803\\",\\"deviceType\\":\\"A2TF17PFR55MTB\\"},\\"dopplerConnectionState\\":\\"ONLINE\\"}","command":"PUSH_DOPPLER_CONNECTION_CHANGE"}FABE'
2019-07-21 09:07:10 DEBUG (Thread-3) [alexapy.alexawebsocket] Received Standard MSG.
2019-07-21 09:07:11 DEBUG (Thread-3) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-07-21 09:07:11 DEBUG (Thread-3) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x679e6d25 f 0x00000001 0xb2ac182b 0x00000235 GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:A17XZBYWJG1SFN:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:133-7322430-0219216-1563684490000 {"payload":"{\\"destinationUserId\\":\\"A17XZBYWJG1SFN\\",\\"dopplerId\\":{\\"deviceSerialNumber\\":\\"2972e81c5ce2478daa2c71b2383c2803\\",\\"deviceType\\":\\"A2TF17PFR55MTB\\"},\\"isMuted\\":false,\\"volumeSetting\\":93}","command":"PUSH_VOLUME_CHANGE"}FABE'
2019-07-21 09:07:11 DEBUG (Thread-3) [alexapy.alexawebsocket] Received Standard MSG.

...and here are the log entries once I disabled Guard from within the Alexa app:

2019-07-21 09:13:38 DEBUG (Thread-3) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-07-21 09:13:38 DEBUG (Thread-3) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x67a00397 f 0x00000001 0x66b3cbab 0x00000240 GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:A17XZBYWJG1SFN:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:133-7322430-0219216-1563684490000 {"payload":"{\\"destinationUserId\\":\\"A17XZBYWJG1SFN\\",\\"dopplerId\\":{\\"deviceSerialNumber\\":\\"2972e81c5ce2478daa2c71b2383c2803\\",\\"deviceType\\":\\"A2TF17PFR55MTB\\"},\\"dopplerConnectionState\\":\\"ONLINE\\"}","command":"PUSH_DOPPLER_CONNECTION_CHANGE"}FABE'
2019-07-21 09:13:38 DEBUG (Thread-3) [alexapy.alexawebsocket] Received Standard MSG.
2019-07-21 09:13:38 DEBUG (Thread-3) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-07-21 09:13:38 DEBUG (Thread-3) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x67a003e8 f 0x00000001 0x80a5e786 0x00000235 GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:A17XZBYWJG1SFN:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:133-7322430-0219216-1563684490000 {"payload":"{\\"destinationUserId\\":\\"A17XZBYWJG1SFN\\",\\"dopplerId\\":{\\"deviceSerialNumber\\":\\"2972e81c5ce2478daa2c71b2383c2803\\",\\"deviceType\\":\\"A2TF17PFR55MTB\\"},\\"isMuted\\":false,\\"volumeSetting\\":93}","command":"PUSH_VOLUME_CHANGE"}FABE'
2019-07-21 09:13:38 DEBUG (Thread-3) [alexapy.alexawebsocket] Received Standard MSG.

@alandtse
Copy link
Owner

So it looks like nothing is updating when using the app. I am seeing websocket activity. Are you actually adjusting the volume during the logs or is that happening automatically?

@PlayedIn
Copy link
Author

I'm not adjusting the volume, and I don't know of anything that's doing it automatically. I'll check back through my HA automations and Node Red flows to be sure, but I'm 99% sure I don't have anything.

@alandtse
Copy link
Owner

alandtse commented Aug 4, 2019

Ok I have a partial fix; the issue was the check wasn't happening for all commands and it also needed a one second delay if you're enabling/disabling via voice. However, we won't be able to update instantly on app changes.

@PlayedIn
Copy link
Author

PlayedIn commented Aug 4, 2019

Awesome news. Thank you!

@PlayedIn
Copy link
Author

PlayedIn commented Aug 7, 2019

I'm not sure if I'm doing something wrong or not, but I copied the updated files from the Dev branch into the custom component, and then restarted hassio. The HA Guard state is still not changing when I enable and disable Guard using Alexa voice commands.

@alandtse
Copy link
Owner

alandtse commented Aug 7, 2019

In alarm_control_panel, change line 121 to increase the delay from 1 to something larger like 2-3.

        if 'push_activity' in event.data:
            call_later(self.hass, 1, lambda _:
                       self.refresh(no_throttle=True))

If you don't have this file to change, then you didn't copy the fix correctly. Otherwise, let me know what delay starts to work for you.

@PlayedIn
Copy link
Author

PlayedIn commented Aug 7, 2019

Ok, I tried without success 2, 3, 4, and also 5 rebooting each time. The state of alarm_control_panel.alexa_guard_18020 remains disarmed when I enable Guard via Alexa voice. Possibly a Stupid Question: I notice one of the attributes for alarm_control_panel.alexa_guard_18020 is code_arm_required:true. That's not preventing it from arming is it?

@alandtse
Copy link
Owner

alandtse commented Aug 7, 2019

Is your Alexa Guard actually reporting anything? I just realized it may no longer be setting up in my test setup.

@PlayedIn
Copy link
Author

PlayedIn commented Aug 7, 2019

In the ha log, I get the state of "ARMED_AWAY" when I enable Guard using Alexa voice. In the ha log, I get the state of "ARMED_STAY" when I disable Guard using Alexa voice.

However the entity, alarm_control_panel.alexa_guard_18020, state never changes but instead is always "disarmed" when using Alexa voice to enable Guard.

@PlayedIn
Copy link
Author

PlayedIn commented Aug 7, 2019

Also here is the log entry for when I enable Guard by telling Alexa, "I'm leaving":

2019-08-07 00:35:40 DEBUG (SyncWorker_14) [alexapy.alexaapi] get_guard_state response: {'deviceStates': [{'entity': {'entityId': 'AAA_OnGuardSmartHomeBridgeService_73ecd65d-7e10-3eb3-80df-bdbcc5018020', 'entityType': ''}, 'capabilityStates': ['{"namespace":"Alexa.SecurityPanelController","name":"armState","value":"ARMED_AWAY","timeOfSample":"2019-08-07T04:35:40.189Z","uncertaintyInMilliseconds":0,"deepQuery":true,"timeOfStateChange":""}'], 'error': None}], 'errors': []}

@PlayedIn
Copy link
Author

PlayedIn commented Aug 7, 2019

...and here is the log entry for when I disable Guard by telling Alexa, "I'm home":

2019-08-07 00:36:21 DEBUG (SyncWorker_19) [alexapy.alexaapi] get_guard_state response: {'deviceStates': [{'entity': {'entityId': 'AAA_OnGuardSmartHomeBridgeService_73ecd65d-7e10-3eb3-80df-bdbcc5018020', 'entityType': ''}, 'capabilityStates': ['{"namespace":"Alexa.SecurityPanelController","name":"armState","value":"ARMED_STAY","timeOfSample":"2019-08-07T04:36:21.187Z","uncertaintyInMilliseconds":0,"deepQuery":true,"timeOfStateChange":""}'], 'error': None}], 'errors': []}

@alandtse
Copy link
Owner

alandtse commented Aug 7, 2019

Can you expand that to show the alexawebsocket activity? It's returning the right states.

@alandtse
Copy link
Owner

alandtse commented 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()

@PlayedIn
Copy link
Author

PlayedIn commented Aug 7, 2019

Here is the log when I enable Guard using Alexa "I'm leaving":

2019-08-07 01:03:44 DEBUG (Thread-2) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-08-07 01:03:44 DEBUG (Thread-2) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x61f1b315 f 0x00000001 0x62809629 0x0000022e GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:A17XZBYWJG1SFN:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:133-7322430-0219216-1565149974000 {"payload":"{\\"destinationUserId\\":\\"A17XZBYWJG1SFN\\",\\"bass\\":3,\\"treble\\":0,\\"dopplerId\\":{\\"deviceSerialNumber\\":\\"G090LB09820301RE\\",\\"deviceType\\":\\"A2M35JJZWCQOMZ\\"},\\"midrange\\":0}","command":"PUSH_EQUALIZER_STATE_CHANGE"}FABE'
2019-08-07 01:03:45 DEBUG (Thread-2) [alexapy.alexawebsocket] Received Standard MSG.
2019-08-07 01:03:45 DEBUG (Thread-2) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-08-07 01:03:45 DEBUG (Thread-2) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x61f1b319 f 0x00000001 0x82d5714f 0x00000225 GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:A17XZBYWJG1SFN:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:133-7322430-0219216-1565149974000 {"payload":"{\\"destinationUserId\\":\\"A17XZBYWJG1SFN\\",\\"dopplerId\\":{\\"deviceSerialNumber\\":\\"G090LB09820301RE\\",\\"deviceType\\":\\"A2M35JJZWCQOMZ\\"},\\"isMuted\\":false,\\"volumeSetting\\":50}","command":"PUSH_VOLUME_CHANGE"}FABE'
2019-08-07 01:03:45 DEBUG (Thread-2) [alexapy.alexawebsocket] Received Standard MSG.
2019-08-07 01:03:45 DEBUG (Thread-2) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-08-07 01:03:45 DEBUG (Thread-2) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x61f1b3c4 f 0x00000001 0x6180965b 0x0000022e GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:A17XZBYWJG1SFN:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:133-7322430-0219216-1565149974000 {"payload":"{\\"destinationUserId\\":\\"A17XZBYWJG1SFN\\",\\"bass\\":3,\\"treble\\":0,\\"dopplerId\\":{\\"deviceSerialNumber\\":\\"G090LB09820301RE\\",\\"deviceType\\":\\"A2M35JJZWCQOMZ\\"},\\"midrange\\":0}","command":"PUSH_EQUALIZER_STATE_CHANGE"}FABE'
2019-08-07 01:03:45 DEBUG (Thread-2) [alexapy.alexawebsocket] Received Standard MSG.
2019-08-07 01:03:45 DEBUG (Thread-2) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-08-07 01:03:45 DEBUG (Thread-2) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x61f1b3c5 f 0x00000001 0x7ed57181 0x00000225 GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:A17XZBYWJG1SFN:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:133-7322430-0219216-1565149974000 {"payload":"{\\"destinationUserId\\":\\"A17XZBYWJG1SFN\\",\\"dopplerId\\":{\\"deviceSerialNumber\\":\\"G090LB09820301RE\\",\\"deviceType\\":\\"A2M35JJZWCQOMZ\\"},\\"isMuted\\":false,\\"volumeSetting\\":50}","command":"PUSH_VOLUME_CHANGE"}FABE'
2019-08-07 01:03:45 DEBUG (Thread-2) [alexapy.alexawebsocket] Received Standard MSG.
2019-08-07 01:03:45 DEBUG (Thread-2) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-08-07 01:03:45 DEBUG (Thread-2) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x61f1b40c f 0x00000001 0xd930fcaa 0x00000227 GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:A17XZBYWJG1SFN:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:133-7322430-0219216-1565149974000 {"payload":"{\\"destinationUserId\\":\\"A17XZBYWJG1SFN\\",\\"key\\":{\\"entryId\\":\\"1565154225683#A2M35JJZWCQOMZ#G090LB09820301RE\\",\\"registeredUserId\\":\\"A17XZBYWJG1SFN\\"},\\"timestamp\\":1565154225700}","command":"PUSH_ACTIVITY"}FABE'
2019-08-07 01:03:45 DEBUG (Thread-2) [alexapy.alexawebsocket] Received Standard MSG.
2019-08-07 01:03:47 DEBUG (Thread-2) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-08-07 01:03:47 DEBUG (Thread-2) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x61f1b5e6 f 0x00000001 0xb732fcdc 0x00000227 GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:A17XZBYWJG1SFN:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:133-7322430-0219216-1565149974000 {"payload":"{\\"destinationUserId\\":\\"A17XZBYWJG1SFN\\",\\"key\\":{\\"entryId\\":\\"1565154226930#A2M35JJZWCQOMZ#G090LB09820301RE\\",\\"registeredUserId\\":\\"A17XZBYWJG1SFN\\"},\\"timestamp\\":1565154227387}","command":"PUSH_ACTIVITY"}FABE'
2019-08-07 01:03:47 DEBUG (Thread-2) [alexapy.alexawebsocket] Received Standard MSG.
2019-08-07 01:03:47 DEBUG (Thread-2) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-08-07 01:03:47 DEBUG (Thread-2) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x61f1b657 f 0x00000001 0x6480992d 0x0000022e GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:A17XZBYWJG1SFN:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:133-7322430-0219216-1565149974000 {"payload":"{\\"destinationUserId\\":\\"A17XZBYWJG1SFN\\",\\"bass\\":3,\\"treble\\":0,\\"dopplerId\\":{\\"deviceSerialNumber\\":\\"G090LB09820301RE\\",\\"deviceType\\":\\"A2M35JJZWCQOMZ\\"},\\"midrange\\":0}","command":"PUSH_EQUALIZER_STATE_CHANGE"}FABE'
2019-08-07 01:03:47 DEBUG (Thread-2) [alexapy.alexawebsocket] Received Standard MSG.
2019-08-07 01:03:47 DEBUG (Thread-2) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-08-07 01:03:47 DEBUG (Thread-2) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x61f1b658 f 0x00000001 0x81d57453 0x00000225 GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:A17XZBYWJG1SFN:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:133-7322430-0219216-1565149974000 {"payload":"{\\"destinationUserId\\":\\"A17XZBYWJG1SFN\\",\\"dopplerId\\":{\\"deviceSerialNumber\\":\\"G090LB09820301RE\\",\\"deviceType\\":\\"A2M35JJZWCQOMZ\\"},\\"isMuted\\":false,\\"volumeSetting\\":50}","command":"PUSH_VOLUME_CHANGE"}FABE'
2019-08-07 01:03:47 DEBUG (Thread-2) [alexapy.alexawebsocket] Received Standard MSG.
2019-08-07 01:03:51 DEBUG (SyncWorker_15) [alexapy.alexaapi] get_guard_state response: {'deviceStates': [{'entity': {'entityId': 'AAA_OnGuardSmartHomeBridgeService_73ecd65d-7e10-3eb3-80df-bdbcc5018020', 'entityType': ''}, 'capabilityStates': ['{"namespace":"Alexa.SecurityPanelController","name":"armState","value":"ARMED_AWAY","timeOfSample":"2019-08-07T05:03:51.202Z","uncertaintyInMilliseconds":0,"deepQuery":true,"timeOfStateChange":""}'], 'error': None}], 'errors': []}
2019-08-07 01:03:52 DEBUG (Thread-2) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-08-07 01:03:52 DEBUG (Thread-2) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x61f1baa4 f 0x00000001 0x7dd59f7f 0x00000225 GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:A17XZBYWJG1SFN:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:133-7322430-0219216-1565149974000 {"payload":"{\\"destinationUserId\\":\\"A17XZBYWJG1SFN\\",\\"dopplerId\\":{\\"deviceSerialNumber\\":\\"G090LB09820301RE\\",\\"deviceType\\":\\"A2M35JJZWCQOMZ\\"},\\"isMuted\\":false,\\"volumeSetting\\":50}","command":"PUSH_VOLUME_CHANGE"}FABE'
2019-08-07 01:03:52 DEBUG (Thread-2) [alexapy.alexawebsocket] Received Standard MSG.
2019-08-07 01:03:52 DEBUG (Thread-2) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-08-07 01:03:52 DEBUG (Thread-2) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x61f1baa5 f 0x00000001 0x6280c459 0x0000022e GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:A17XZBYWJG1SFN:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:133-7322430-0219216-1565149974000 {"payload":"{\\"destinationUserId\\":\\"A17XZBYWJG1SFN\\",\\"bass\\":3,\\"treble\\":0,\\"dopplerId\\":{\\"deviceSerialNumber\\":\\"G090LB09820301RE\\",\\"deviceType\\":\\"A2M35JJZWCQOMZ\\"},\\"midrange\\":0}","command":"PUSH_EQUALIZER_STATE_CHANGE"}FABE'
2019-08-07 01:03:52 DEBUG (Thread-2) [alexapy.alexawebsocket] Received Standard MSG.
2019-08-07 01:03:52 DEBUG (Thread-2) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-08-07 01:03:52 DEBUG (Thread-2) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x61f1bb01 f 0x00000001 0x7ad5a04e 0x00000225 GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:A17XZBYWJG1SFN:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:133-7322430-0219216-1565149974000 {"payload":"{\\"destinationUserId\\":\\"A17XZBYWJG1SFN\\",\\"dopplerId\\":{\\"deviceSerialNumber\\":\\"G090LB09820301RE\\",\\"deviceType\\":\\"A2M35JJZWCQOMZ\\"},\\"isMuted\\":false,\\"volumeSetting\\":50}","command":"PUSH_VOLUME_CHANGE"}FABE'
2019-08-07 01:03:52 DEBUG (Thread-2) [alexapy.alexawebsocket] Received Standard MSG.
2019-08-07 01:03:52 DEBUG (Thread-2) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-08-07 01:03:52 DEBUG (Thread-2) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x61f1bb02 f 0x00000001 0x5f80c528 0x0000022e GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:A17XZBYWJG1SFN:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:133-7322430-0219216-1565149974000 {"payload":"{\\"destinationUserId\\":\\"A17XZBYWJG1SFN\\",\\"bass\\":3,\\"treble\\":0,\\"dopplerId\\":{\\"deviceSerialNumber\\":\\"G090LB09820301RE\\",\\"deviceType\\":\\"A2M35JJZWCQOMZ\\"},\\"midrange\\":0}","command":"PUSH_EQUALIZER_STATE_CHANGE"}FABE'
2019-08-07 01:03:52 DEBUG (Thread-2) [alexapy.alexawebsocket] Received Standard MSG.
2019-08-07 01:03:53 DEBUG (SyncWorker_3) [alexapy.alexaapi] get_guard_state response: {'deviceStates': [{'entity': {'entityId': 'AAA_OnGuardSmartHomeBridgeService_73ecd65d-7e10-3eb3-80df-bdbcc5018020', 'entityType': ''}, 'capabilityStates': ['{"namespace":"Alexa.SecurityPanelController","name":"armState","value":"ARMED_AWAY","timeOfSample":"2019-08-07T05:03:53.207Z","uncertaintyInMilliseconds":0,"deepQuery":true,"timeOfStateChange":""}'], 'error': None}], 'errors': []}

@PlayedIn
Copy link
Author

PlayedIn commented Aug 7, 2019

Oh ok, let me try that.

@PlayedIn
Copy link
Author

PlayedIn commented Aug 7, 2019

That got it. The state goes to "armed_away" when I enable Guard. The state goes back to "disarmed" when I disable Guard.

Thank you!!!

@TomboCZ
Copy link

TomboCZ commented Sep 8, 2019

I have similar problem. When the Guard state is activated by Alexa Media Player component (v2.1.0) and deactivated by Alexa's voice command "I am home", its still remains "active" in the HA .

@alandtse
Copy link
Owner

alandtse commented Sep 8, 2019

@TomboCZ Please open up a new issue if this is happening in 2.1.2. I'll need the logs like shown in this thread specifically for when you disable it.

@TomboCZ
Copy link

TomboCZ commented Sep 9, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants