BTHome: Shelly BLU Door/Window not updating

Hi, Just got my first BLU Door/Window and I’ve got the same issue - intermittent update of the opening/closing sensor.

Fortunately I’ve got a Shelly Mini1PMG3 near by so I added the BLU door/window as a BTHome component to it, then created an action which calls a HA web hook when the door opens.

My plan B was to see if I could trigger my HA automation on any state change for any of the device entities, given that the Illuminance and rotation entities do always update, even when the open/close does not.

I have the same problem. 4 Shellyblu door/window. After a mess updating the parts, 2 only work in the Shelly app. Multiple deletions, resets, updates, checking settings, etc. have not produced any results. All 4 are displayed correctly in the ShellyCloud, only 2 in HASS.
Currently they have had at HASS the same traffic jam for 19 hours, but are showing implausible values.
Shelly Cloud open, tilt angle 6.7°, 31% battery 12lux.
HASS closed, tilt angle 0°, 100% battery, 0lux.

Sorry to add another “me too” to this thread, but I discovered this topic whilst trying to search for a solution. My problem sounds a lot like other folks on here.

I have 4 of these Shelly BLU Door/Window sensors and 90% of the time they seem to work OK. However every now and then (roughly one in 10, or maybe slightly more) events are missed and it’s always a transition from door open->closed (never the other way).

What is REALLY weird is that HA will see a door open event when the door physically opens - all good. However the door then closes and HA sees nothing! Then about 15, sometimes 20 or even 30 minutes later, a door-closed event triggers in HA!? Quite often, it will also log another door opened event at the same time, but this door opened event will have a timestamp of when the door was originally opened!?

I know categorically this is not a sensor issue for two reasons:

  1. I have downloaded the Shelly BLE debug app to my mobile and I can see the raw Bluetooth packets on door open/closed being transmitted by the sensor. I can see the door close packet on my phone, but HA registers nothing (intermittently).
  2. The Shelly App always reflects the correct status, which supports the above theory the sensor is doing its job.

Finally, I’m confident this isn’t a radio problem in terms of the events getting to a HA BLE proxy/gateway for two reasons - one, because of the time delay issue above (i.e. the events eventually do turn up, just very late and when they do, there is no way the actual radio event would have happened at that time!) and also, because I even went to the lengths of setting up an ESPHome bluetooth proxy using an ESP32 module (in addition to the 10 or so Shelly proxies I have dotted around the house). Even with this ESP32 BLE proxy sitting just 2-3 meters away from the sensors, this issue still occurs.

What is bizarre is this time-delay phenomenon, where about 15-30 minutes late, the door-closed status finally registers in HA. I mean the sensors only transmit on an actual door/open or close (they are not in beacon mode). So it almost seems like the events are getting back-logged in HA somewhere? I’m pretty convinced this is some sort of BLE event logic processing issue inside HA itself.

Here’s a demonstration in my HA logs that literally just happened, that shows exactly what I’m referring to. Just to be clear, the door physically opened at 08:04:22, and was closed almost immediately afterwards at 08:04:26 (i.e. the door was only open for about 4 seconds). 26 minutes after the door was closed, HA finally registered the door closed event at 08:30:36 and at the same time it registered a SECOND door open event at 08:04:22. So this data is getting backlogged somewhere in HA.

The shelly app log (right hand side of screenshot) shows the door open/closed event at the correct times, when it actually physically happened - again supporting the fact this isn’t a sensor problem, nor a BLE radio issue.

I’d be grateful for any Ideas, even in terms of how I could troubleshoot this problem further? I’m not sure if there is a way to trace these BLE events through the HA logic to see why they are getting held up by 15-30 minutes at times? And why is it always the door-closed rather than door-open that causes the trouble! All very weird!!

2 Likes

This is a “me too”.
Been banging my head on a wall until I found this thread here. Yet no resolution, but at least I no longer feel alone in this nonsense.

I start thinking the BThome integration is somehow broken as there’s no logical explanation why the CLOSE state is always the only one that randomly fails to report. Opening is lightning fast, triggering the automatons as it should tho.

1 Like

