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.

  • Admiral Patrick@dubvee.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

    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.

    • walden@sub.wetshaving.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 months ago

      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.

        • walden@sub.wetshaving.social
          link
          fedilink
          English
          arrow-up
          2
          ·
          9 months ago

          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.

          • sabreW4K3@lemmy.tfOP
            link
            fedilink
            English
            arrow-up
            1
            ·
            9 months ago

            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?

            • walden@sub.wetshaving.social
              link
              fedilink
              English
              arrow-up
              2
              ·
              9 months ago

              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.

              • sabreW4K3@lemmy.tfOP
                link
                fedilink
                English
                arrow-up
                2
                ·
                9 months ago

                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.

                • walden@sub.wetshaving.social
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  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.