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

Sensors don't work again; Air Quality, Humidity and Temperature #241

Open
montoyra opened this issue Jul 17, 2024 · 11 comments
Open

Sensors don't work again; Air Quality, Humidity and Temperature #241

montoyra opened this issue Jul 17, 2024 · 11 comments

Comments

@montoyra
Copy link

Sensors don't work again; Air Quality, Humidity and Temperature
This entity is no longer provided by the securitas integration from yesterday afternoon

@montoyra
Copy link
Author

Hi, this is the error in log:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/securitas/sensor.py", line 42, in async_setup_entry
sentinel_data: Sentinel = await client.session.get_sentinel_data(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/securitas/securitas_direct_new_api/apimanager.py", line 505, in get_sentinel_data
response = await self._execute_request(content, "Sentinel")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/securitas/securitas_direct_new_api/apimanager.py", line 177, in _execute_request
response_dict["errors"][0]["message"], response_dict, headers, content
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'message'

@jmatiasGH
Copy link

2024-07-18 21:25:50.944 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up securitas platform for sensor
File "/config/custom_components/securitas/sensor.py", line 42, in async_setup_entry
File "/config/custom_components/securitas/securitas_direct_new_api/apimanager.py", line 505, in get_sentinel_data
File "/config/custom_components/securitas/securitas_direct_new_api/apimanager.py", line 177, in _execute_request
2024-07-18 21:25:55.160 ERROR (MainThread) [homeassistant.helpers.service] Failed to load integration: securitas

@vixium
Copy link

vixium commented Jul 19, 2024

same here, deleted integration, re-downloaded and installed again:
only alarm detected...

Registrador: homeassistant.components.sensor
Fuente: helpers/entity_platform.py:364
integración: Sensor (documentación, problemas)
Ocurrió por primera vez: 19:07:07 (2 ocurrencias)
Último inicio de sesión: 19:36:49
Error while setting up securitas platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/securitas/sensor.py", line 42, in async_setup_entry
sentinel_data: Sentinel = await client.session.get_sentinel_data(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/securitas/securitas_direct_new_api/apimanager.py", line 505, in get_sentinel_data
response = await self._execute_request(content, "Sentinel")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/securitas/securitas_direct_new_api/apimanager.py", line 177, in _execute_request
response_dict["errors"][0]["message"], response_dict, headers, content
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'message'

@samatild
Copy link

I can confirm that is also not working at my end.

"/config/custom_components/securitas/securitas_direct_new_api/apimanager.py", line 177, in _execute_request
response_dict["errors"][0]["message"], response_dict, headers, content
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'message'

we are trying to access the 'message' key in the dictionary but it does not exist. I wonder what verisure/securitas changed on their side again.

maybe we can extract the error info from data field in the message itself that we have from debug:

2024-07-26 13:59:37.466 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] {"data":{"xSAllConfort":null},"errors":[{"data":{"name":"accessPermissionsMiddleware","reason":"accessPermissions: Missing capabilities data"}}]}

@OkOtChA666
Copy link

Same

@montoyra
Copy link
Author

Hi, any advance about this issue?

@aritztg
Copy link

aritztg commented Oct 1, 2024

Another one here with this

@vixium
Copy link

vixium commented Oct 1, 2024

I think this project is dead

@kytos22
Copy link

kytos22 commented Dec 15, 2024

Same here, with moonshot/SDVECU (latest alarm panel) sentinel is not detected. I can help capturing operations if needed.

@Juanen2
Copy link

Juanen2 commented Jan 5, 2025

In my case sensors have been re-detected and now are available with the same name but with an _2 suffix. Just make sure to delete the old ones and everything should work fine. Also make sure with recent updates HACS is working fine.

@kytos22
Copy link

kytos22 commented Jan 5, 2025

I updated to the latest integration version aimed to fix this and are also working now. When I integrated my alarm they were not working anyway, so now i just have the sensors.

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

8 participants