securitas-direct-new-api icon indicating copy to clipboard operation
securitas-direct-new-api copied to clipboard

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

Open petarlaf opened this issue 1 year ago • 3 comments

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,

petarlaf avatar May 23 '23 20:05 petarlaf

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.

guerrerotook avatar May 24 '23 10:05 guerrerotook

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"}}} `

petarlaf avatar May 29 '23 19:05 petarlaf

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-

guerrerotook avatar Jun 11 '23 15:06 guerrerotook