this post was submitted on 30 Sep 2025
26 points (96.4% liked)

homeassistant

16424 readers
81 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
 

Currently, I have an automation that turns on my air conditioner for 37 minutes, every 3 hours. However, during that time, I cannot do anything like update, HAOS, etc. Because it breaks the timer, and then I have to manually shut it off.

you are viewing a single comment's thread
view the rest of the comments
[–] roofuskit@lemmy.world 4 points 6 days ago

Have the script generate the time and save it as a number or other variable, have the script start when home assistant does and check the variable, if the time has passed toggle the state of the AC and generate the next run time. If it time is in the future run the script again at that time.

The logic would look something like this: Start with home assistant or at the next interval of the script Check stored time, if it has elapsed toggle the state of the AC Generate new time and store it repeat the script at that time