This is great! I have a case where if I have a switch turned on, I want to turn it off again within a few seconds. I'm working on a project where I use a push solenoid to physically press the power button on my Mac Mini as part of my media center. It's an electronic power switch so I can't automate it with the usual on/off power cycle. When I tell Alexa to turn on my TV, she does so but I still have to get up and power on my Mac Mini (I know I can keep it in sleep mode and press another button or keyboard to wake it but I want to keep it off). Currently, I'm using IFTTT to turn off power to the solenoid after a switch has been turned on but it can be unreliable. When I try to set up a rule to turn off, I'm not able to because there is only a "Switches to turn off when false" option. I think I need a "Switches to turn off when true" option as well or maybe I can "Run a routine when true" option...hmm...I think I just answered my own question. I'm going to try that.
Update: OK, that works! Thanks again for your hard work, your app solved my problem brilliantly.