I would like to have my vacuum cleaners only run once a day when nobody is at home.
Is there an easy way to ensure that a flow is only executed once a day and then go to pause mode until a new day starts?
I can of course ensure this behavior with multiple flows and pause/unpause flows with it but I’m searching for an easy method with not so much helper flows needed.
I would think of making a conditional logic which resets everyday to 0 and when the vacuum cleaner starts updates to 1. Then check IF conditional logic = 0 THEN start vacuum cleaner ELSE do nothing
You can use timer functionality (Countdown) that will last 24 hours and will start as soon as flow will start. Until it will run, flow will not start again (use it in then condition).
Yes, this would work. I thought about this already, but also thought that maybe there is a helper app or something which does exactly this. I have some more such scenarios (like only report once a day when the battery is low or similar stuff) and I think that more people hat the requirements like I have.
Hm, let’s say on Monday I leave the house at 8 o’clock and the vacuums are started. The next day I leave at 7 o’clock, but the cleaning would not be started cause the countdown time is still greater than 0. What could work is, I set the countdown timer to
24h - $current_time =>
24h - 8 o'clock = 16h. This would ensure that the earliest time the flow could run again would be at midnight.
This sounds okay - I will try that!
last person left home
Disable flow (after 5 seconds)
Every night at 2 AM enable flow
see my answer here: I really would like to only have one flow per scenario: How to run a flow only once a day?
You’re making your life harder than needed
Last person left
Logic “vacuum countdown” IS LESS THEN 100
Start countdown timer “vacuum countdown“ to 36000
Just noticed this was already mentioned, nvm
Would for sure not use a timer, thats runs for hours. So i would go for the option mention by @Hannes85
Ofcourse it wouldnt be a problem to have 1 timer running, but if you would have several timers running at the same time… homey performens could be getting worse as normal
I’ve made a feature request once for a condition card:
“When this flow had not run today”
But never heard again.
I’ve use a variabele and better logic for that.
Come on, its just a timer, not a moon landing calculation
Like i said 1 wouldnt be a problem but its also my personal thought about it. If people want a timer running for hours and hours, i really dont care.
Its just to often that i think that lot of problems with slowly homeys is a part of wrong flows, like that flows running when not needed, etc etc
But ey thats my thoughts
I had a similar question where I wanted a text and voice reminder to get the trash outside. Made a movement alarm that checks a logic where the day is not the current day. It will flip the logic card at the end of the flow.
That is a nice trick! Will definitely try this out
Nope, but Homey has to keep counting for 24 hours. Thus use processor capacity and memory to keep track. If you make several flows with such a long timer… Fill in the blanks. But don’t expect to get them filled in very fast…
Then the Countdown is buggy. Countdown timers should not use much cpu power, and even less memory. Though I found the way to use the current date much more elegant.