Added school break countdowns to briefings
This commit is contained in:
@ -110,6 +110,30 @@
|
||||
'Today would be a good day to spend some time with mom and dad.',
|
||||
] | random }}
|
||||
{% endif %}
|
||||
{% if states.sensor.thanksgiving_break_days2go.state | int <= 14 and states.sensor.thanksgiving_break_days2go.state | int > 0 %}
|
||||
{{ [ 'Oh, and look at that.',
|
||||
'For those trying to keep count. ',
|
||||
'In case you were wondering.',
|
||||
'Also, did you know.'
|
||||
] | random }}
|
||||
There are only {{ states.sensor.thanksgiving_break_days2go.state }} days until Thanksgiving Break!
|
||||
{% endif %}
|
||||
{% if states.sensor.christmas_break_days2go.state | int <= 14 and states.sensor.christmas_break_days2go.state | int > 0 %}
|
||||
{{ [ 'Oh, and look at that.',
|
||||
'For those trying to keep count. ',
|
||||
'In case you were wondering.',
|
||||
'Also, did you know.'
|
||||
] | random }}
|
||||
There are only {{ states.sensor.christmas_break_days2go.state }} days until Christmas Break!
|
||||
{% endif %}
|
||||
{% if states.sensor.spring_break_days2go.state | int <= 14 and states.sensor.spring_break_days2go.state | int > 0 %}
|
||||
{{ [ 'Oh, and look at that.',
|
||||
'For those trying to keep count. ',
|
||||
'In case you were wondering.',
|
||||
'Also, did you know.'
|
||||
] | random }}
|
||||
There are only {{ states.sensor.spring_break_days2go.state }} days until Spring Break!
|
||||
{% endif %}
|
||||
|
||||
{% if is_state ('input_boolean.school_today', 'off') and is_state('sensor.pirateweather_icon', 'snow') %}
|
||||
Do you wanna build a snowman? It's snowing!
|
||||
|
Reference in New Issue
Block a user