Direct Links in Video
ESPresense Home Page – https://espresense.com/
ESPresense Project Page – https://github.com/ESPresense/ESPresense/
Install Page – https://espresense.com/install
Web Terminal – https://espresense.com/terminal
Hardware
ESP32 “Base Stations” – https://espresense.com/hardware
Compatible BLE Trackers – https://espresense.com/beacons
Create a Virtual Device Tracker with ESPresense
Now if you want to be able to use the ESPresense device as a device tracker in Home Assistant you need to use this little bit of code. Now make sure you update the sensor entity ID and the device tracker name. Now this is a virtual tracker, so you just need to give it a unique name.
Now there are two automations, one for when the tracker gets home and the other when it leaves.
Device Home Automation
alias: Liam Backpack BT Home
trigger:
- platform: state
entity_id: sensor.liam_backpack
from: not_home
action:
- service: device_tracker.see
data:
dev_id: liam_backpack
location_name: home
mode: single
Device Away Automation
alias: Liam Backpack BT Away
trigger:
- platform: state
entity_id: sensor.liam_backpack
to: not_home
action:
- service: device_tracker.see
data:
dev_id: liam_backpack
location_name: not_home
mode: single