mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
blue_room to boys_room
This commit is contained in:
@@ -10,12 +10,12 @@ trigger:
|
||||
|
||||
- platform: state
|
||||
entity_id: input_boolean.computer_area_occupied
|
||||
to: 'off'
|
||||
to: "off"
|
||||
|
||||
- platform: state
|
||||
id: light_level
|
||||
entity_id: binary_sensor.computer_area_naturally_lit
|
||||
to: 'on'
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
- alias: "Not occupied or mode is set to off"
|
||||
@@ -23,61 +23,61 @@ condition:
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.computer_area_mode
|
||||
state: 'Off'
|
||||
state: "Off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.computer_area_occupied
|
||||
state: 'off'
|
||||
state: "off"
|
||||
- alias: "Great Room Light Cycle is off"
|
||||
condition: state
|
||||
entity_id: input_boolean.great_room_light_cycle
|
||||
state: 'off'
|
||||
state: "off"
|
||||
- alias: "Computer Area Light Cycle is off"
|
||||
condition: state
|
||||
entity_id: input_boolean.computer_area_light_cycle
|
||||
state: 'off'
|
||||
state: "off"
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.lighting_automations
|
||||
state: 'on'
|
||||
- condition: or
|
||||
conditions:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.computer_area_mode
|
||||
state: 'Off'
|
||||
entity_id: input_boolean.lighting_automations
|
||||
state: "on"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.computer_area_mode
|
||||
state: "Off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.computer_area_occupied
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.computer_area_occupied
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.computer_chair_contact_occupied
|
||||
state: 'off'
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.computer_area_mode
|
||||
state: 'Manual'
|
||||
sequence:
|
||||
- service: scene.turn_on
|
||||
data:
|
||||
transition: 5
|
||||
target:
|
||||
entity_id: scene.computer_area_hue_off
|
||||
# - service: light.turn_off
|
||||
# target:
|
||||
# entity_id: light.basement_1
|
||||
entity_id: binary_sensor.computer_chair_contact_occupied
|
||||
state: "off"
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.computer_area_mode
|
||||
state: "Manual"
|
||||
sequence:
|
||||
- action: scene.turn_on
|
||||
data:
|
||||
transition: 5
|
||||
target:
|
||||
entity_id: scene.computer_area_hue_off
|
||||
# - action: light.turn_off
|
||||
# target:
|
||||
# entity_id: light.basement_1
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: light.great_room_hue
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
state: 'on'
|
||||
sequence:
|
||||
- alias: "Turn off z-wave switch since all lights are off"
|
||||
service: homeassistant.turn_off
|
||||
target:
|
||||
entity_id: switch.great_room_motion_switch
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: light.great_room_hue
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
state: "on"
|
||||
sequence:
|
||||
- alias: "Turn off z-wave switch since all lights are off"
|
||||
action: homeassistant.turn_off
|
||||
target:
|
||||
entity_id: switch.great_room_motion_switch
|
||||
|
||||
Reference in New Issue
Block a user