1
0

Add season switch for modes

This commit is contained in:
Przemek Grondek 2024-12-16 01:55:33 +01:00
parent 02b328054c
commit 73ef5e6363
2 changed files with 9 additions and 1 deletions

View File

@ -25,3 +25,4 @@
dest: './build/scripts/modes.yaml'
vars:
xmasTree: true
season: winter

View File

@ -43,6 +43,7 @@ good_night:
- service: lock.lock
target:
entity_id: lock.front_door_lock_doorlock
{% if season == 'summer' %}
- choose:
- conditions:
- condition: numeric_state
@ -52,6 +53,7 @@ good_night:
- service: climate.turn_off
target:
entity_id: climate.ac
{% endif %}
- service: input_boolean.turn_off
target:
entity_id: input_boolean.pc_caffeine
@ -62,7 +64,6 @@ good_night:
- service: script.tv_off
- service: light.turn_off
entity_id:
- light.wled_star
- light.couch_lights
- light.tv_lights
- light.office
@ -80,6 +81,7 @@ good_night:
- light.table_lamp_lights
- light.lego_bookcase_light
{% if xmasTree == true %}
- light.wled_star
- light.twinkly_1
- light.twinkly_2
{% endif %}
@ -106,6 +108,7 @@ good_morning:
{% if xmasTree == true %}
- service: light.turn_on
entity_id:
- light.wled_star
- light.twinkly_1
- light.twinkly_2
{% endif %}
@ -178,9 +181,11 @@ leave_home:
target:
entity_id: lock.front_door_lock_doorlock
- service: script.tv_off
{% if season == 'summer' %}
- service: climate.turn_off
target:
entity_id: climate.ac
{% endif %}
- service: script.vacuum_today
- service: light.turn_off
entity_id:
@ -202,6 +207,7 @@ leave_home:
- light.table_lamp_lights
- light.lego_bookcase_light
{% if xmasTree == true %}
- light.wled_star
- light.twinkly_1
- light.twinkly_2
{% endif %}
@ -233,6 +239,7 @@ arrive_home:
entity_id:
- light.lego_bookcase_light
{% if xmasTree == true %}
- light.wled_star
- light.twinkly_1
- light.twinkly_2
{% endif %}