I’ve been trying for the past couple of days to fork the Garden Hue SmartApp to work a little differently, but I am having no luck with the getting my code to work (I am having issues just setting up the menu for the install)
So I think it is time to ask for help on making the SmartApp from someone that knows the language better than myself.
What I am looking for is a SmartApp that does the following:
Pick one or more ColorControl lights as input
Pick two or more colors to change the lights to
- if no colors are chosen the app will randomly change to the available colors
Pick how often you want to cycle through the colors (the standard 5 minute,10 minute,15 minute,30 minute,1 hour, 3 hour)
Schedule on Time
- Can either:
~A set time
~Sunrise/sunset (with offset)
Schedule off Time
- Can either:
~A set time
~Sunrise/sunset (with offset)
My idea is the default will be change light every X minute/hour randomly but during holidays/occasions you can pick the colors you want to show (eg Christmas: Red/green, 4th of July Red/White/Blue)
I will keep tinkering with mine, but the learning curve is steep for this SmartApp
It is sad, just sad what this community has become. Not too long ago, if someone would post an app question would have gotten 100 ideas within an hour. I wonder if we will ever get back to helping each other. If I didn’t have to chase my tail troubleshooting ST this weekend, I would have helped. If you still need help by Monday, I’ll take a look.
Thank you for the offer, I plan on working when I have time (which isn’t too much a few hours every other day) but you have time and want to take a peek please do.’
Where I need the most help is the time base user picked color cycle or random cycle if none or selected.
I have another Piston that controls the @gardenLightsOn variable.
Note: I had to add a setHue() and a setSaturation() commands to the DTH so that I could use the “Adjust Hue” command.
Note 2: none of the “Set Hue”, “Adjust Hue”, or “Fade to Hue” CoRE commands allow for use of a variable, so I haven’t been able to randomize the colors just yet (the “Transition to Color” command does accept variables, but I can’t get that command to work and I haven’t received a response from anyone who has).