Skip to content

Commit

Permalink
Fix Sina left elmo
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger committed Oct 19, 2021
1 parent 232283e commit 7c1fb96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/zone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ automation:
entity_id: "person.sina"
zone: "zone.elmo"
event: "leave"
- alias: "Only if Kevin is not nearby"
- alias: "Only if Kevin is not within 5 km"
condition: template
value_template: "{{ distance('device_tracker.sm_g975f', 'device_tracker.oneplus_a3003') > 1 }}"
value_template: "{{ distance('person.kevin', 'person.sina') > 5 }}"
- alias: "Update travel time home of Sina"
service: homeassistant.update_entity
entity_id: sensor.travel_time_home_user_two_here
Expand Down

0 comments on commit 7c1fb96

Please sign in to comment.