Add season switch for modes
This commit is contained in:
parent
02b328054c
commit
73ef5e6363
@ -25,3 +25,4 @@
|
|||||||
dest: './build/scripts/modes.yaml'
|
dest: './build/scripts/modes.yaml'
|
||||||
vars:
|
vars:
|
||||||
xmasTree: true
|
xmasTree: true
|
||||||
|
season: winter
|
||||||
|
@ -43,6 +43,7 @@ good_night:
|
|||||||
- service: lock.lock
|
- service: lock.lock
|
||||||
target:
|
target:
|
||||||
entity_id: lock.front_door_lock_doorlock
|
entity_id: lock.front_door_lock_doorlock
|
||||||
|
{% if season == 'summer' %}
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: numeric_state
|
- condition: numeric_state
|
||||||
@ -52,6 +53,7 @@ good_night:
|
|||||||
- service: climate.turn_off
|
- service: climate.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: climate.ac
|
entity_id: climate.ac
|
||||||
|
{% endif %}
|
||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: input_boolean.pc_caffeine
|
entity_id: input_boolean.pc_caffeine
|
||||||
@ -62,7 +64,6 @@ good_night:
|
|||||||
- service: script.tv_off
|
- service: script.tv_off
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.wled_star
|
|
||||||
- light.couch_lights
|
- light.couch_lights
|
||||||
- light.tv_lights
|
- light.tv_lights
|
||||||
- light.office
|
- light.office
|
||||||
@ -80,6 +81,7 @@ good_night:
|
|||||||
- light.table_lamp_lights
|
- light.table_lamp_lights
|
||||||
- light.lego_bookcase_light
|
- light.lego_bookcase_light
|
||||||
{% if xmasTree == true %}
|
{% if xmasTree == true %}
|
||||||
|
- light.wled_star
|
||||||
- light.twinkly_1
|
- light.twinkly_1
|
||||||
- light.twinkly_2
|
- light.twinkly_2
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -106,6 +108,7 @@ good_morning:
|
|||||||
{% if xmasTree == true %}
|
{% if xmasTree == true %}
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id:
|
entity_id:
|
||||||
|
- light.wled_star
|
||||||
- light.twinkly_1
|
- light.twinkly_1
|
||||||
- light.twinkly_2
|
- light.twinkly_2
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -178,9 +181,11 @@ leave_home:
|
|||||||
target:
|
target:
|
||||||
entity_id: lock.front_door_lock_doorlock
|
entity_id: lock.front_door_lock_doorlock
|
||||||
- service: script.tv_off
|
- service: script.tv_off
|
||||||
|
{% if season == 'summer' %}
|
||||||
- service: climate.turn_off
|
- service: climate.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: climate.ac
|
entity_id: climate.ac
|
||||||
|
{% endif %}
|
||||||
- service: script.vacuum_today
|
- service: script.vacuum_today
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id:
|
entity_id:
|
||||||
@ -202,6 +207,7 @@ leave_home:
|
|||||||
- light.table_lamp_lights
|
- light.table_lamp_lights
|
||||||
- light.lego_bookcase_light
|
- light.lego_bookcase_light
|
||||||
{% if xmasTree == true %}
|
{% if xmasTree == true %}
|
||||||
|
- light.wled_star
|
||||||
- light.twinkly_1
|
- light.twinkly_1
|
||||||
- light.twinkly_2
|
- light.twinkly_2
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -233,6 +239,7 @@ arrive_home:
|
|||||||
entity_id:
|
entity_id:
|
||||||
- light.lego_bookcase_light
|
- light.lego_bookcase_light
|
||||||
{% if xmasTree == true %}
|
{% if xmasTree == true %}
|
||||||
|
- light.wled_star
|
||||||
- light.twinkly_1
|
- light.twinkly_1
|
||||||
- light.twinkly_2
|
- light.twinkly_2
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user