guerrerotook / securitas-direct-new-api Goto Github PK
View Code? Open in Web Editor NEWThis repository contains the new securitas direct API that can be integrated in Home Assistant
License: Apache License 2.0
This repository contains the new securitas direct API that can be integrated in Home Assistant
License: Apache License 2.0
Hello,
I probably explained myself wrong in #60 .
I can't get securitas to start after a reboot. I tried to reinstall the integration but nothing. I show you a screenshot and my errors:
2022-06-26 10:31:40 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: securitas
2022-06-26 10:32:40 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: securitas
2022-06-26 10:33:36 WARNING (MainThread) [homeassistant.bootstrap] Setup timed out for stage 2 - moving forward
2022-06-26 10:33:36 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 205, in async_init
flow, result = await task
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 232, in _async_init
result = await self._async_handle_step(flow, flow.init_step, data, init_done)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 335, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/securitas/config_flow.py", line 115, in async_step_import
File "/config/custom_components/securitas/config_flow.py", line 84, in _create_client
Exception: error login
2022-06-26 10:33:41 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: securitas
2022-06-26 10:34:41 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: securitas
2022-06-26 10:35:41 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: securitas
2022-06-26 10:36:41 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: securitas
2022-06-26 10:37:41 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: securitas
2022-06-26 10:38:36 WARNING (MainThread) [homeassistant.bootstrap] Setup timed out for bootstrap - moving forward
Hello,
After configuring the configuration.yaml file and restarted home assistant I see the integration loaded but with no device or entities and in the registry I found this error:
Logger: homeassistant.helpers.service
Source: helpers/service.py:430
First occurred: 16:06:13 (1 occurrences)
Last logged: 16:06:13
Unable to find services.yaml for the securitas integration
Hi, first and foremost thank you for this custom integration, without it the Securitas alarm system lacks... a lot.
I have also installed a custom alarm panel with the "Alarmo" custom component, and also a Visonic alarm system with another custom integration, both integrations allow the arming and disarming of each system without the need to enter any codes on the keypad.
Since the default "code_disarm_required" was "false" I commented out the code option in the configuration file (code: !secret securitas_direct_code) to have the code value empty and, surprisingly .... it works! , however the "code_format" attribute is still set to "number", so the keypad still pops up in the alarm panel when trying to arm or disarm, the other integrations have this set to "null" and thus they don't show the keypad.
I've modified the alarm_control_panel.py file from the component to return a None value for the "code_format" function, however I'm not a developer and can't go much further.
Is there a way to modify this integration to return None:
return None
Instead:
return alarm.FORMAT_NUMBER
in the event the code variable from the configuration is not set?
My solution is very crude and temporary and I would very much like to have this feature merged into the main version to be able to arm/disarm every alarm panel with a button click since I'm the only one that has access to my HA instance.
Thanks in advance, best regards.
Buenas, me salen algunos errores en Home Assistant, este es uno de ellos:
Logger: homeassistant.components.alarm_control_panel
Source: helpers/entity_platform.py:297
Integration: Panel de control de alarmas (documentation, issues)
First occurred: 19:22:03 (1 occurrences)
Last logged: 19:22:03
Setup of platform securitas is taking longer than 60 seconds. Startup will proceed without waiting any longer.
Hi! I was using your integration for my alarm and after updating from v1.0.0.0 I have this error:
2022-05-05 20:13:25 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 79, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 219, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 205, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 62, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 109, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 260, in async_configure
result = await self._async_handle_step(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 335, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/securitas/config_flow.py", line 107, in async_step_user
user_input[CONF_COUNTRY],
KeyError: 'country'
My configuration.yml has the country as shown in the readme:
securitas:
username: !secret verisure_username
password: !secret verisure_password
code: !secret verisure_code
country: ES
check_alarm_panel: false
I'm I missing something? Thanks!
Hola, he configurado dos scripts, uno para conectar y otro para desconectar, el que conecta funciona perfectamente, pero el de desconectarla no funciona, no da error, pero no hace su función, pego el script a ver si veis el error...
Gracias.
`desconectar_alarma:
alias: Desconectar Alarma
sequence:
Buenas, me salen algunos errores en Home Assistant, este es uno de ellos:
Logger: homeassistant.components.alarm_control_panel
Source: /usr/local/lib/python3.9/asyncio/events.py:80
Integration: Panel de control de alarmas (documentation, issues)
First occurred: 19:21:13 (1 occurrences)
Last logged: 19:21:13
Setup of alarm_control_panel platform securitas is taking over 10 seconds.
Hola,
Estoy intentando instalar la integración pero no consigo validar mi configuración, me da el siguiente error:
Integration error: securitas_direct - Integration 'securitas_direct' not found.
He copiado la carpeta "securitas_direct" dentro de "custom_components" y añadido la configuración en configuration.yaml
La verdad no se que estoy haciendo mal.
Gracias de antemano por la ayuda.
In my account, there are 2 alarms registered, one active, the other no long in use.
This causes the API to fail
Logger: custom_components.securitas.securitas_direct_new_api.apimanager
Source: custom_components/securitas/securitas_direct_new_api/apimanager.py:102
Integration: Securitas Direct (documentation, issues)
First occurred: 7:56:49 AM (1 occurrences)
Last logged: 7:56:49 AM
Lo sentimos. No se ha podido realizar la acción solicitada.
Hello could you please make your addon compatible with homebridge ?
there is an equivalent but it was not updated since 2 years ans it is making the verisure system unresponsive.
https://github.com/ptz0n/homebridge-securitas-direct#readme
Gooad day,
Firstly, thank you very much for all the work you have put into creating such a useful component / integration.
Is there any chance that support for the Verisure Sentinel (the device that logs humidity, air quality, and temperature) could be added?
I am happy to provide captured responses from the API or anything you may need.
Attached is a screenshot that shows the device in question on the Verisure wesite.
Have a great rest of your day!
Hi.
Upgrading from 1.0.0.0 to any of the following versions breaks for me the Alarm. I found this error in the log:
2022-02-16 12:33:54 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call inside the event loop. This is causing stability issues. Please report issue to the custom component author for securitas doing blocking calls at custom_components/securitas/__init__.py, line 296: await self.hass.async_add_executor_job(sleep(1))
2022-02-16 12:33:55 ERROR (MainThread) [homeassistant.components.alarm_control_panel] Error while setting up securitas platform for alarm_control_panel
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/securitas/alarm_control_panel.py", line 65, in async_setup_entry
current_state: CheckAlarmStatus = await client.update_overview(
File "/config/custom_components/securitas/__init__.py", line 296, in update_overview
await self.hass.async_add_executor_job(sleep(1))
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
TypeError: 'NoneType' object is not callable
2022-02-16 12:34:02 WARNING (SyncWorker_3) [homeassistant.helpers.service] Unable to find services.yaml for the securitas integration
Info for the Sentinel device its working. I can see the following entities:
Regards
When i active the alarm via home assistant most of the times Securitas direct calls me due to multiple requests launched at same time.
This told me securitas is done due to do a request without whait the previous one is resolved.
Could it be controllated.
I recieve at least 2 daily calls from securitas.🤣
Hi,
my installation has been migrated to a new model of alarm, identified with panel code "SDVECUW" instead of "SDVFAST". This new model is being proposed by the moment to customers with old installations (SD2000) and it seems that in the future all the customers will be moved to this.
Login is failing in this case. I have another installation with SDVFAST and works ok. Both installations are owned by different user accounts, because according with customer support is not possible to have together both types of alarms. HomeAssistant records says:
"Hemos tenido problemas para identificarle, por favor, cierre la sesión y vuelva a iniciarla.
status 500 reading RemoteServicesFeignClient#getMain(Map,MultiValueMap)"
Anyway, I am capable to manage the new model from the website.
I will investigate a little bit on the code...
Thanks!
Buenos días,
Intento configurar el HA, pero me devuelve este error al verificar la configuración.
No se si tendrá relación en que sea usuario numérico, solamente...
Hi !
I tried to use your integration but I have following errors, if I restart my HA sometimes it's working and I can arm/disarm my alarm one time and after few seconds the component won't arm or disarm the alarm and no status reported. If I check history directly on the website I have following message "error while processing your request, please try later".
2021-12-16 13:11:07 WARNING (MainThread) [homeassistant.components.alarm_control_panel] Setup of alarm_control_panel platform securitas_direct is taking over 10 seconds.
2021-12-16 13:11:52 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: alarm_control_panel.securitas_direct
2021-12-16 13:11:57 ERROR (MainThread) [homeassistant.components.alarm_control_panel] Setup of platform securitas_direct is taking longer than 60 seconds. Startup will proceed without waiting any longer.
2021-12-16 13:12:34 ERROR (SyncWorker_9) [custom_components.securitas_direct.securitas_direct_new_api.apimanager] Votre demande n'a pas pu être transmise ; veuillez réessayer dans quelques minutes
2021-12-16 13:12:34 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/securitas_direct/alarm_control_panel.py", line 55, in setup_platform
current_state: CheckAlarmStatus = hub.update_overview(
File "/usr/src/homeassistant/homeassistant/util/init.py", line 195, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/securitas_direct/init.py", line 121, in update_overview
alarmStatus = self.session.checkAlarmStatus(Installation, referenceId)
File "/config/custom_components/securitas_direct/securitas_direct_new_api/apimanager.py", line 198, in checkAlarmStatus
raw_data["res"],
TypeError: 'NoneType' object is not subscriptable
Thanks for your help.
Buenos días,
En estos momentos tengo dos problemas. El primero lo he tenido siempre y es que ninguna de las opciones de armado me arma en modo total, tanto interior cómo exterior. Y el segundo, que me ha empezado hace poco, es que no me desarma. En ninguno de los dos casos da mensaje de error.
Se agradece cualquier sugerencia.
Gracias.
Ya he logrado conectarlo al servcio de securitas.
Ahora me da este error al activar o hacer cualquier accion.
2022-02-20 11:17:22 ERROR (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Ha ocurrido un problema, reintente la acción o póngase en contacto con nosotros.
2022-02-20 11:17:23 ERROR (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Ha ocurrido un problema, reintente la acción o póngase en contacto con nosotros.
2022-02-20 11:17:24 ERROR (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] status 500 reading RemoteServicesFeignClient#getMain(Map,MultiValueMap)
Sabes de que va y como salvar este nuevo escollo?
Gracias anticipadas.
Hi,
I seems to be unable to configure the system so that, when I activate the alarm phsically or with the official app, home assistant knows and changes to armed
Could you help?
Thanks!
Hello folks.. I installed the component according to the docs but, when I reload HA, it keeps getting this message and never finishes loading the component. Any idea on how to debug the issue?
Buenas, los cambios que haces al componente no se me actualizan en Home Assistant. Creo que debes cambiar la versión en algún fichero para que automáticamente salte la actualización.
Just started to use this integration and I have noticed that the changed_by
attribute is not updated. I have another Securitas custom component that I downloaded in the past from somewhere and such attribute works. It is useful to set up different automations according to who arms/disarms the alarm. Any chance to fix this?
When i "arm home" through home assistant the state of the alarm updates as "armed away" rather than "armed home"
For now, i am running my own version of the securitas_direct_new_api folder as a module. I'm not using the Home Assistant part of the project and use the ApiManager directly. It's a way of making things work, albeit not a great one.
As per your comment on #57 (comment) there multiple approaches for this. Make the ApiManager a baseclass and make it spawn the correct subclass based on the config, or make it aware of the differences in a tuple-based config, ...
I could share you the HAR file of a session by e-mail to your [email protected] e-mail address if you want as i'm already using that for my own insights.
Hello
Could it be possible to get the Securitas history in home assistant ?
So we can know who activate / deactivate the alarm, show when the alarme is in alert state and get the images from the alert.
Best Regards
Securitas Direct changed the login API in the web application and now the integration is broken.
Working on this.
First of all thanks for this great job!
One thing I miss in the Securitas Direct integration in HA is that I cannot check the status of the perimeter alarm or activate/deactivate it.
I know it was exposed by the earlier API because the component Cebeerre developed by supported it.
Is it anything you could do for adding this feature?
Hacs is a very popular alternative store where users can download extension. Add the necessary changes to add this component in the store.
i have used this component from a month, but from yesterday it doesn't work anymore.
ps.my country is italy (IT)
Fiction update_overview expects to receive CheckAlarmStatus object from self.session.check_alarm_status, but in case of errors, the function returns a string
This causes the following exception:
Logger: homeassistant
Source: custom_components/securitas/init.py:137
Integration: Securitas Direct (documentation, issues)
First occurred: 7:56:49 AM (1 occurrences)
Last logged: 7:56:49 AM
Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/securitas/alarm_control_panel.py", line 58, in setup_platform
current_state: CheckAlarmStatus = hub.update_overview(
File "/usr/src/homeassistant/homeassistant/util/init.py", line 277, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/securitas/init.py", line 137, in update_overview
while alarm_status.operationStatus == "WAIT":
AttributeError: 'str' object has no attribute 'operationStatus'
Hola, he instalado la última versión y ahora me da este error:
2022-02-14 12:15:42 WARNING (SyncWorker_4) [homeassistant.helpers.service] Unable to find services.yaml for the securitas integration
2022-02-14 12:15:42 WARNING (SyncWorker_11) [homeassistant.helpers.service] Unable to find services.yaml for the securitas integration
2022-02-14 12:15:45 WARNING (SyncWorker_9) [homeassistant.helpers.service] Unable to find services.yaml for the securitas integration
Muchas gracias por tu ayuda.
Ante todo gracias por tu trabajo para la Comunidad.
Me reporta este error que no sé como solucionarlo:
Este error se originó a partir de una integración personalizada.
Logger: homeassistant.setup
Source: custom_components/securitas/init.py:109
Integration: securitas (documentation, issues)
First occurred: 10:16:07 (1 occurrences)
Last logged: 10:16:07
Error during setup of component securitas
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 227, in _async_setup_component
result = await task
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/securitas/init.py", line 64, in setup
if not HUB.login():
File "/config/custom_components/securitas/init.py", line 109, in login
if service.description == sentinel_value:
AttributeError: 'str' object has no attribute 'description'
Y seguidamente este otro:
Este error se originó a partir de una integración personalizada.
Logger: custom_components.securitas.securitas_direct_new_api.apimanager
Source: custom_components/securitas/securitas_direct_new_api/apimanager.py:102
Integration: securitas (documentation, issues)
First occurred: 10:16:07 (1 occurrences)
Last logged: 10:16:07
Ha ocurrido un problema, reintente la acción o póngase en contacto con nosotros.
Que debo hacer? Gracias.
Buenas, me salen algunos errores en Home Assistant, este es uno de ellos:
Logger: homeassistant
Source: custom_components/securitas/__init__.py:135
Integration: Securitas Direct (documentation, issues)
First occurred: 19:22:40 (1 occurrences)
Last logged: 19:22:40
Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/securitas/alarm_control_panel.py", line 56, in setup_platform
current_state: CheckAlarmStatus = hub.update_overview(
File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 195, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/securitas/__init__.py", line 135, in update_overview
while alarm_status.operationStatus == "WAIT":
AttributeError: 'str' object has no attribute 'operationStatus'
I've noticed that the HA alarm panel does not update the status after the first attempt of arming/disarming the alarm.
For instance, when calling the call service "alarm_control_panel.alarm_arm_night", the alarm will indeed be armed (I can see the ARMED NIGHT status in the Verisure app) but the HA alarm panel will continue showing "Disarmed". If I send a second time the he call service "alarm_control_panel.alarm_arm_night" then the HA panel will show the correct status.
The same behaviour when attempting to disarm the alarm with a call service "alarm_control_panel.alarm_disarm", the first time the HA panel will keep on showing "ARMED NIHGT" (or whatever other status) until I send a second call service "alarm_control_panel.alarm_disarm", then the status will refresh to "Disarmed"
I have tried with both configurations:
alarm_control_panel.alarm_disarm: true
alarm_control_panel.alarm_disarm: false
Let me know if you need further details.
Thank you,
Hola Luis,
He instalado tu modulo y cuando arranco el HA me devuelve estos errores....
1.-
This error originated from a custom integration.
Logger: custom_components.securitas_direct.securitas_direct_new_api.apimanager
Source: custom_components/securitas_direct/securitas_direct_new_api/apimanager.py:89
Integration: Securitas Direct (documentation, issues)
First occurred: 8:02:12 PM (1 occurrences)
Last logged: 8:02:12 PM
Hemos tenido problemas para identificarle, por favor, cierre la sesión y vuelva a iniciarla.
2.-
Logger: homeassistant.components.alarm_control_panel
Source: custom_components/securitas_direct/securitas_direct_new_api/apimanager.py:173
Integration: Alarm control panel (documentation, issues)
First occurred: 8:02:13 PM (1 occurrences)
Last logged: 8:02:13 PM
Error while setting up securitas_direct platform for alarm_control_panel
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/securitas_direct/alarm_control_panel.py", line 55, in setup_platform
current_state: CheckAlarmStatus = hub.update_overview(
File "/usr/src/homeassistant/homeassistant/util/init.py", line 195, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/securitas_direct/init.py", line 114, in update_overview
referenceId: str = self.session.checkAlarm(Installation)
File "/config/custom_components/securitas_direct/securitas_direct_new_api/apimanager.py", line 173, in checkAlarm
return result_json["data"]["xSCheckAlarm"]["referenceId"]
TypeError: 'NoneType' object is not subscriptable
Me puedes echar una mano...?
Gracias
Buenas, muchas gracias por tu trabajo, me esta siendo de muchísima utilidad.
No sé el tuyo, pero en Confort y Clima también tengo un apartado para la calidad del aire, he seguido tu documentación y espero no haberme dejado nada:
Payload
{
"operationName": "AirQualityGraph",
"variables": {
"numinst": null,
"zone": null
},
"query": "query AirQualityGraph($numinst: String!, $zone: String!) {\n xSAirQ(numinst: $numinst, zone: $zone) {\n res\n msg\n graphData {\n status {\n avg6h\n avg6hMsg\n avg24h\n avg24hMsg\n avg7d\n avg7dMsg\n avg4w\n avg4wMsg\n current\n currentMsg\n }\n daysTotal\n days {\n id\n value\n }\n hoursTotal\n hours {\n id\n value\n }\n weeksTotal\n weeks {\n id\n value\n }\n }\n }\n}\n"
}
Respuesta (lo he recortado un poco)
{
"data": {
"xSAirQ": {
"res": "OK",
"msg": "Petición procesada correctamente",
"graphData": {
"status": {
"avg6h": 2,
"avg6hMsg": "Pobre",
"avg24h": 2,
"avg24hMsg": "Pobre",
"avg7d": 1,
"avg7dMsg": "Buena",
"avg4w": 1,
"avg4wMsg": "Buena",
"current": 2,
"currentMsg": "Pobre"
},
"daysTotal": 3,
"days": [
{
"id": "01/1",
"value": 53
},
{
"id": "02/1",
"value": 208
},
{
"id": "03/1",
"value": 198
}
],
"hoursTotal": 23,
"hours": [
{
"id": "21:00",
"value": 206
},
{
"id": "22:00",
"value": 246
},
{
"id": "23:00",
"value": 250
},
{
"id": "00:00",
"value": 250
},
{
"id": "01:00",
"value": 228
},
{
"id": "02:00",
"value": 240
},
{
"id": "03:00",
"value": 214
},
{
"id": "04:00",
"value": 222
},
{
"id": "05:00",
"value": 182
},
{
"id": "06:00",
"value": 150
},
{
"id": "07:00",
"value": 174
},
{
"id": "08:00",
"value": 244
},
{
"id": "09:00",
"value": 240
},
{
"id": "10:00",
"value": 240
},
{
"id": "11:00",
"value": 244
},
{
"id": "12:00",
"value": 246
},
{
"id": "13:00",
"value": 216
},
{
"id": "14:00",
"value": 202
},
{
"id": "15:00",
"value": 208
},
{
"id": "16:00",
"value": 138
},
{
"id": "17:00",
"value": 226
},
{
"id": "18:00",
"value": 220
},
{
"id": "19:00",
"value": -9999
}
],
"weeksTotal": 9,
"weeks": [
{
"id": "1",
"value": 117
},
{
"id": "2",
"value": 198
},
{
"id": "46",
"value": 146
},
{
"id": "47",
"value": 155
},
{
"id": "48",
"value": 148
},
{
"id": "49",
"value": 121
},
{
"id": "50",
"value": 153
},
{
"id": "51",
"value": 138
},
{
"id": "52",
"value": 129
}
]
}
}
}
}
Entiendo que con el valor Hours sería más que suficiente, ¿no?
Portugal just enabled two factor authentication by SMS and authorized devices. I get Unauthorized error message when trying to login through the API
Hi,
I'm from Spain.
When I add the integration, Securitas call me to say that there is to many request to my central alarm and then it stops.
When is sent a request ?
Can I limit the number of request?
Or can I do anything with the alarma central?
Thanks!!!
Aparentemente esta integrada, pero no me funciona. Además da este error:
Logger: custom_components.securitas.securitas_direct_new_api.apimanager
Source: custom_components/securitas/securitas_direct_new_api/apimanager.py:100
Integration: Securitas Direct (documentation, issues)
First occurred: 22:04:55 (8 occurrences)
Last logged: 22:04:56
Ha ocurrido un problema, reintenta la acción o contacta con nosotros.
status 500 reading RemoteServicesFeignClient#getMain(Map,MultiValueMap)
Buenas de nuevo,
Al implementar esta API en Home Assistant sólo me salen las Entidades y no existe un Dispositivo que centralice todo Securitas Direct.
Sería bueno que existiera el objeto Dispositivo para mejor organización en el sistema..
Entiendo que tendrá al final relación con #13.
Mi implementación fue siguiendo esta web: https://tecnoyfoto.com/integrar-securitas-direct-a-home-assistant-y-google-home
Buenas, perdona pero el otro día no pude revisar el tema de la calidad del aire (#12).
Los valores que me salen no corresponden con los que tengo, a ver si es que lo estas considerando como un % y por eso se divide entre 100. Por ejemplo en casa tengo 200 y pico AQI, mientras que el sensor muestra sólo 2.
No salen tampoco las unidades, la calidad del aire creo que se mide como AQI (Air Quality Index).
¿Necesitas que te facilite algo?
Gracias.
Hi.
This is the information for my HA instance:
System Health
version: core-2022.2.9
installation_type: Home Assistant OS
dev: false
hassio: true
docker: true
user: root
virtualenv: false
python_version: 3.9.7
os_name: Linux
os_version: 5.10.98
arch: x86_64
timezone: Europe/Madrid
GitHub API: ok
GitHub Content: ok
GitHub Web: ok
GitHub API Calls Remaining: 4685
Installed Version: 1.23.0
Stage: running
Available Repositories: 1065
Downloaded Repositories: 52
can_reach_server: ok
remaining_requests: 30
logged_in: true
subscription_expiration: March 9, 2022, 1:00 AM
relayer_connected: true
remote_enabled: true
remote_connected: true
alexa_enabled: true
google_enabled: true
remote_server: eu-central-1-2.ui.nabu.casa
can_reach_cert_server: ok
can_reach_cloud_auth: ok
can_reach_cloud: ok
host_os: Home Assistant OS 7.4
update_channel: beta
supervisor_version: supervisor-2022.01.1
docker_version: 20.10.9
disk_total: 491.5 GB
disk_used: 293.7 GB
healthy: true
supported: true
board: ova
supervisor_api: ok
version_api: ok
installed_addons: Terminal & SSH (9.3.0), A better presence (1.2.0), AdGuard Home (4.4.4), AppDaemon 4 (0.8.1), Check Home Assistant configuration (3.10.0), Duck DNS (1.14.0), File editor (5.3.3), Folding@home (0.4.1), Glances (0.14.2), Grafana (7.4.1), Grocy (0.16.0), Mosquitto broker (6.0.1), Network UPS Tools (0.9.1), Nginx Proxy Manager (0.11.0), Node-RED (11.0.3), Samba share (9.5.1), Syncthing (1.13.0), chrony (2.2.2), php-nginx Docker Image (latest), phpMyAdmin (0.7.0), rest980 Docker Image (20220113), roombapw Docker Image (1.0.0), Git pull (7.13.1), Let's Encrypt (4.12.0), MariaDB (2.4.0), InfluxDB (4.3.0), ESPHome (2022.2.4), Portainer (2.0.0)
dashboards: 3
resources: 26
views: 22
mode: yaml
Securitas-direct-new-api: v1.1.3.0
Get this error in the log from time to time:
2022-02-21 16:05:54 ERROR (MainThread) [homeassistant.helpers.entity] Update for alarm_control_panel.securitas_xxxxxxxx fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 521, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 725, in async_device_update
raise exc
File "/config/custom_components/securitas/alarm_control_panel.py", line 271, in async_update
alarm_status: CheckAlarmStatus = await self.client.update_overview(
File "/config/custom_components/securitas/init.py", line 277, in update_overview
reference_id: str = await self.session.check_alarm(installation)
File "/config/custom_components/securitas/securitas_direct_new_api/apimanager.py", line 179, in check_alarm
result_json = json.loads(await response.text())
AttributeError: 'coroutine' object has no attribute 'text'
Today I have had the following issues with the component:
I have a full log with DEBUG enabled for the component if required.
Thank you.
Carlos
He instalado desde HACS ayer la última versión que me salió disponible, pero me sale cada 10 minutos "Consulta de estado" en la app de Verisure.
He leído que antiguamente si que hacía verificación a la centralita pero que ahora lo hace viendo el estado de la app (como hacía la anterior integración que tenía, la otra app lo hacía esto cada minuto creo) y no pidiendo a la centralita el estado, ¿sin embargo en ese caso no debería salir la consulta de estado en mis registros, no?
Muchas gracias.
Hello,
Integration has stopped working since a couple of days ago and the logs are reflecting this:
customers.securitasdirect.es:443 ssl:default [Connection reset by peer]
does anyone know if the URL has changed for Securitas?
cheers
Adds support for config flow, so we can store configuration and devices for the component.
i tried to add the URL and check but it is not working. just we can arm the system but not disarm it.
Hola, antes de nada gracias por el trabajo.
He instalado la api en HA y funciona perfecto, pero no veo si existe la opción de activar el sensor que tengo en la zona exterior, es posible?
Gracias.
Buenas, me salen algunos errores en Home Assistant, este es uno de ellos:
Este error se originó a partir de una integración personalizada.
Logger: custom_components.securitas.securitas_direct_new_api.apimanager
Source: custom_components/securitas/securitas_direct_new_api/apimanager.py:102
Integration: Securitas Direct (documentation, issues)
First occurred: 19:22:40 (1 occurrences)
Last logged: 19:22:40
Lo sentimos. No se ha podido realizar la acción solicitada.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.