Is there a way to set up the Smart things hub to randomly turn on Lights and things while away. Or do I need to set up a Routine for each light and and outlet. I want to give it an appearance that some one my be home.
There are a couple of custom smart apps that can do this, including the popular āvacation light director.ā
If you havenāt used custom code with smartthings before, itās pretty straightforward. Basically you copy someone elseās code and paste it into your account. Hereās the FAQ for that process:
If after looking that over it sounds like something youād like to try, you can check the quick browse list for ālightingā under smart apps in the community created wiki and see the various custom code that community members have contributed. āVacation Light directorā should be in there.
I use the CoRE app to do this for me.
Hereās a screenshot.
Works well for me and you can set how long the lights are on for and the 'randomness ā according.
Hereās my CoRE version for away/vacation lighting that randomly selects one of three lights to turn on/off:
Hey, howād you get it to be āimmediatelyā for your variable setting? I canāt figure it out!
Vacation Lighting Director SmartApp is available from Automations>SmartApps>Add a SmartApp>Lights and Switches.
Mmmmm ā¦ thatās a REALLY old version of my Away Lighting ā¦ I didnāt even recognize it since I completely rewrote it, LOL. I donāt think āFollow up with pistonā is even a valid wecCoRE command anymore ā¦
Would you need able to post a backup of your updated piston so it can be imported?
Thank you!
Hi. I donāt see the vacation lighting director in this path you specified. do i have to install something to get it to show up?
Itās in Marketplace not Automations then follow as directed
Thanks, Bob. I went to marketplace>smartapps>lights&switches but i dont see it there either. I then scoured the entire marketplace smartapps section and i still dont see vacation lighting director. this should be simple, but iām feeling a bit defeated by this
Thank you for helping me confirm iām not crazy. i wouldnāt begin to know how to use code with smartthings. can you provide me with a n00b instruction page i can review to get it setup? btw, thanks for taking the time to help.
Bob - forgive me for the dumb question but can you tell me how to import this into my WebCore? Not done it before.
When creating a new piston, select the option RESTORE A PISTON USING BACKUP CODE.
Use the code at the top of the piston. x8z6x.
Thank you.
I found it googling. Here is the GitHub link: https://github.com/imnotbob/vacation-lighting-director/blob/master/smartapps/imnotbob/vacation-lighting-director.src/vacation-lighting-director.groovy