Skip to content

Commit

Permalink
Add echo dot alarm to next_alarm
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger committed May 15, 2021
1 parent 005dbec commit ff26c9e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 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

0 comments on commit ff26c9e

Please sign in to comment.