mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
blue_room to boys_room
This commit is contained in:
@@ -10,13 +10,13 @@ trigger:
|
||||
|
||||
- platform: state
|
||||
entity_id: input_boolean.master_bedroom_occupied
|
||||
to: 'off'
|
||||
to: "off"
|
||||
|
||||
- platform: state
|
||||
id: light_level
|
||||
entity_id: binary_sensor.entryway_naturally_lit
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
from: "off"
|
||||
to: "on"
|
||||
|
||||
#- platform: time_pattern
|
||||
# minutes: "/5"
|
||||
@@ -24,8 +24,7 @@ trigger:
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: light.master_bedroom_hue
|
||||
state: 'on'
|
||||
|
||||
state: "on"
|
||||
|
||||
- alias: "Master Bedroom light cycle not on"
|
||||
condition: state
|
||||
@@ -36,52 +35,52 @@ condition:
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: light.master_bedroom_1
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: light.master_bedroom_2
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: light.master_bedroom_3
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
state: 'Off'
|
||||
state: "Off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bedroom_occupied
|
||||
state: 'off'
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
state: 'Nightlight'
|
||||
state: "Nightlight"
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.lighting_automations
|
||||
state: 'on'
|
||||
- condition: or
|
||||
conditions:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
state: 'Off'
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bedroom_occupied
|
||||
state: 'off'
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
state: 'Manual'
|
||||
sequence:
|
||||
- service: scene.turn_on
|
||||
data:
|
||||
transition: 5
|
||||
target:
|
||||
entity_id: scene.master_bedroom_hue_off
|
||||
entity_id: input_boolean.lighting_automations
|
||||
state: "on"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
state: "Off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bedroom_occupied
|
||||
state: "off"
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
state: "Manual"
|
||||
sequence:
|
||||
- action: scene.turn_on
|
||||
data:
|
||||
transition: 5
|
||||
target:
|
||||
entity_id: scene.master_bedroom_hue_off
|
||||
default:
|
||||
- service: light.turn_off
|
||||
- action: light.turn_off
|
||||
target:
|
||||
entity_id:
|
||||
- light.master_bedroom_1
|
||||
@@ -89,4 +88,3 @@ action:
|
||||
- light.master_bedroom_3
|
||||
- light.accent
|
||||
- light.master_bedroom_accent
|
||||
|
||||
|
||||
Reference in New Issue
Block a user