Restored old template to new binary sensors
This commit is contained in:
@@ -76,14 +76,24 @@ template:
|
|||||||
- name: Kallen School Tomorrow
|
- name: Kallen School Tomorrow
|
||||||
unique_id: 73d91e2f-35b5-491c-9c8b-c6d89d67b53c
|
unique_id: 73d91e2f-35b5-491c-9c8b-c6d89d67b53c
|
||||||
state: >-
|
state: >-
|
||||||
{%- set test=(as_timestamp(now())+ (86400)) | timestamp_custom("%Y-%m-%d",true) %}
|
{%- set test=(as_timestamp(now())+ (86400)) | timestamp_custom("%Y-%m-%d",true) %}
|
||||||
{{ state_attr('calendar.kallen_school_days','start_time') == test + (" 09:00:00" or " 08:00:00") }}
|
{% if states.calendar.kallen_school_days.attributes.start_time == test + " 09:00:00" %}
|
||||||
|
on
|
||||||
|
{% elif states.calendar.kallen_school_days.attributes.start_time == test + " 08:00:00" %}
|
||||||
|
on
|
||||||
|
{% else %}
|
||||||
|
off
|
||||||
|
{% endif %}
|
||||||
icon: mdi:school
|
icon: mdi:school
|
||||||
- name: Kallen Band Tomorrow
|
- name: Kallen Band Tomorrow
|
||||||
unique_id: c57855eb-0499-4585-9081-9b2244ce6845
|
unique_id: c57855eb-0499-4585-9081-9b2244ce6845
|
||||||
state: >-
|
state: >-
|
||||||
{%- set test=(as_timestamp(now())+ (86400)) | timestamp_custom("%Y-%m-%d",true) %}
|
{%- set test=(as_timestamp(now())+ (86400)) | timestamp_custom("%Y-%m-%d",true) %}
|
||||||
{{ state_attr('calendar.kallen_school_days','start_time') == test + " 08:00:00" }}
|
{% if states.calendar.kallen_school_days.attributes.start_time == test + " 08:00:00" %}
|
||||||
|
on
|
||||||
|
{% else %}
|
||||||
|
off
|
||||||
|
{% endif %}
|
||||||
icon: mdi:trumpet
|
icon: mdi:trumpet
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
|
|||||||
Reference in New Issue
Block a user