Skip to content

Commit

Permalink
Merge branch 'master' of github.com:eifinger/homeassistant-config
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger committed Sep 21, 2021
2 parents 38cc27c + 52df0eb commit 64774a6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
1 change: 0 additions & 1 deletion packages/away_mode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ automation:
trigger:
platform: state
entity_id: binary_sensor.contact_door
to: "on"
action:
- service: script.turn_on
entity_id: script.is_user_home_determiner
Expand Down
4 changes: 2 additions & 2 deletions packages/humidity_alert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ automation:
condition: numeric_state
entity_id: weather.dwd_weather_wiesbaden_biebrich
attribute: temperature
below: 20
below: 10
action:
- service: automation.turn_on
data:
Expand Down Expand Up @@ -175,7 +175,7 @@ automation:
condition: numeric_state
entity_id: weather.dwd_weather_wiesbaden_biebrich
attribute: temperature
below: 20
below: 10
action:
- service: automation.turn_on
data:
Expand Down
12 changes: 9 additions & 3 deletions packages/zone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,25 @@ automation:
zone: "zone.elmo"
event: "enter"
action:
- alias: "Wait until Sina leaves Zone again"
- alias: "Wait for 30 minutes or cancel if Sina leaves"
wait_for_trigger:
- platform: zone
entity_id: "person.sina"
zone: "zone.elmo"
event: "leave"
timeout: "00:30:00"
- alias: "Only continue when at least 30 minutes in zone"
- alias: "Only continue when at least 30 minutes in zone without leaving"
condition: template
value_template: "{{ wait.remaining == 0 }}"
- alias: "Wait for Sina to leave."
wait_for_trigger:
- platform: zone
entity_id: "person.sina"
zone: "zone.elmo"
event: "leave"
- alias: "Only if Kevin is not nearby"
condition: template
value_template: "{{ distance('device_tracker.sm_g975f', 'device_tracker.oneplus_a3003') < 1 }}"
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 64774a6

Please sign in to comment.