mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 11:00:14 -04:00
68 lines
1.8 KiB
YAML
68 lines
1.8 KiB
YAML
# alias: Blue Room Lights
|
|
# id: automation_blue_room_lights
|
|
# mode: queued
|
|
|
|
# trigger:
|
|
# - platform: state
|
|
# id: door_open
|
|
# entity_id: binary_sensor.blue_room_door_contact
|
|
# from: "off"
|
|
# to: "on"
|
|
|
|
# - platform: state
|
|
# id: motion_on
|
|
# entity_id: binary_sensor.blue_room_motion_switch_home_security_motion_detection
|
|
# from: "off"
|
|
# to: "on"
|
|
|
|
# - platform: state
|
|
# id: door_closed
|
|
# entity_id: binary_sensor.blue_room_door_contact
|
|
# to: "off"
|
|
# for: "00:10:00"
|
|
|
|
# - platform: state
|
|
# id: motion_off
|
|
# entity_id: binary_sensor.blue_room_motion_switch_home_security_motion_detection
|
|
# to: "off"
|
|
# for: "00:15:00"
|
|
|
|
# action:
|
|
# - choose:
|
|
# - conditions:
|
|
# - condition: or
|
|
# conditions:
|
|
# - condition: trigger
|
|
# id: "door_open"
|
|
# - condition: trigger
|
|
# id: "motion_on"
|
|
# - condition: state
|
|
# entity_id: light.blue_room
|
|
# state: 'off'
|
|
# sequence:
|
|
# - service: light.turn_on
|
|
# target:
|
|
# entity_id: light.blue_room
|
|
# - service: switch.turn_on
|
|
# target:
|
|
# entity_id: switch.frigate_cam01_detect
|
|
# - conditions:
|
|
# - condition: or
|
|
# conditions:
|
|
# - condition: trigger
|
|
# id: "door_closed"
|
|
# - condition: trigger
|
|
# id: "motion_off"
|
|
# - condition: state
|
|
# entity_id: binary_sensor.blue_room_motion_switch_home_security_motion_detection
|
|
# state: "off"
|
|
# - condition: state
|
|
# entity_id: light.blue_room
|
|
# state: 'on'
|
|
# sequence:
|
|
# - service: light.turn_off
|
|
# target:
|
|
# entity_id: light.blue_room
|
|
# - service: switch.turn_off
|
|
# target:
|
|
# entity_id: switch.frigate_cam01_detect |