this post was submitted on 27 Jan 2024
16 points (100.0% liked)

homeassistant

14292 readers
18 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. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 2 years ago
MODERATORS
 

I have a bunch of presence and motion sensors (like four, but shush) and when people leave rooms I would like to turn the lights off after five minutes, however if someone returns to the room before that five minutes is up, I'd like to start that countdown again. Is there a grateful way to do this that isn't me just doing if no activity for five minutes, turn off the lights, else wait five minutes and then turn off the lights. Because that's ugly, rigid and not very smart at all.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 1 year ago (2 children)

Are you doing all the logic in HA or are you using NodeRED?

I used to have a similar timer reset for my "going to bed" button that I could cancel/snooze before the events started firing. It was done in NodeRED, though, and HA just glued that logic to the UI and buttons.

[–] [email protected] 1 points 1 year ago (1 children)

How did you get into NodeRed?

[–] [email protected] 2 points 1 year ago (1 children)

I was complaining to a friend about how clunky it was to setup automations in HA, and they told me about NodeRED. lol. Haven't looked back.

[–] [email protected] 1 points 1 year ago (1 children)

This was before the UI or recently?

[–] [email protected] 1 points 1 year ago

About 5 years ago, so probably before.