Sensor added for if there is band practice tomorrow #45
This commit is contained in:
@ -15,6 +15,17 @@
|
|||||||
{%- set test=(as_timestamp(now())+ (86400)) | timestamp_custom("%Y-%m-%d",true) %}
|
{%- set test=(as_timestamp(now())+ (86400)) | timestamp_custom("%Y-%m-%d",true) %}
|
||||||
{% if states.calendar.kallen_school_days.attributes.start_time == test + " 09:00:00" %}
|
{% if states.calendar.kallen_school_days.attributes.start_time == test + " 09:00:00" %}
|
||||||
on
|
on
|
||||||
|
{% elif states.calendar.kallen_school_days.attributes.start_time == test + " 08:00:00" %}
|
||||||
|
on
|
||||||
|
{% else %}
|
||||||
|
off
|
||||||
|
{% endif %}
|
||||||
|
band_tomorrow:
|
||||||
|
friendly_name: 'Band Tomorrow'
|
||||||
|
value_template: >-
|
||||||
|
{%- set test=(as_timestamp(now())+ (86400)) | timestamp_custom("%Y-%m-%d",true) %}
|
||||||
|
{% if states.calendar.kallen_school_days.attributes.start_time == test + " 08:00:00" %}
|
||||||
|
on
|
||||||
{% else %}
|
{% else %}
|
||||||
off
|
off
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Reference in New Issue
Block a user