Hi all,
I put together an automation that turns the front entryway light on when the front door is unlocked if the front porch lights are on (I used that as the condition since my Caseta lights turn on at dusk and off at dawn - I guess I could use the sun condition in HA - is there any reason to use one over the other?).
It works well this way, but I would like to add another condition. I was thinking about using location tracking, but I don’t want to freak a guest out if they are here and not tracked.
So, I figured I could use a condition that says if all interior lights (or all downstairs interior lights) are off, and the front porch light is on, turn on the interior entryway lights when the front door is unlocked. Only issue is, I am not sure how to use all interior (or all downstairs) lights as a group in a condition. Can anyone assist me with that? All my lights are on the Caseta hub.
- id: '1622221436622'
alias: Front Entry Light on when door unlocked
description: ''
trigger:
- platform: device
device_id: 8f42afe329a0f0739acba765f6ddd1f2
domain: lock
entity_id: lock.front_door
type: unlocked
condition:
- condition: device
type: is_on
device_id: c08e0f19918bf4d855c35a74e46416eb
entity_id: switch.exterior_porch_lights
domain: switch
action:
- type: turn_on
device_id: 4bf2dbcce8d891b846ef60cee5e5328e
entity_id: switch.front_entryway_main_lights
domain: switch
mode: single
Thank you for your help!!
-David