-
Notifications
You must be signed in to change notification settings - Fork 33
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
Can't Disarm #224
Comments
@bilbon0bud Do you still have the problem? Sometimes trying a little while later clears issues. If you're still having problems, does your installation have sensors outside (a perimetral alarm)? The logs you sent show that the integration is using the commands for a system with perimetral alarm, but those commands are different for a system without perimetral. |
Hello now i can’t arm or disarm. I can show the status of the alarm only. ‘Best regards |
Are you using the latest version of the integration? Could you send logs of the arming failure? I'm curious to see if you also get a 404 error or something else. The status in HA is correct and changes after you arm/disarm in the official app? |
I ll send you logs in 2 or 3 hours. |
Here are the logs when disarm 2024-04-27 14:17:06.231 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Authentication token expires 2024-04-27 14:21:51 and now is 2024-04-27 14:17:06.231660 2024-04-27 14:17:07.113 INFO (MainThread) [custom_components.securitas.alarm_control_panel] ('4: Requested data not found error.', {'errors': [{'message': '4: Requested data not found error.', 'name': 'ApiError', 'time_thrown': '2024-04-27T12:17:07.085Z', 'data': {'res': 'ERROR', 'err': '4', 'status': 404}, 'path': ['xSDisarmPanel']}], 'data': {'xSDisarmPanel': None}}, {'app': '{"appVersion": "10.102.0", "origin": "native"}', 'User-Agent': 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.124 Safari/537.36 Edg/102.0.1245.41', 'X-APOLLO-OPERATION-ID': 'd753753b90d368c06d607fdddc56c3c5c00782a60e9eef86021b6dbf2b5c0b7bf1c4ef4ebc1a8779787dde92c342e98fe08e2455a79837eb0ab9bc344fe94e20', 'X-APOLLO-OPERATION-NAME': 'xSDisarmPanel', 'extension': '{"mode":"full"}', 'numinst': '%NUM%', 'panel': 'SDVFAST', 'X-Capabilities': 'eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJiZTgyNTVmNy1hNzFkLTQ4MTUtOTUxYS01M2FjMzcxNjA1M2YiLCJpYXQiOjE3MTQyMTk2MTIsImV4cCI6MTcxNDIyMDUxMSwicm9sZSI6IlJFU1RSSUNURUQiLCJpbnMiOiIxNDM1ODI4IiwiY2FwIjpbIkVTVElOViIsIkFSTURBWSIsIkFSTU5JR0hUIiwiUEVSSSIsIkFSTSIsIkdDIiwiQVNJIiwiRVNUIiwiREFSTSIsIklNRyIsIk5PVCIsIkFDVCIsIkNPTkYiLCJDQUxMUklORyIsIkhPTUVNT1ZFIiwiU01BUlROT1QiLCJLRVkiLCJDQU1FUkFTIiwiUExBTiIsIk1ZU0QiLCJQQU5FTENPTkYiLCJTQ0giLCJJTlNUV09SRFMiLCJDT05GU0VSViIsIkNPTkZaT05FUyIsIlBBWU1FTlRHIiwiV0hBVE5FVyIsIkNPTlRNR1JNWVNFUlYiLCJUSU1FTElORSIsIk5PVENPTkYiLCJERVZJQ0VTQ09ORiIsIlJFTUlOREVSUyIsIklOQVBQQ0FNUEFJR04iLCJNQUlMQk9YIiwiQ0FMTCIsIktFWVNSRVBPUlQiLCJBUk1JTlRGUEFSVCIsIkFSTVBBUlRGSU5UIiwiREVBQ1RJVkFURVpPTkUiXX0.Ign8wdQRmnxPj9D_w7ST_S13D-QuCFRqu6qlBQDCEo', 'auth': '{"loginTimestamp": 1714219611508, "user": "%USERNAME%", "id": "OWA______________%USERNAME%_______________20244271417232253", "country": "FR", "lang": "fr", "callby": "OWA_10", "hash": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJoYXBnbjkzIiwiY250IjoiRlIiLCJjYnkiOiJPV0FfMTAiLCJ2ZXIiOiIxMC4xMDIuMCIsInVzcmlkIjoiNjA1NzYyOCIsImp0aSI6IjU0YjZjNjhjLWNjOGEtNGE4Mi04YWViLWJlNGEwZDM5ZTM0NiIsImlhdCI6MTcxNDIxOTYxMSwiZXhwIjoxNzE0MjIwNTExfQ.zxnz1qDPmB9xcOhNV-jSCESHmNpijyHU3d_gJaalZKc"}'}, {'operationName': 'xSDisarmPanel', 'variables': {'request': 'DARM1DARMPERI', 'numinst': '%NUM%', 'panel': 'SDVFAST', 'currentStatus': 'E'}, 'query': 'mutation xSDisarmPanel($numinst: String!, $request: DisarmCodeRequest!, $panel: String!) {\n xSDisarmPanel(numinst: $numinst, request: $request, panel: $panel) {\n res\n msg\n referenceId\n }\n}\n'}) 2024-04-27 14:17:08.427 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Authentication token expires 2024-04-27 14:21:51 and now is 2024-04-27 14:17:08.427840 2024-04-27 14:17:12.500 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Making request CheckAlarmStatus with device_id 06d2a33a2cd1472a, uuid 06d2a33a2cd1472a and idDeviceIndigitall |
here are the logs when arming 2024-04-27 14:31:12.424 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Making request xSArmPanel with device_id 06d2a33a2cd1472a, uuid 06d2a33a2cd1472a and idDeviceIndigitall 2024-04-27 14:31:12.696 INFO (MainThread) [custom_components.securitas.alarm_control_panel] ('alarm-manager.alarm_process_error', {'errors': [{'message': 'alarm-manager.alarm_process_error', 'name': 'ApiError', 'time_thrown': '2024-04-27T12:31:12.671Z', 'data': {'res': 'ERROR', 'err': '10', 'status': 500}, 'path': ['xSArmPanel']}], 'data': {'xSArmPanel': None}}, {'app': '{"appVersion": "10.102.0", "origin": "native"}', 'User-Agent': 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.124 Safari/537.36 Edg/102.0.1245.41', 'X-APOLLO-OPERATION-ID': 'd753753b90d368c06d607fdddc56c3c5c00782a60e9eef86021b6dbf2b5c0b7bf1c4ef4ebc1a8779787dde92c342e98fe08e2455a79837eb0ab9bc344fe94e20', 'X-APOLLO-OPERATION-NAME': 'xSArmPanel', 'extension': '{"mode":"full"}', 'numinst': '%NUM%', 'panel': 'SDVFAST', 'X-Capabilities': 'eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiI3OWQ3ODVmYi0wN2U2LTQyNDAtODJlNC03NTEyMThkM2E1YWQiLCJpYXQiOjE3MTQyMjA0NTIsImV4cCI6MTcxNDIyMTM1Miwicm9sZSI6IlJFU1RSSUNURUQiLCJpbnMiOiIxNDM1ODI4IiwiY2FwIjpbIkVTVElOViIsIkFSTURBWSIsIkFSTU5JR0hUIiwiUEVSSSIsIkFSTSIsIkdDIiwiQVNJIiwiRVNUIiwiREFSTSIsIklNRyIsIk5PVCIsIkFDVCIsIkNPTkYiLCJDQUxMUklORyIsIkhPTUVNT1ZFIiwiU01BUlROT1QiLCJLRVkiLCJDQU1FUkFTIiwiUExBTiIsIk1ZU0QiLCJQQU5FTENPTkYiLCJTQ0giLCJJTlNUV09SRFMiLCJDT05GU0VSViIsIkNPTkZaT05FUyIsIlBBWU1FTlRHIiwiV0hBVE5FVyIsIkNPTlRNR1JNWVNFUlYiLCJUSU1FTElORSIsIk5PVENPTkYiLCJERVZJQ0VTQ09ORiIsIlJFTUlOREVSUyIsIklOQVBQQ0FNUEFJR04iLCJNQUlMQk9YIiwiQ0FMTCIsIktFWVNSRVBPUlQiLCJBUk1JTlRGUEFSVCIsIkFSTVBBUlRGSU5UIiwiREVBQ1RJVkFURVpPTkUiXX0.O2_LkIMNQ9j93BMGLdIX0SPILPFCsUCph_wTpCBA6_4', 'auth': '{"loginTimestamp": 1714220452357, "user": "%USERNAME%", "id": "OWA_______________%USERNAME%_______________20244271431424338", "country": "FR", "lang": "fr", "callby": "OWA_10", "hash": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJoYXBnbjkzIiwiY250IjoiRlIiLCJjYnkiOiJPV0FfMTAiLCJ2ZXIiOiIxMC4xMDIuMCIsInVzcmlkIjoiNjA1NzYyOCIsImp0aSI6IjYxNDFjODM3LTRhYTItNDMwNS1hOWUxLWYzMmQxYTk2OGYzZiIsImlhdCI6MTcxNDIyMDQ1MiwiZXhwIjoxNzE0MjIxMzUyfQ.awVjSGHUmrziQZtTt7EiNeQ-f9ZCWrMkp4ylN5Y-UbE"}'}, {'operationName': 'xSArmPanel', 'variables': {'request': 'ARMDAY1', 'numinst': '%NUM%', 'panel': 'SDVFAST', 'currentStatus': 'D'}, 'query': 'mutation xSArmPanel($numinst: String!, $request: ArmCodeRequest!, $panel: String!, $currentStatus: String) {\n xSArmPanel(numinst: $numinst, request: $request, panel: $panel, currentStatus: $currentStatus) {\n res\n msg\n referenceId\n }\n}\n'}) 2024-04-27 14:31:14.794 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Making request CheckAlarmStatus with device_id 06d2a33a2cd1472a, uuid 06d2a33a2cd1472a and idDeviceIndigitall |
The message is 4: Requested data not found error and it's 500 error from their side, so there is nothing much that we can do here. |
But everything work from the Verisure app or web… |
And you can see the status change in HA when you arm or disarm in the official app? Have you tried logging out and then logging in in the HA integration? |
The status are ok in ha When I change them by the app. I have try many times to log out and relog or to reinstall the ha app. But … nothing change |
I managed to get a 500 error after blocking my account on purpose. After unblocking I have problems similar to what you're having. But I'm also seem to have been flagged as a robot.... I'll try later. |
My theory is that the Error 500 comes after a ton of failed authentications. So I think that the debug should be done way earlier, just before the first authentication begins. If I have some time I will start with this because it's killing me not having my automation in place for so long (I've lost the use of disarming in the morning, and it triggers accidentally every other morning) |
@SirLouen Same problem for me. |
Hello. I have the same problem and what I can say is that it happened after changing the Securitas Direct password and having to reinstall the integration to be able to put the new password in the configuration. Has anyone been able to solve this problem? |
Changing from DARM1DARMPERI to DARM1 made it work for me. |
Where can I change it? |
In disarm_alarm and _check_disarm_status functions. |
Hello. Something has changed, let’s see if you can help us solve this problem. After the last update, that's the error that I receive when I try to disarm: "TypeError: 'NoneType' object is not subscriptable". I also put here what appears in the record: Registrador: homeassistant.components.websocket_api.http.connection [140652816873312] Unexpected exception |
Thanks for the message, I also notices this error in my installation as well. I think it's related to the expired token. Let me add some code to handle this and notify the UI with the error so we can know more. |
Thank you very much for the quick response and the solution. However, after this update, I now get another different error, which makes it still impossible for me to disarm the alarm: Registrador: homeassistant.components.websocket_api.http.connection [140256319472832] Unexpected exception |
Hello
I can arm my alarm, but i can't disarm.
i have perimetric mode too.
here are my logs
2024-04-05 11:49:27.249 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Authentication token expires 2024-04-05 11:58:41 and now is 2024-04-05 11:49:27.249814
2024-04-05 11:49:27.250 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Capabilities token expires 2024-04-05 11:58:41 and now is 2024-04-05 11:49:27.250181
2024-04-05 11:49:27.250 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Making request xSDisarmPanel with device_id aa1e25ac73eb4479, uuid aa1e25ac73eb4479 and idDeviceIndigitall
2024-04-05 11:49:27.444 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] --------------Response--------------
2024-04-05 11:49:27.445 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] {"errors":[{"message":"4: Requested data not found error.","name":"ApiError","time_thrown":"2024-04-05T09:49:27.423Z","data":{"res":"ERROR","err":"4","status":404},"path":["xSDisarmPanel"]}],"data":{"xSDisarmPanel":null}}
2024-04-05 11:49:27.445 INFO (MainThread) [custom_components.securitas.alarm_control_panel] ('4: Requested data not found error.', {'errors': [{'message': '4: Requested data not found error.', 'name': 'ApiError', 'time_thrown': '2024-04-05T09:49:27.423Z', 'data': {'res': 'ERROR', 'err': '4', 'status': 404}, 'path': ['xSDisarmPanel']}], 'data': {'xSDisarmPanel': None}}, {'app': '{"appVersion": "10.102.0", "origin": "native"}', 'User-Agent': 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.124 Safari/537.36 Edg/102.0.1245.41', 'X-APOLLO-OPERATION-ID': '%BIG_TOKEN%', 'auth': '{"loginTimestamp": 1712310222025, "user": "%USERNAME%", "id": "OWA_______________"%USERNAME%_______________2024451149250397", "country": "FR", "lang": "fr", "callby": "OWA_10", "hash": "%HASH%"}'}, {'operationName': 'xSDisarmPanel', 'variables': {'request': 'DARM1DARMPERI', 'numinst': '%NUM%', 'panel': 'SDVFAST', 'currentStatus': 'E'}, 'query': 'mutation xSDisarmPanel($numinst: String!, $request: DisarmCodeRequest!, $panel: String!) {\n xSDisarmPanel(numinst: $numinst, request: $request, panel: $panel) {\n res\n msg\n referenceId\n }\n}\n'})
2024-04-05 11:49:27.446 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Authentication token expires 2024-04-05 11:58:41 and now is 2024-04-05 11:49:27.446314
2024-04-05 11:49:27.446 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Capabilities token expires 2024-04-05 11:58:41 and now is 2024-04-05 11:49:27.446581
2024-04-05 11:49:27.446 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Making request CheckAlarm with device_id aa1e25ac73eb4479, uuid aa1e25ac73eb4479 and idDeviceIndigitall
2024-04-05 11:49:27.802 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] --------------Response--------------
2024-04-05 11:49:27.802 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] {"data":{"xSCheckAlarm":{"res":"OK","msg":"alarm-manager.processed.request","referenceId":"fc082c63-92c6-4844-bf81-8cf2adc4a41d"}}}
2024-04-05 11:49:28.803 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Authentication token expires 2024-04-05 11:58:41 and now is 2024-04-05 11:49:28.803750
2024-04-05 11:49:28.804 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Capabilities token expires 2024-04-05 11:58:41 and now is 2024-04-05 11:49:28.804067
2024-04-05 11:49:30.805 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Making request CheckAlarmStatus with device_id aa1e25ac73eb4479, uuid aa1e25ac73eb4479 and idDeviceIndigitall
2024-04-05 11:49:30.890 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] --------------Response--------------
2024-04-05 11:49:30.890 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] {"data":{"xSCheckAlarmStatus":{"res":"WAIT","msg":"alarm-manager.processing.request","status":null,"numinst":null,"protomResponse":null,"protomResponseDate":null}}}
2024-04-05 11:49:32.891 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Making request CheckAlarmStatus with device_id aa1e25ac73eb4479, uuid aa1e25ac73eb4479 and idDeviceIndigitall
2024-04-05 11:49:32.970 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] --------------Response--------------
2024-04-05 11:49:32.970 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] {"data":{"xSCheckAlarmStatus":{"res":"WAIT","msg":"alarm-manager.processing.request","status":null,"numinst":null,"protomResponse":null,"protomResponseDate":null}}}
2024-04-05 11:49:34.971 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Making request CheckAlarmStatus with device_id aa1e25ac73eb4479, uuid aa1e25ac73eb4479 and idDeviceIndigitall
2024-04-05 11:49:35.107 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] --------------Response--------------
2024-04-05 11:49:35.107 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] {"data":{"xSCheckAlarmStatus":{"res":"OK","msg":"alarm-manager.status_panel.active_perimetral_alarm_msg","status":null,"numinst":null,"protomResponse":"E","protomResponseDate":"2024-04-05T09:49:33Z"}}}
The text was updated successfully, but these errors were encountered: