You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
528 B

###################################
## Start Up Section
###################################
- alias: Check if it's summer vacation on startup.
hide_entity: True
trigger:
- platform: homeassistant
event: start
condition:
- condition: template
value_template: >
{% set month=states("sensor.date").split('-')[1] | int %}
{%- if month == 6 or month == 7 -%}
true
{%- endif -%}
action:
- service: input_boolean.turn_off
entity_id: input_boolean.school_mode

Powered by TurnKey Linux.