Skip to content

Instantly share code, notes, and snippets.

View ryan77627's full-sized avatar

Ryan Schanzenbacher ryan77627

View GitHub Profile
@ryan77627
ryan77627 / gist:e39d1d78be54f918b5f9e910485e52b7
Created January 25, 2023 01:54
OwnTracks Recorder Home assistant app integration
- Download and setup home assistant with mqtt broker, like mosquitto.
- Download HACS and Node-Red into Home Assistant
- Set up home assistant app on device. You will now have a device_tracker entity
- Set up owntracks recorder with the mosquitto mqtt broker
- In Node-Red, make the following nodes:
- trigger: state node set to the device_tracker entity
- Delay node set to rate limiting. Choose something reasonable, like 1 msg/s or something even slower. This won't happen often
- A custom function (described below)
- MQTT out with topic set to owntracks/{person_name}/{device_name}