mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
blue_room to boys_room
This commit is contained in:
@@ -36,33 +36,33 @@ trigger:
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: "motion_on"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
alias: "It is dark outside"
|
||||
entity_id: binary_sensor.is_dark
|
||||
state: 'on'
|
||||
- condition: state
|
||||
alias: "Front porch light is on"
|
||||
entity_id: light.front_porch_overhead
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: light.driveway
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
target:
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: "motion_on"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
alias: "It is dark outside"
|
||||
entity_id: binary_sensor.is_dark
|
||||
state: "on"
|
||||
- condition: state
|
||||
alias: "Front porch light is on"
|
||||
entity_id: light.front_porch_overhead
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: light.driveway
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: "motion_off"
|
||||
- condition: state
|
||||
entity_id: light.driveway
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: light.turn_off
|
||||
target:
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.driveway
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: "motion_off"
|
||||
- condition: state
|
||||
entity_id: light.driveway
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: light.turn_off
|
||||
target:
|
||||
entity_id: light.driveway
|
||||
|
||||
Reference in New Issue
Block a user