Adding new school tomorrow sensor to improve automations

This commit is contained in:
Jeffrey Stone
2020-05-17 21:29:52 -04:00
parent a021c13929
commit 23977ffee6
3 changed files with 80 additions and 11 deletions

View File

@@ -307,4 +307,13 @@
{{ states.calendar.anchorage_holidays.attributes.message }}
{% else %}
none
{% endif %}
{% endif %}
school_tomorrow:
friendly_name: 'School Tomorrow'
value_template: >-
{%- set test=(as_timestamp(now())+ (86400)) | timestamp_custom("%Y-%m-%d",true) %}
{% if states.calendar.skylar_school.attributes.start_time == test + " 07:35:00" %}
on
{% else %}
off
{% endif %}