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:
@@ -51,105 +51,105 @@ trigger:
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: "door_open"
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: "door_open"
|
||||
|
||||
- condition: state
|
||||
entity_id: light.front_porch_overhead
|
||||
state: 'off'
|
||||
|
||||
- alias: "It is not late evening"
|
||||
condition: state
|
||||
entity_id: binary_sensor.late_evening
|
||||
state: 'off'
|
||||
|
||||
- alias: "It is not night"
|
||||
condition: state
|
||||
entity_id: binary_sensor.night
|
||||
state: 'off'
|
||||
|
||||
- alias: "Front porch not naturally lit"
|
||||
condition: state
|
||||
entity_id: binary_sensor.front_porch_naturally_lit
|
||||
state: 'off'
|
||||
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
target:
|
||||
- condition: state
|
||||
entity_id: light.front_porch_overhead
|
||||
state: "off"
|
||||
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: "motion_on"
|
||||
- alias: "It is not late evening"
|
||||
condition: state
|
||||
entity_id: binary_sensor.late_evening
|
||||
state: "off"
|
||||
|
||||
- condition: state
|
||||
entity_id: light.front_porch_overhead
|
||||
state: 'off'
|
||||
- alias: "It is not night"
|
||||
condition: state
|
||||
entity_id: binary_sensor.night
|
||||
state: "off"
|
||||
|
||||
- alias: "Front porch not naturally lit"
|
||||
condition: state
|
||||
entity_id: binary_sensor.front_porch_naturally_lit
|
||||
state: 'off'
|
||||
- alias: "Front porch not naturally lit"
|
||||
condition: state
|
||||
entity_id: binary_sensor.front_porch_naturally_lit
|
||||
state: "off"
|
||||
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
target:
|
||||
sequence:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.front_porch_overhead
|
||||
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: "motion_on"
|
||||
|
||||
- condition: state
|
||||
entity_id: light.front_porch_overhead
|
||||
state: "off"
|
||||
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: "too_bright"
|
||||
- alias: "Front porch not naturally lit"
|
||||
condition: state
|
||||
entity_id: binary_sensor.front_porch_naturally_lit
|
||||
state: "off"
|
||||
|
||||
- condition: state
|
||||
entity_id: light.front_porch_overhead
|
||||
state: 'on'
|
||||
sequence:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.front_porch_overhead
|
||||
|
||||
sequence:
|
||||
- service: light.turn_off
|
||||
target:
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: "too_bright"
|
||||
|
||||
- condition: state
|
||||
entity_id: light.front_porch_overhead
|
||||
state: "on"
|
||||
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: "too_dark"
|
||||
sequence:
|
||||
- action: light.turn_off
|
||||
target:
|
||||
entity_id: light.front_porch_overhead
|
||||
|
||||
- condition: state
|
||||
entity_id: light.front_porch_overhead
|
||||
state: 'off'
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: "too_dark"
|
||||
|
||||
- condition: state
|
||||
entity_id:
|
||||
- binary_sensor.front_porch_motion
|
||||
- binary_sensor.front_porch_person_occupancy
|
||||
- binary_sensor.front_yard_person_occupancy
|
||||
state: 'on'
|
||||
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
target:
|
||||
- condition: state
|
||||
entity_id: light.front_porch_overhead
|
||||
state: "off"
|
||||
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.front_porch_motion
|
||||
state: "off"
|
||||
for:
|
||||
minutes: 5
|
||||
- condition: state
|
||||
entity_id:
|
||||
- binary_sensor.front_porch_motion
|
||||
- binary_sensor.front_porch_person_occupancy
|
||||
- binary_sensor.front_yard_person_occupancy
|
||||
state: "on"
|
||||
|
||||
# - condition: state
|
||||
# entity_id: binary_sensor.outer_garage_door
|
||||
# state: 'off'
|
||||
sequence:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.front_porch_overhead
|
||||
|
||||
- condition: state
|
||||
entity_id: binary_sensor.outer_garage_door_contact
|
||||
state: 'off'
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.front_porch_motion
|
||||
state: "off"
|
||||
for:
|
||||
minutes: 5
|
||||
|
||||
- condition: state
|
||||
entity_id: light.front_porch_overhead
|
||||
state: 'on'
|
||||
# - condition: state
|
||||
# entity_id: binary_sensor.outer_garage_door
|
||||
# state: 'off'
|
||||
|
||||
sequence:
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id: light.front_porch_overhead
|
||||
- condition: state
|
||||
entity_id: binary_sensor.outer_garage_door_contact
|
||||
state: "off"
|
||||
|
||||
- condition: state
|
||||
entity_id: light.front_porch_overhead
|
||||
state: "on"
|
||||
|
||||
sequence:
|
||||
- action: light.turn_off
|
||||
target:
|
||||
entity_id: light.front_porch_overhead
|
||||
|
||||
Reference in New Issue
Block a user