Allow rule to fire up only once a day

Want to integrate a vacuum cleaner. So let’s say we have a trigger for time and condition that nobody is home like below. I’m checking every hour that nobody is home. But let’s say nobody is home whole day… So every hour HA will send a clean command which will drive roomba nuts…

  trigger:
    platform: time
    minutes: 5
    seconds: 00
  condition:
    condition: and
    conditions:
      - condition: time
        after: 8:00:00
        before: 17:00:00
        weekday:
          - mon
          - tue
          - wed
          - thu
          - fri

I would go for an input_boolean.

  • Set it to False every morning at 00:01
  • Add a condition input_boolean is false
  • Set it to true when you start the vacuum cleaner

Great idea!

1 Like