Run an action only if a switch has been on for a certain amount of time?


#1

Hi. So, I just got a new vacuum cleaner and I’d like it to run whenever someone has been at my home for more than 3 hours (this has a background logical explanation I’ll avoid :stuck_out_tongue:)

There’s a switch that’s going to be turned on when anyone that isn’t logged as a SmartThings family member comes home, and it’s going to be turned off when they leave.

I would like my Neato vacuum cleaner to start when the switch is turned off, but only if it was turned on more than 3 hours ago. I don’t know which would be the right way to do this, so any help is appreciated!

Thanks!
Rodrig


#2

Yes it’s simple

IF i need to vacuum after a guest
then
Seek help

LOL only kidding - I am just like you my friend I hear you:))

how about - since you have switch -
IF swith status changes to OFF (trigger)
AND
IF switch was ON for Atleast 3 hours (condition)
then
Start cleaner


#3

Actually it’s kind of worse, this is specifically thought for cleaning after the cleaning lady leaves (!!). I used to ask her to vacuum after mopping, because the mop leaves some small debris, but now that I have the robot I’d like her to use this time on something else :crazy_face:

Thanks for your help, I was expecting something easy like this but didn’t know how to make it happen!