mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-15 17:12:59 +00:00
Include Guest Bedroom in house mode
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
script:
|
||||
guest_bedroom_bedside_confirm:
|
||||
sequence:
|
||||
- service: scene.create
|
||||
data:
|
||||
scene_id: guest_bedroom_before_confirm
|
||||
snapshot_entities:
|
||||
- light.light_lohas_6
|
||||
- service: light.turn_on
|
||||
entity_id: light.light_lohas_6
|
||||
data:
|
||||
rgb_color: [110, 255, 0]
|
||||
- delay: 00:00:02
|
||||
- service: light.turn_on
|
||||
entity_id: light.light_lohas_6
|
||||
data:
|
||||
color_temp: "{{ 400 if is_state('sun.sun', 'above_horizon') else 500 }}"
|
||||
- service: scene.turn_on
|
||||
entity_id: scene.guest_bedroom_before_confirm
|
||||
- delay: 00:00:01
|
||||
@@ -13,8 +13,8 @@ automation:
|
||||
# Turn on in Day Mode
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.bedroom_mode
|
||||
state: 'day'
|
||||
entity_id: binary_sensor.someone_sleeping
|
||||
state: "off"
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
entity_id:
|
||||
@@ -41,9 +41,9 @@ automation:
|
||||
- choose:
|
||||
# Turn off in Day Mode
|
||||
- conditions:
|
||||
condition: state
|
||||
entity_id: input_select.bedroom_mode
|
||||
state: 'day'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.someone_sleeping
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: light.turn_off
|
||||
entity_id: light.hallway
|
||||
|
||||
@@ -13,7 +13,7 @@ automation:
|
||||
# Turn on in Day Mode
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.bedroom_mode
|
||||
entity_id: sensor.house_mode
|
||||
state: 'day'
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
@@ -57,7 +57,7 @@ automation:
|
||||
condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.bedroom_mode
|
||||
entity_id: sensor.house_mode
|
||||
state: 'day'
|
||||
action:
|
||||
# Turn off in Night Mode
|
||||
@@ -85,7 +85,7 @@ automation:
|
||||
minutes: 15
|
||||
condition:
|
||||
condition: state
|
||||
entity_id: input_select.bedroom_mode
|
||||
entity_id: sensor.house_mode
|
||||
state: 'day'
|
||||
action:
|
||||
# Turn off in Day Mode
|
||||
|
||||
Reference in New Issue
Block a user