Files
home-assistant/packages/lighting/lighting.yaml
2022-05-15 15:28:00 -07:00

56 lines
1.5 KiB
YAML

# Lighting Package
# -----------------------------------------------------------------------------
# Automations for Bedroom Nightstand Lamps
automation:
- alias: Jen Nightstand Lamp
mode: single
trigger:
- device_id: 98d9a86c7838fdbfcbdaeceef9a98f36
domain: zha
platform: device
type: remote_button_short_press
subtype: remote_button_short_press
condition: []
action:
- type: toggle
device_id: 444b8c5db71e96e192187688e1140d9a
entity_id: light.jen_nightstand_light
domain: light
- alias: J.P. Nightstand Lamp
mode: single
trigger:
- device_id: f223ed24fe135bfd6bb7006dddb6b9f8
domain: zha
platform: device
type: remote_button_short_press
subtype: remote_button_short_press
condition: []
action:
- type: toggle
device_id: a9a219b3e184e045a40959605b4c2be0
entity_id: light.jp_nightstand_light
domain: light
- alias: Turn On Porch Light after Chorale
trigger:
- platform: zone
entity_id: person.jpk
zone: zone.chorale_performance
event: leave
- platform: zone
entity_id: person.jpk
zone: zone.chorale_rehearsal
event: leave
condition:
- condition:
alias: "Sun down"
condition: state
entity_id: sun.sun
state: "below_horizon"
mode: queued
action:
- service: light.turn_on
entity_id: light.porch_light