How to make sure the robot vacuum runs at most once a day?

I want the vacuum to work only when both me and my wife are at work. I plan to have an automation that triger when either of us is at work and have condition to check tgat both of us are at work. I want to make sure though that the vacuum runsat most once a day. How do you suggest doing that? Maybe have some sort of flag or counter that recalibrates to zero at midnight?How can I do that?

Create an input boolean like input_boolean.vacuum_ran_today. Then in the automation have a condition to only run the vacuum when the input boolean is off and in the action part turn the input boolean on when the vacuum starts. Then a second automation to turn off the input boolean at midnight.

1 Like

Perfect, thanks