Yep, totally agree! I just wish somebody that might have more knowledge about the inner workings of HA would give us some tips on even how we could start to troubleshoot this problem. I’m convinced it’s a bug in the handling of BTHome events from the Shelly Door/Window sensors, specific (as you say) to the close action. But without any direction as to where we could dig in logs, etc to try and see what might be going awry, it’s really hard to nail this down. :sob:

Same issue here. I’m really hoping someone can help to find this issue. I even tested a Homey from a friend of mine and setup the shelly integration. No issues on the homey. So again a reason to think it is not a shelly issue.

Hi2UAll!

I have some BLU movement and Window/door sensors. I have one new sensor I couldn´t get working. All old (firmware) sensor work perfectly, the new I can’t get it working.

To summarize:\

  • Old ones doen’t have problems.
  • New one, only the button is sending updates. EDIT: when enabled the Signal Strength is also sending updates.
  • I updated to the last firmware, using the shelly Debug App, no change.
    BTW, I read somewhere (can’t find where exactly) that the Shelly Firmware had something to do with it…
    EDIT: Found it:

    I don´t know if anything has to do with it though…

EDIT: Old ones do not show firmware info at Device info, the new one does:
afbeelding
FW version: 1.0.21.0
FYI: Changelog | Shelly Technical Documentation

Help needed!

So glad I’m not the only one, i thought I’m doing something wrong.

As you can guess, I have the same issue. I also have the feeling it’s the new Firmware on the Shelly D/W Sensors.

I have 12 in total, spread across 4 Gateways. All working perfectly, except the newest one in the Garage. It’s stuck to open, even after rebooting HA or the Gateways. Status is reported correctly in the Shelly app.

Here’s there difference:
11 D/W Sensors are on FW 1.0.16
Garage Sensor (newest one installed), is on 1.0.22 (up to date, no FW update available).

Guess we need to wait for Shelly to fix this, in the mean time, I need to figure out how to do a downgrade

Don’t know if it helps someone but I have found a workaround for this issue.
I’ve setup the MQTT broker, next setup MQTT in my bluetooth gateway (in my case a shelly plug s).
In that same shell plug s I’ve setup the script that is found here:

This ensured my blu door/window sensor data was send through MQTT to HA.
This was over a week ago and I haven’t missed a single opening or closing from the door. Yay! :smiley:

I have come across this problem today with a new door/window sensor. The open event arrived but the closed did not - Shelly software itself sees it as closed so the Bluetooth message was certainly received.

Has anyone made any progress on this? Seems latest HA (2025.6) contains some BLE changes - I am still on 2025.5

Shelly wise my receivers are 1.7.1-beta1 and the door window sensor is on 1.0.22

In my case I haven’t seen a delayed close appear (yet) -38 minutes and counting

Has anyone tried beacon mode?

Me too. :frowning: But it’s highly selective, it’s only one single sensor for me, all of my sensors are on 1.0.23 and I’m using a bunch of 1PM Minis (not controlling any power, just acting as BLE receivers). 19 devices and all report properly, except one. I did notice one difference - it shows up in HA as a Shelly Blu sensor, wheras the others are “Unknown.” I didn’t add it specially or different than the others, but perhaps this is a clue?


In this capture, the one called “Door Electrical Room” is the problem, the others are fine. The one oddball sensor will report 100% fine with the Shelly app, but HA won’t see the change.

Also don’t know if it matters but the sensors occasionally, rarely, will “multi-report” - i.e. I open a door, I get open/close/open in rapid succession. But in these cases, HA does eventually “settle down” on the “correct” state so so far I’m not too worried.

I have finally solved this problem!!! At least for me, where I’m running HA on a raspberry Pi. The issue was being caused by having the Raspberry Pi Bluetooth adapter enabled in HA. For some reason, when the RPi Bluetooth adapter is enabled and it’s the entity receiving the BLU packets, its would often miss the door-close events.

I simply went to Settings → Bluetooth and disabled the “hci0” adapter, and bam, everything is now PERFECT! The only devices now processing packets from my BLUE door/window sensors are the Shelly smart plugs I have configured as BLE gateways in HA.

I only figured this issue out because of the new Bluetooth Advertisement monitor that is now available in HA, which helped me to ascertain that the trouble was happening when the hci0 device was the entity receiving the door-closure events.

I really hope this solution helps others, as I’m so happy I’ve finally got this working properly after several years!!