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

Got a new alarm from Securitas in Spain - alarm_disarm doesn't work + not all devices visible #135

Open
petarlaf opened this issue May 23, 2023 · 3 comments

Comments

@petarlaf
Copy link

I've purchased a new system from SD in Spain (3 months ago or so) - I can configure it in HA and connect successfully. I can also successfully "arm_alarm_away" and "arm_alarm_home". However I cannot do "alarm_disarm". It looks like the event goes to Securitas, but nothing happens. I can't find any logs in HA or the integration to provide - I imagine they've changed the API for my model?

Similarly, I don't see the following devices/sensors:
Screenshot 2023-05-23 at 22 29 00
Screenshot 2023-05-23 at 22 28 54

  • My Access Detector (that protects front door and detects open/close)
  • PhotoDetectors (that provide motion sensor detection + take photos when alarm trigger + you can manually make photos)

Let me know if I can help to get these added & the issue above fixed.

Thanks,

@guerrerotook
Copy link
Owner

There is a way to enable full logs, set the log to debug and you will be able to see requests and responses from the API. This will help.

@petarlaf
Copy link
Author

In terms of the alarm_disarm issue - here's a log. I first arm the alarm and then I try to disarm it and nothing happens.

Let me know if I can provide anything on the missing sensors?

`023-05-29 21:00:26.382 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Making request with device_id 519ed7d4fbb24819, uuid 519ed7d4fbb24819 and idDeviceIndigitall
2023-05-29 21:00:26.684 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] --------------Response--------------
2023-05-29 21:00:26.684 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] {"data":{"xSArmPanel":{"res":"OK","msg":"Su solicitud ha sido enviada","referenceId":"OWA_______________HAVarsovia20230529210026536________________"}}}

2023-05-29 21:00:27.685 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Making request with device_id 519ed7d4fbb24819, uuid 519ed7d4fbb24819 and idDeviceIndigitall
2023-05-29 21:00:27.775 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] --------------Response--------------
2023-05-29 21:00:27.775 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] {"data":{"xSArmStatus":{"res":"WAIT","msg":"Petición en proceso","status":null,"protomResponse":null,"protomResponseDate":null,"numinst":null,"requestId":"_pollingStatus_2849248","error":null}}}

2023-05-29 21:00:28.777 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Making request with device_id 519ed7d4fbb24819, uuid 519ed7d4fbb24819 and idDeviceIndigitall
2023-05-29 21:00:28.926 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] --------------Response--------------
2023-05-29 21:00:28.926 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] {"data":{"xSArmStatus":{"res":"OK","msg":"Los dispositivos de tu Alarma han sido conectados","status":"3021","protomResponse":"T","protomResponseDate":"2023-05-29 21:00:26.666","numinst":"4706331","requestId":"_pollingStatus_2541133","error":null}}}

2023-05-29 21:00:28.927 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Making request with device_id 519ed7d4fbb24819, uuid 519ed7d4fbb24819 and idDeviceIndigitall
2023-05-29 21:00:29.049 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] --------------Response--------------
2023-05-29 21:00:29.049 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] {"data":{"xSStatus":{"status":"T","timestampUpdate":"1685386828460"}}}

2023-05-29 21:00:38.909 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Making request with device_id 519ed7d4fbb24819, uuid 519ed7d4fbb24819 and idDeviceIndigitall
2023-05-29 21:00:39.028 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] --------------Response--------------
2023-05-29 21:00:39.028 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] {"data":{"xSStatus":{"status":"T","timestampUpdate":"1685386828460"}}}

2023-05-29 21:00:43.086 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Making request with device_id 519ed7d4fbb24819, uuid 519ed7d4fbb24819 and idDeviceIndigitall
2023-05-29 21:00:43.202 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] --------------Response--------------
2023-05-29 21:00:43.202 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] {"data":{"xSStatus":{"status":"T","timestampUpdate":"1685386828460"}}}
`

@guerrerotook
Copy link
Owner

Thanks for sharing the logs, but I only support a limited set of devices in the alarm and those who has something to show up in the Home Assistant UI. Did you get any error at the end when trying to disarm the alarm? Nothing show up in the logs that you shared-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants