diff --git a/packages/lighting/README.md b/packages/lighting/README.md index 8819a62..8dd2dc0 100644 --- a/packages/lighting/README.md +++ b/packages/lighting/README.md @@ -2,3 +2,7 @@ This package contains configuration information for lighting. It depends on multiple Zigbee and Z-Wave entities, which must be set up separately. + +## Smart Switch Setup + +Use the "Switch as X" integration to map the in-wall smart switches to light entities. diff --git a/packages/lighting/lighting.yaml b/packages/lighting/lighting.yaml index eb8db5f..c88836a 100644 --- a/packages/lighting/lighting.yaml +++ b/packages/lighting/lighting.yaml @@ -32,3 +32,24 @@ automation: 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