Only thing is that I worry about shooting out my $60 LIFX bulbs!
Yeah, I’m using that one. The problem is getting them to turn on. I’ve yet to get CoRE to work with them. But, I haven’t had a whole lot of time to mess with them either.
Question on setting color to random, if I have the hues set to 20 percent late at night, will that get overridden by the random hsl?
Yep, perhaps use a random hue and random saturation only? I believe the latest version has $randomHue and $randomSaturation - use load attribute from variable…
Will give it a spin! Thanks!
You’ll need two loads, one for hue and one for saturation. Or you could do with the hue only… Let me know how that goes
I’m on the latest version, no $randomSaturation or $randomHue, I do see $randomColor and $randomLevel though 
What is your latest version?
maybe I haven’t published that version yet…
v0.1.131.20160805, ah, com’on publish publish lol.
v0.1.132.20160806 - Beta M1 - Added $randomSaturation
Try saving the piston first, then go back to it, you should find the two new variables.
Hey all!
I just got started in the CoRE programming… and I immediately saw a perfect use case! But I’ll need help I fear…
The idea is about modes…
I’d like to have 5 modes and have the home change between them without glitches…
The modes are pretty straight forward: Day, Night, Absent, Dinner and Watching TV…
Setting them on their own is simple, yes… but the problem comes when I need to change from dinner, absent or watching tv to day or night…
Day/night modes are dependent on the sun status… so no worries there…
Usually, I leave home in the morning and rarely arrive before sunset…
The dinner and tv modes often get started before sunset and ended well, after sunset!
how would you guys go about doing this? I saw something about global variables… Could that be the way to go?
Actually, I use ST stock routines to change my modes and then I use CoRE to run routines based on those modes triggering. Then things are set too act certain ways during the appropriate mode.
I use a combination of triggers and stock ST routines. That is, each CoRE routine/mode change uses an ST routine as a trigger, and then usually another trigger (be it time, either myself or my wife arriving home or leaving, etc). This way, I have access to manually change the routines (as stock ST routines can be made to show up on my iPhone’s ‘Today’ page as a widget) or they can be triggered by, well, the triggers. This has proven to be pretty reliable for me, with the only major failings being when ST’s clock craps out and my timers miss…
OH jackpot son. I love the Wait for False State, that is the cat’s ass.
I didn’t realize that was available.
How about something like this.
It works well for me.
Sadly, my motion sensors are Aeon Labs and their Lux sensing is a joke. Their own help desk said “they only work if the light is shining directly on the sensor.”
![]()
So really, the motion is my best bet. I just don’t want it activating in areas where we are already using the lights.
I pasted the whole rule but it was to give you an idea about the wait for false state.
I.e. get rid of your but-if and put the wait for false state, wait 5 minutes turn off.
Works great!
I have another question regarding For/Loop. My use case is a minimote triggered color loop that I have initially set for 10 cycles at 60 sec intervals for testing. I have the button hold to turn off my color loop virtual switch and to cancel any local pending tasks. Is it possible to cancel the for/loop that is currently running?


