mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
initial push
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
alias: Furnace Room Lights
|
||||
id: automation_furnace_room_lights
|
||||
mode: queued
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
id: door_open
|
||||
entity_id: binary_sensor.furnace_room_door
|
||||
from: "off"
|
||||
to: "on"
|
||||
|
||||
- platform: state
|
||||
id: door_closed
|
||||
entity_id: binary_sensor.furnace_room_door
|
||||
to: "off"
|
||||
for: "00:10:00"
|
||||
|
||||
- platform: state
|
||||
id: motion_off
|
||||
entity_id: binary_sensor.furnace_room_motion_switch_home_security_motion_detection
|
||||
to: "off"
|
||||
for: "00:15:00"
|
||||
|
||||
action:
|
||||
- choose:
|
||||
# - conditions:
|
||||
# - condition: trigger
|
||||
# id: "door_open"
|
||||
# - condition: state
|
||||
# entity_id: light.furnace_room
|
||||
# state: 'off'
|
||||
# sequence:
|
||||
# - service: light.turn_on
|
||||
# target:
|
||||
# entity_id: light.furnace_room
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: "door_closed"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.furnace_room_motion_switch_home_security_motion_detection
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: light.furnace_room
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id: light.furnace_room
|
||||
Reference in New Issue
Block a user