this post was submitted on 03 Apr 2026
1 points (100.0% liked)
homeassistant
19372 readers
1 users here now
Home Assistant is open source home automation that puts local control and privacy first.
Powered by a worldwide community of tinkerers and DIY enthusiasts.
Home Assistant can be self-installed on ProxMox, Raspberry Pi, or even purchased pre-installed: Home Assistant: Installation
Discussion of Home-Assistant adjacent topics is absolutely fine, within reason.
If you're not sure, DM @GreatAlbatross@feddit.uk
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You can use trigger IDs and conditional execution to accomplish this. Not precisely your use case, but I have an automation that manages two ornamental lamps via two smart buttons: one lamp and one button on each nightstand to either side of the bed in our main bedroom.
A single click of either button toggles the lamp on that nightstand. A double click on either button turns off both lamps, and a long press on either button calls a script that turns off all the lights inside and outside the house, by area.
I use trigger IDs to tag the button events, and then use that ID in conditional action logic to toggle the lamps, turn them off, or call the shutdown service.
You can probably use trigger IDs for your upper and lower bounds to conditionally execute your air conditioner functions.
Here's the YAML, if you'd like to see how I use it.
Another idea, you could use a
wait_foraction in theturn_onaction to wait for a lower bound trigger to execute yourturn_offaction. I've used that for actions that turn on a light when motion is detected, and then wait for motion to clear before turning off the light.Really, you could peel.it a bunch of different ways, but these are trucks I've used in my automations.