mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
57 lines
1.7 KiB
YAML
57 lines
1.7 KiB
YAML
# alias: "Adaptive Lights: Kitchen"
|
|
# description: ""
|
|
# triggers:
|
|
# - trigger: state
|
|
# entity_id:
|
|
# - binary_sensor.kitchen_motion
|
|
# - binary_sensor.kitchen_presence
|
|
# to:
|
|
# - "on"
|
|
# id: Motion or Presence
|
|
# alias: Motion or Presence
|
|
# - trigger: event
|
|
# event_type: timer.finished
|
|
# event_data:
|
|
# entity_id: timer.kitchen_lights
|
|
# id: Timer finished
|
|
# alias: Kitchen Lights Timer Finished
|
|
# conditions: []
|
|
# actions:
|
|
# - alias: Turn on the lights, start the timer, or turn off the lights?
|
|
# choose:
|
|
# - conditions:
|
|
# - condition: trigger
|
|
# id:
|
|
# - Motion or Presence
|
|
# sequence:
|
|
# - if:
|
|
# - condition: state
|
|
# entity_id: switch.adaptive_lighting_kitchen_northern
|
|
# state:
|
|
# - "off"
|
|
# then:
|
|
# - action: switch.turn_on
|
|
# metadata: {}
|
|
# target:
|
|
# entity_id: switch.adaptive_lighting_kitchen_northern
|
|
# data: {}
|
|
# alias: Turn on the light, if needed
|
|
# - action: timer.start
|
|
# metadata: {}
|
|
# target:
|
|
# entity_id: timer.kitchen_lights
|
|
# data: {}
|
|
# alias: Occupancy with the lights off
|
|
# - conditions:
|
|
# - condition: trigger
|
|
# id:
|
|
# - Timer finished
|
|
# sequence:
|
|
# - action: switch.turn_off
|
|
# metadata: {}
|
|
# target:
|
|
# entity_id: switch.adaptive_lighting_kitchen_northern
|
|
# data: {}
|
|
# alias: Timer finished so turn off the lights
|
|
# mode: single
|