Last night, I couldn’t get to sleep so I decided to write a SmartApp. This SmartApp is based on “The Useless Box”. A device that when a switch is turned on, an arm will pop out and turn off the switch.
This SmartApp will turn off a switch when it’s turned on, after a delay (Default 2 seconds).
Github Installation (recommended, easier to update):
For easier updating, add the GitHub repository in your IDE account:
Go the the “My SmartApps” section of the IDE.
Click “New SmartApp”
Click “From Code" and paste in the code from the GitHub link. Click Create.
Click Publish > For Me.
The SmartApp is ready for use! It’ll be in the “My Apps” Section of the App.
I’m a senior in High School. Automating my house has been a passion of mine for awhile now. Everything I’ve automated was paid for with my part-time job. Please donate with the link below. Every little bit helps! https://www.paypal.me/ajpri/
lol, no. Although, That would be a great project. Trigger the useless box from SmartThings. I have a ThingShield and will take a look into that.
That actually got me thinking. It could actually be useful. Keep X device on for only Y Time. Although, there’s already a published SmartApp for that (Power Allowance). This just allows it to only be on for a short period (seconds).
While that would be funny, I am a big fan of contribution. I’ll only pull code if it’s literally useless with little to no hope. Even then, I’ll still find a way.
Dude, he is a high schooler, applaud his spirit, don’t crush it! @ajpri keep on rocking, you have a bright future ahead and don’t take harsh criticism at heart. Life is full of surprises, some good some not so good. Look forward seeing other projects you may be working on in the future. Great work!
I never said it doesn’t have an application, I said the same effect can be easily achieved using Smart Ligting (not Rule Machine, btw). But @ajpri is right, Smart Lighting does not allow you to set a delay, so I stand corrected.
Damn, now you gave me one more reason to hate Smart Lighting.
To address a few things said:
This SmartApp wasn’t designed to do anything. I believe there’s 2 types of programming: Problem-solving and fun. I’ll go ahead and say that this week hasn’t been the best week - a few SmartApps I’m best inspired by were withdrawn. I wanted to make it better by having a little fun on the community. The idea for this SmartApp came after a late-evening discussion on the Slack community about April Fool’s nonsense. I couldn’t sleep and coded it in less than 5 minutes. Decided to publish it the next morning.
It is true that I’m probably one of the youngest involved on the Community. I have decided to pursue a career in the Internet of Things. It’s really awesome that Sci-Fi is becoming a reality. I agree that it is great that I’m young and already working hard, however there are a few downsides. I haven’t been too active since I have to balance a busy school day, a part-time job, and just being a teenager.
My personal Smart Home efforts have been 100% on me. Everything I currently own was selected and paid for by me. I just tell my parents to use what I set up. Admittingly, I don’t have the best paying part-time job. However, in everything I do, I have passion. Home Automation, work, school, you name it - I’m passionate.
I have learned quite a bit and am still withholding some of my bigger projects until I can get them perfected to where I feel confident releasing them to the community. I won’t release something until I ensure it’s working properly. I read every bit of feedback and I truly care. I have many ideas on how to change the world and can’t wait to see what the future holds.