@mike5256 ,
SmartApp “Random lights on-off” turns ON and OFF at random Intervals, one random device in every random Interval. You can select one or various lights or devices with “swicth capability” of your location.
This APP was created as modification of the original code of public SmartThing, SmartApp “Gentle Wake Up”
I put the link to a pdf guide when explain how to use the app:
https://github.com/Mariano-Github/Smartthings-smartapp/blob/main/SmartApp%20Random%20Lights%20on-off%20guide.pdf
If you are interested, I put the links to the smartApp at end of the steps to install the App in IDE:
- Copy the SamarApp code of the link
- Open your IDE page
- click on “My SmartApps”
- Click in “+ New SmartApp”
- Click in “From Code”
- Paste the copied code in the link into the blank app
- Click “Create”
-
Click “Publish” and "For Me"
(If the device handle “Gentle Wake Up Controller” has already been published for you, the following steps are not necessary) - Click in “My Device Handlers”
- Click in “+ Create New Device Handler”
- Click in “From Code”
- Copy code from link “Gentle Wake Up Controller”
https://github.com/Mariano-Github/Smartthings-smartapp/blob/main/Gentle%20Wake%20Up%20Controller.groovy - Paste code and Click in “Create”
-
Click “Publish” and "For Me"
You are now ready to install the SmartApp in the SmartThings App as explained in the pdf guide.
In IDE “live logging” can see how calculate the next random interval and device controlled.
I have tested it a lot and it works well, if this is worth it, I’m glad.