agittins / bermuda

Bermuda Bluetooth/BLE Triangulation / Trilateration for HomeAssistant
MIT License
637 stars 17 forks source link

Device frequently go to unkown state #331

Closed ageurtse closed 4 weeks ago

ageurtse commented 1 month ago

i have searched the forum over at homeassistant, looked into het trouble shouting seqtion but can't find a solution for my problem. The problem i have is that my iphone is very often go to unkown state, even if the phone isn't moved. it looks like it goes to that state after 30 till 60 seconds.

i'm using ESP32S3

################################################################################
# Bluethooth tracker
################################################################################
bluetooth_proxy:

esp32_ble_tracker:
  scan_parameters:
    active: True

these are the config settings from within Bermuda afbeelding

and ofcourse the diagnostics config_entry-bermuda-01J4RYA69YPY6SS69ASGG9NBND.json

agittins commented 1 month ago

Hi Arnold, sorry for the delay - been a bit swamped lately!

Taking a look at your diagnostics:

I see "Iphone Arnold" (and another) that you have set up using Private BLE Device, that's good.

It seems the other iPhone isn't visible to any scanners, so I'll just look at yours.

Only two scanners seem to be reporting your phone's presence:

With only two proxies receiving data, and only one of those assigned to an area this will probably be a major cause for Bermuda going to an unknown state quite often.

Have you enabled the BLE iBeacon transmitter in the HA companion app on your phone? You don't need to, but it should help to ensure the phone is always transmitting something - it seems that iPhones will often go into low-power modes and not send adverts, so the more things trying to send adverts on the phone the better.

Could you post the yaml you are using for those two proxies (assuming they are esphome devices)?

ageurtse commented 4 weeks ago

After turning on location always on in the settings menu off my iphone it seems to solve the problem . Now only occasionaly the iphone keeps nagging that this setting is on.

but for now i'm happy.

agittins commented 3 weeks ago

Great!

Now only occasionaly the iphone keeps nagging that this setting is on.

sigh they just can't let us win, can they? 😅

ageurtse commented 3 weeks ago

for me not a real problem, but there are more people in the house that will not hit always in the phone. but that is my problem and not a software problem :-)