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:
@@ -6,7 +6,7 @@ trigger:
|
||||
- platform: state
|
||||
id: door_open
|
||||
entity_id: binary_sensor.storage_room_door_contact
|
||||
from: 'off'
|
||||
from: "off"
|
||||
to: "on"
|
||||
|
||||
- platform: state
|
||||
@@ -17,23 +17,23 @@ trigger:
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: "door_open"
|
||||
- condition: state
|
||||
entity_id: light.storage_room
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
target:
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: "door_open"
|
||||
- condition: state
|
||||
entity_id: light.storage_room
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: "door_closed"
|
||||
- condition: state
|
||||
entity_id: light.storage_room
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id: light.storage_room
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.storage_room
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: "door_closed"
|
||||
- condition: state
|
||||
entity_id: light.storage_room
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: light.turn_off
|
||||
target:
|
||||
entity_id: light.storage_room
|
||||
|
||||
Reference in New Issue
Block a user