Bluetooth-Devices / bthome-ble

Parser for BTHome BLE devices
https://bthome.io/
MIT License
79 stars 16 forks source link

Three Shelly Blu Window/Door sensors, one works perfectly, two keep disappearing from HA #153

Closed DJBenson closed 1 month ago

DJBenson commented 1 month ago

Describe the bug I have an allotment with a couple of sheds which I want contact sensors on. The allotment has WiFi and is covered by ESPHome ble-proxies on ESP32 dev boards. My first shed has a device which I sourced from AliExpress and it's been perfect since installation. I ordered a second unit from Amazon UK and it refuses to "stick" in Home Assistant - on restart it disappears. Assuming this was a faulty unit I ordered a second and it does exactly the same.

To Reproduce

Additional context Firmware versions of the devices:

Home Assistant version data:

ESPHome version data:

Attached screencap of the end to end journey: https://github.com/user-attachments/assets/405ac2a9-1d8a-491e-9ddf-5cb7045d795c

Debug log: Removed for now as it seems to contain nothing relevant to BTHome.

DJBenson commented 1 month ago

Some time later they popped up again as discovered devices - they still disappear if added again.

image
DJBenson commented 1 month ago

So I traced this back to a completely unrelated issue. Another integration had written a corrupt line to the device registry and it made the file effectively read-only meaning ANY integration added disappeared after a restart.

Closing.