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 May 16, 2021
2 parents 674f878 + f193181 commit 023c601
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 67 deletions.
9 changes: 6 additions & 3 deletions packages/next_alarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ automation:
((as_timestamp(states.sensor.oneplus_a3003_nachster_wecker.state)
| int - 7200) | timestamp_custom('%Y-%m-%d, %H:%M', True))
and (states('person.sina') == 'home') }}
- platform: template
value_template: >
{{ states('sensor.date_time') ==
((as_timestamp(states.sensor.kevin_s_echo_dot_schlafzimmer_next_alarm.state)
| int - 7200) | timestamp_custom('%Y-%m-%d, %H:%M', True))
and (states('person.sina') == 'home') }}
action:
- service: script.turn_on
entity_id: script.warm_bath_before_wakeup
Expand Down Expand Up @@ -77,6 +83,3 @@ script:
data:
entity_id: "{{ climate_entity_id }}"
temperature: "{{ old_temperature }}"
- service: notify.group_notifications
data:
message: "Ich habe {{ state_attr(climate_entity_id, 'friendly_name') }} auf {{ old_temperature }}C° gestellt."
5 changes: 0 additions & 5 deletions packages/uptime.yaml

This file was deleted.

54 changes: 0 additions & 54 deletions packages/version.yaml

This file was deleted.

9 changes: 4 additions & 5 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 @@ -49,7 +45,10 @@ automation:
timeout: "00:30:00"
- alias: "Only continue when at least 30 minutes in zone"
condition: template
value_template: "{{ wait.completed }}"
value_template: "{{ wait.remaining == 0 }}"
- 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 023c601

Please sign in to comment.