So i thrown a tantrum and was told I should ask properly, so here I try again.
I am trying my best to set up presence detection without a need to be online. I don’t want to expose my HA to the internet and I can’t even get my ISP to give me a static IP to do it.
What I figured is, it should be possible by sensing my phone (I want to track my phone, my wifes phone and her smart watch).
If all three are gone from the apartment I want automations to happen.
I see only two option how to achieve it. Connection to wifi and bluetooth or combination of the two.
I didn’t find any easy way to use wifi to achieve this since my wifi router is not supported (thanks Deco) and HA can’t figure out if my phone is on the same network, at least i didn’t find easy solution.
I decided to go bluetooth way.
I use recent 2022.12 build of HA on my RB4
I also have number of Shelly devices that can be, as of 2022.12, used as bluetooth proxy. I have no idea what active or passive is as the describtion expects me to know what unsolicited data from devices are. I was trying both passive and active setting or both at the same time for relays close to each other, but I don’t see any difference.
I used device tracker to find devices.
I used both Bluetooth LE and normal Bluetooth, while trying to figure this out and noticing that our phones and watch all use BLE I dediced to simplify the device tracker and use BLE only:
bluetooth: device_tracker: - platform: bluetooth_le_tracker new_device_defaults: track_new_devices: true #turned this to false when I found all my devices interval_seconds: 5 # I was playing with these but didn't help consider_home: 20
Originaly it found my phone twice, 1 with normal BT and the second one with BLE.
Then I restored my HA version to reinstalled 2022.12 because I ended up with thousands of BT entities and found out there is no easy way to delete them(!) from HA. Now it finds only my phone as BLE.
Known_devices.yaml now shows all the devices (including hundereds of other devices discovered as well)
wonphone: name: WonPhone mac: BLE_AC:XX:XX:XX:XX:XX #MAC redacted for this post icon: picture: track: true
I was able to track the phone for a while, but then it stopped being tracked at all. Same for my wifes phone. It shows them only as away. Only device that is still tracked is her watch. That was marked as away as she puts in the charger for the night, that probably puts the watch in some form of sleep mode.
In the companion app I turned on BLE transmitter to be able to be tracked. I tried differend modes to be tracked even increased the strenght of the transmitter, but home assistant can’t see the phone still.
Sadly most of the topics on this I found are either years old or have no answer.