I have a slightly unusual issue with one of my device trackers.
I’ve just returned to HA after a period away from it after moving house, so I’m not a total noob.
I’ve always used BLE keyfob trackers to keep track of who’s at home and previously had a custom python script which listened and updated an MQTT topic. They have a static MAC address and I already know the mac of the devices I want. This worked well, but I saw there’s now a BLE device tracker native to HA so I thought that would be great and save me time.
I set that up to scan and track new devices and within 24 hours I had over 150 devices from the neighbourhood in my known devices YAML file. I changed from active to passive bluetooth, turned tracking new devices to false and deleted all of the entries I didn’t want from known devices, which was all but my own tracker which I kept in the YAML file, I manually added an entry for my wife and put a new battery in her fob. Until this point my tracker was working perfectly.
I’ve now found that the entry for my wife tracks accurately, but my own never changes from ‘Home’.
I decided to clear the known devices file and delete the device tracker from the configuration YAML file restart and leave it over night. This seemed to remove the entities and I manually recreated new entities for myself and my wife. Again, my wife’s tracker works fine, but my own never changes from ‘Home’. It also re-added the old entity that was originally associated with the mac address again (despite it not being in the known_devices.yaml).
I deleted all of the device_tracker entries from states table in the home-assistant_v2.db database, but again no luck.
I’m assuming that the mac address is recorded somewhere.
Can anyone advise where I could purge that info from? I’d be happy to purge all device tracker info and start again, but I don’t really want to have to reinstall a clean HA and start again (even if I can restore from a backup), but it’s looking like the only option at the moment.
Thanks in advance.
Config.yaml
device_tracker:
- platform: bluetooth_le_tracker
interval_seconds: 10
consider_home: 20
new_device_defaults:
track_new_devices: false
known devices
wife_pebblebee:
mac: BLE_XX:XX:XX:XX:XX:XX
name: V
picture: "v.png"
track: true
stu_tracker:
mac: BLE_XX:XX:XX:XX:XX:XX
name: Stuart
picture: "stu.png"
track: true
EDIT 16 JAN '23:
I eventually gave up on this and I made the leap to ESPresence to do my presence detection which is offering more flexibility. I will need to add additional ESP32s to my setup tho.