mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-08-21 05:03:39 +00:00
Adding new school tomorrow sensor to improve automations
This commit is contained in:
@@ -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 %}
|
Reference in New Issue
Block a user