I have bought two Aqarea door sensors the same type I have many others… It seems to behave just like the new leak sensors that I am losing the main entities in HA,
Some bits are missing from the newer model Cluster info
On the old sensor, the capture is empty (the capture from deconz) need to have the manufacture name and the model id to compare, and they have the same firmware.
They are not working on phoscon ? (all seem fine on your capture)
Hi @Mimiix I would have said is a issue with HA but the device looks different in Deconz. I have 20 others Aqara door sensors and all look the same and behave ok.
For now the entity seems to be there and did not vanished.
Thank you so much for all your support.
HA restart and is gone Odd is that is just the main sensor, temperature is OK… It is very similar with the leak sensors issue to me… In both cases temperature and battery are there but the main sensor is gone.
I think this error from HA logs is what is causing the entity not to be available
First occurred: September 16, 2023 at 19:28:38 (1 occurrences)
Last logged: September 16, 2023 at 19:28:38
Error while setting up deconz platform for binary_sensor
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 359, in _async_setup_platform
await asyncio.shield(task)
File “/usr/src/homeassistant/homeassistant/components/deconz/binary_sensor.py”, line 221, in async_setup_entry
gateway.register_platform_add_device_callback(
File “/usr/src/homeassistant/homeassistant/components/deconz/gateway.py”, line 182, in register_platform_add_device_callback
async_add_device(EventType.ADDED, device_id)
File “/usr/src/homeassistant/homeassistant/components/deconz/gateway.py”, line 172, in async_add_device
add_device_callback(EventType.ADDED, device_id)
File “/usr/src/homeassistant/homeassistant/components/deconz/binary_sensor.py”, line 216, in async_add_sensor
) or description.value_fn(sensor) is None:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/deconz/binary_sensor.py”, line 129, in
value_fn=lambda device: device.open,
^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/pydeconz/models/sensor/open_close.py”, line 28, in open
return self.raw[“state”][“open”]
~~~~~~~~~~~~~~~~~^^^^^^^^
KeyError: ‘open’
I think indeed the Home assistant is responsible for this code and for whatever reason it fails.
If it doesn’t report the open state then the device is useless. It would be on deconz side in that case to make sure the device provides the expected properties.