Help appreciated on roomba daily minutes counter


#1

1) Give a description of the problem

I have my Roomba connected to ST via IFTTT - works a treat. When the Housemode goes to “away” it triggers both a simulated switch for actiontiles and manual access aswell as the webhook to start roomba.

I do not know how to improve that piston by adding some kind of a daily counter that sums up all roomba-minutes resulting from several short “aways” and not start anptjer roomba journey once that total has been reached.

2) What is the expected behavior?

Sum up daily roomba-minutes and NOT start another cleaning cycle once one full hour is reached

**3) Post a Green Snapshot of the piston![


#2

I modified a test piston of mine to the one below, see if you can incorporate it with your piston.
timeLimit is in milliseconds, right now it’s only set to 10 minutes while I was testing it.
totalOn resets at midnight, I didn’t account for when your mode change happens at midnight or something like that :slight_smile:
timeLeft will be used to run a timer that will turn off the switch… if it’s the first run, then the timer will go on for 10 minutes (or whatever limit you set), if not, it will use whatever time is left to turn off the switch.


#3

You rock! Thnx! Will play with it over the weekend but looks exactly like what I was looking for…

Dominik