HA semaphore to stop automation?

I’ve got a simple automation that sets my office environment to the way I like it when motion is sensed. This is great for 90% of my workdays, but when I’m editing photos, I want different light settings. Unfortunately, my automation is too dumb to stop changing the lights when I move at my desk, forcing me to turn it off entirely. (And doesn’t that go against the whole idea of a smart home?) Is there any kind of semaphore that I can can set and use to conditionally stop my automation from executing?

Of course, I am in the process of RTFM, but the link you sent me has 15 subsections that I am in the process of rereading. However, a pointer as to which subsection to focus on would be appreciated.

The most basic method is the create an input boolean helper (Configuration>Helpers) and use the state of that boolean as a condition in your motion sensor automation. Input booleans can be switched via the frontend or by other automations and scripts.

That depends on what sensors you have available to tell home assistant you are at your desk.

Thank you. This looks like the information I am looking for. Now for more reading.

In rereading my comment, it occurs to me that my tone might appear snippy when it was an attempt at humor. Apologies if you interpreted it that way.

Just following up with a thank you! This was exactly what I needed, and I have applied it to several automations!

1 Like