Automations
Ciconia trackers are ordinary Home Assistant entities, so everything Home Assistant offers works with them: zones, triggers, conditions, the map card and the logbook.
In these examples the tracker is called "Car". Replace car with your tracker's name and notify.mobile_app_phone with your own notifier.
The car arrives home
alias: Car arrived home
triggers:
- trigger: zone
entity_id: device_tracker.car
zone: zone.home
event: enter
actions:
- action: notify.mobile_app_phone
data:
message: The car is home.
Swap the notification for cover.open_cover on your gate and it opens as you turn into the street. Make the Home zone big enough that the tracker's next report lands inside it before you reach the gate.
The car leaves home at night
alias: Car moving at night
triggers:
- trigger: zone
entity_id: device_tracker.car
zone: zone.home
event: leave
conditions:
- condition: time
after: "23:00:00"
before: "06:00:00"
actions:
- action: notify.mobile_app_phone
data:
message: The car just left home. Was that you?
Low battery
alias: Car tracker battery low
triggers:
- trigger: numeric_state
entity_id: sensor.car_battery
below: 20
actions:
- action: notify.mobile_app_phone
data:
message: "Car tracker battery is at {{ states('sensor.car_battery') }} %"
The tracker has gone quiet
Fix age counts the seconds since the latest position. This fires once it passes an hour; pick a longer time for a tracker that sleeps for hours to save battery.
alias: Car tracker silent
triggers:
- trigger: numeric_state
entity_id: sensor.car_fix_age
above: 3600
actions:
- action: notify.mobile_app_phone
data:
message: >
The car tracker hasn't reported since
{{ states('sensor.car_last_fix') | as_datetime | as_local }}.
Distance from home
Home Assistant's built-in Proximity integration gives you the distance between a tracker and a zone, and whether it's getting closer. Use it to warm the house up when the car is 10 km away.
A map on your dashboard
Add a Map card with the tracker entities. Set Hours to show to draw the route of the last hours from Home Assistant's history.