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:
@@ -46,13 +46,13 @@ max_exceeded: silent
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
id: 'motion_or_presence_on'
|
||||
id: "motion_or_presence_on"
|
||||
entity_id: !input motion_entity
|
||||
from: "off"
|
||||
to: "on"
|
||||
|
||||
- platform: state
|
||||
id: 'presence_off'
|
||||
id: "presence_off"
|
||||
entity_id: !input presence_boolean
|
||||
from: "on"
|
||||
to: "off"
|
||||
@@ -61,9 +61,9 @@ action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
trigger: 'motion_or_presence_on'
|
||||
trigger: "motion_or_presence_on"
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
- action: light.turn_on
|
||||
target: !input light_target
|
||||
- wait_for_trigger:
|
||||
platform: state
|
||||
@@ -71,13 +71,12 @@ action:
|
||||
from: "on"
|
||||
to: "off"
|
||||
- delay: !input no_motion_wait
|
||||
- service: light.turn_off
|
||||
- action: light.turn_off
|
||||
target: !input light_target
|
||||
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
trigger: 'presence_off'
|
||||
trigger: "presence_off"
|
||||
sequence:
|
||||
- service: light.turn_off
|
||||
- action: light.turn_off
|
||||
target: !input light_target
|
||||
|
||||
|
||||
Reference in New Issue
Block a user