(If I’ve posted this in the wrong category, please advise. Thanks.)
I’m only a few months into my HA journey, but I do know some basics – 20 devices, have created some automations, used a few blueprints, applied a ZHA quirk, and so on.
I have a simple light automation in my front porch using a door sensor for the outside door and a motion sensor for people coming from inside. If either sensor is triggered, and if the porch is under 400 lumens, it turns on an overhead light, waits 2 minutes, and turns it off.
It’s currently that simple. It doesn’t even check if there is still motion during those 2 minutes in order to leave the light on.
What I want to add is a button to that mix, for the following:
*A single button press will turn on the light, regardless of sensors, and just leave it on (no timer). Sometimes I just want the light on in there.
- A double-press will turn the light off, and leave it that way, regardless of sensors. Sometimes I want to sit in there without the overhead light.
- A long-press will return either of the above two states back into the default, triggered by sensors and then off after 2 minutes.
I have the button integrated in HA, and can react to single/double-long presses, so I don’t need help there. But what is the smartest way to program/accomplish my plan? Should I be learning how to create a blueprint (so far I’ve only applied others)? A complex automation? Is this a place for templates, which I’m just learning now? Is there a better or simpler way?
Many thanks!