Skip to content

Commit

Permalink
change order of zone alert
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger committed May 15, 2021
1 parent 6bdb1c1 commit e956070
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/zone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ automation:
entity_id: "person.sina"
zone: "zone.elmo"
event: "enter"
condition:
- alias: "Only if Kevin is not nearby"
condition: template
value_template: "{{ distance('device_tracker.sm_g975f', 'device_tracker.oneplus_a3003') < 1 }}"
action:
- alias: "Wait until Sina leaves Zone again"
wait_for_trigger:
Expand All @@ -50,6 +46,9 @@ automation:
- alias: "Only continue when at least 30 minutes in zone"
condition: template
value_template: "{{ wait.completed }}"
- alias: "Only if Kevin is not nearby"
condition: template
value_template: "{{ distance('device_tracker.sm_g975f', 'device_tracker.oneplus_a3003') < 1 }}"
- 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 e956070

Please sign in to comment.