this post was submitted on 27 Jan 2024
15 points (89.5% liked)

homeassistant

12051 readers
19 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 1 year 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 9 months 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] 4 points 9 months ago (1 children)

OP would be able to accomplish this in NodeRED pretty easily. It's probably pretty easy in HA too, but my brain only works with NodeRED haha.

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

Why do you love NodeRed so much?

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

I've been using HA for about 7 or 8 years (maybe longer?). Everything used to be YAML only, including automations. Now you can set up devices in the GUI, make automations in the GUI, etc., but I learned NodeRED when things weren't as streamlined. I've never bothered to learn HA automations because NodeRED is so great.

[–] [email protected] 1 points 9 months ago (1 children)

How do you feel about the progress that Home Assistant has seen while you've been using it? And looking at the climbing adoption, you must feel like a proud parent?

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

It has come a long way, absolutely.

There was a while where if you didn't check the change logs before updating, you'd likely be in for some surprises. That's pretty rare now.

I don't really feel like a proud parent because I haven't contributed much, even in the way of bug reports. I've just been along for the ride.

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

You say that, but the last update broke my thermostat with their new climate controls and also some of my lights needed switching to the light service from the switch service.

[–] [email protected] 2 points 9 months ago

The thermostat backend didn't change, just the card right? It looks different but didn't lose any functionality. Sorry you had trouble with it. I have 4 or 5 different thermostats and they never stopped working.

[–] [email protected] 1 points 9 months ago (1 children)

How did you get into NodeRed?

[–] [email protected] 2 points 9 months 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 9 months ago (1 children)

This was before the UI or recently?

[–] [email protected] 1 points 9 months ago

About 5 years ago, so probably before.