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.

  • maxgyver@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    hi logically i thing you are on the right track. A timer is defiantly the right way to go. You can try my blueprint for your automation. Hope it helps

    • SolidGrue@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Hey, this is pretty cool! I need to study this, I’m trying to get the idea of blueprints into my head.

    • sabreW4K3OP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Thank you, I imported it and plan to learn from it.