I actually have 2 questions. 1, is there a way to run a piston only once per mode change (as the title suggests) and 2, how do the “only on certain days” restrictions work?
I bought a Xiaomi Robot Vacuum and I’m hacking together a way to automate it using sharptools and Tasker. I’ve created a virtual switch that sharptools will react to telling Tasker to run a task that will speak the words “Alexa, turn on/off the vacuum”. Pretty shitty but it will work. I’m trying to get the vacuum to run any time we leave the house, this is pretty easy, but also at night (on the weekends only, this is where my second question comes in). I currently have a piston that turns lights off after inactivity of 30 minutes at night, I’d like to turn the vacuum on at this time too. However, sometimes we’ll go back downstairs and the motion will kick up again, thus, triggering the piston again 30 after inactivity. I don’t want the vacuum to trigger again so I’m wondering if there is a way to restrict the vacuum part of the piston from triggering more than one time after my home has changed to “night” mode (sunset to sunrise)? Secondly, I really only want this to happen on the weekends, so, Friday and Saturday night, but sometimes activity won’t settle down til after midnight so it may be Sunday morning, any ideas what the best way to accomplish this would be?
Thank you all so much for your help!