mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-19 20:02:11 +00:00
You can find the entire repo here.
This commit is contained in:
21
config/automation/Timed_Triggers/startup_month.yaml
Executable file
21
config/automation/Timed_Triggers/startup_month.yaml
Executable file
@@ -0,0 +1,21 @@
|
||||
###################################
|
||||
## 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
|
Reference in New Issue
Block a user