ESPresense / ESPresense

An ESP32 based node for gathering indoor positioning and transmitting to mqtt
https://espresense.com/
GNU Affero General Public License v3.0
1.11k stars 142 forks source link

Devices removed and require re-enrollment #1215

Open ph15h opened 9 months ago

ph15h commented 9 months ago

Describe the bug

Every so often (sometimes within 2 days and sometimes in 2 weeks) all non-beacon devices get removed and require re-pairing and re-adding. It removes Pixel 7, iPhone 15 Pro, and Apple Watch S8 and. They're all removed so it's not just an Apple only device issue.

No other settings get reset. Would normally not be an issue but enrolling and putting the device name into Home Assistant often requires remembering exact naming or renaming devices to match names again. I have 3 ESP32 devices in my home running ESPresense and the devices get removed from all 3

image

Version

3.3.2

Active scan enabled

No

Include filter

No response

Exclude filter

No response

Query filter

No response

Firmware flavor

No response

Device (be specific)

No response

Logs

No response

Screenshots

No response

hdurdle commented 9 months ago

Also seeing this on 3.3.1 and 3.3.2. Apple iPhone, Apple Watch devices are being removed - sometimes within 24 hours - while other iBeacon devices are retained.

oriolism commented 8 months ago

Same issue here with iPhones.

ph15h commented 8 months ago

I ended up just forgoing the device re-enrollment and utilized the IRKs as both the device_IDs so they wouldn't need to be re-enrolled any more should they disappear again

image You do have to add the BLE IRKs to the scanning portion, though to get it to work.

image

oriolism commented 8 months ago

I ended up just forgoing the device re-enrollment and utilized the IRKs as both the device_IDs so they wouldn't need to be re-enrolled any more should they disappear again

image You do have to add the BLE IRKs to the scanning portion, though to get it to work.

image

I'll try this. Thanks for the tip!

rmiles7721 commented 8 months ago

Same issue with my Pixel 8 Pro and Pixel 7a

MHeuvel commented 8 months ago

I have a similar issue with my iphone 14 using irk. I do notice that happens when my MQTT server is restarted and I need to re-enroll my device.

niveksan commented 6 months ago

Same issue with iPhone. 3 times enrolled, 3 times disappeared.

oriolism commented 6 months ago

Same issue with iPhone. 3 times enrolled, 3 times disappeared.

Try the recommendation from @ph15h, that fixed the issue for me.

dktrekkie commented 6 months ago

I have experienced the exact same bug for some time now. My MQTT server is mosquito on a docker. It has been restated quite a few times. I will investigate if restarting that, is somehow related to this issue.

dktrekkie commented 6 months ago

Confirmed. Issue seems linked to MQTT server restarts or downtime IMO. I re-added my iPhone, then restarted my Docker MQTT server (mosquitto). iPhone initially stayed in the list, but vanished after trying a esp-presence restart while server was down.

henriklied commented 4 months ago

Experiencing the same issue as @dktrekkie and others

slashinpdx commented 1 month ago

I ended up just forgoing the device re-enrollment and utilized the IRKs as both the device_IDs so they wouldn't need to be re-enrolled any more should they disappear again

image You do have to add the BLE IRKs to the scanning portion, though to get it to work.

image

How did you get the irk from you 15ProMax?