I made a candle flicker and think I broke the Device?


#12

Honestly. Trial and error with the delays.

When you stop the VS how long before the candle stops flickering?


#14

thank you for the video. that looks really nice.

i am probably going to use this on a outdoor bulb. so, i am experimenting a little with setting the bulb temperature lo as low as possible and playing with the level and timing.


#15

Immediately. I have my lifx bulbs hooked to a ge smart switch so that turns their power completely off. However if i turn the switch off the piston tries to run for a bit, usually 30 seconds or less then stops.


#16

Here is what I am working with right now. Still a work in progress. But, it is working at the moment :sweat_smile:

There are 4 candle light pistons that get called from the main one, on for each bulb in soffit of my porch.



#17

#18

@JDogg016 thanks for the great idea. here is the one i settled on for use on halloween day outside. not quite candle flicker but more like halloween lights flicker. :slight_smile:


#19

@bangali can you look at my main piston that I posted. I know it should be sunset to 10:00 pm. The issue I am having is, when it sets the scene it saves correctly. Albeit, not as random as I would like. However when I turn on the switch for my porch, then wait 30 seconds for the lifx bulbs to connect, it does not always apply the scene correctly. Many times it will set it to the last scene they were on when they were shut off? Otherwise it is working correctly. Any ideas?


#20

try inserting a couple of seconds wait between the activate and execute piston tasks.


#21

I was JUST thinking about Halloween lighting pistons. Some awesome stuff here. Can’t wait to give to give them a shot! All my bulbs are Lifx bulbs, 25 total (a blessing and a curse). Since they are most Definitely cloud-based I wonder how the above pistons will do…there’s a pretty big delay in smartthings when it comes to showing what the bulb is actually doing. I have to use the “refresh” command in webcore often. Hmmmm…Let’s the testing and tweaking begin!


#22

not specifically for halloween but generally for any holiday light, heres another one:


#23

Hey @Gopack2! I have tested your Candle Light Effect Porch 1 and its looks pretty good. I am using it with DimmingCREE lights though (not RGB) and they are a were a little too bright so i brought the random down to 10 & 40 and 30 & 60. Cool work sir!


#24

I would like to take credit, but that’s jdoggs inspiration. :ghost:


#25

Thanks @JDogg016 for the inspiration, I got a few more things to try but I added a random low temperature to the mix to make it even more realistic. Great idea!

Edit: actually having a small issue with this, i have osram RGB tuneable white lamps they work fine for about 20 seconds then they seems to stop for a bit then carry on. I think its too much information for ST to process constantly.
@bangali is there a way to have something like, after 10 loops wait for 5 seconds then continue? My thinking is it will then give ST a small breather space to then take the next load. I then have another piston that when i change the mode back to a normal one if its come from this mode wait for 20 seconds before it fires. 20 seconds was enough last night when i tested but if i leave the flicker on for a longer time it has more of a backlog to clear and then that piston doesn’t fire correctly.


#26

Hi @Gopack2 i just learnt from me trying the temperature thing that the randoms are wrong on this level 1 is set at between 35 and 95 % and level 2 is set between 50 % and 125%. I suspect what is wanted is between 35 / 60 and 50/75? if so it needs to be (35 + random(25)) and (50 + random(25)).


#27

Thnls I will adjust and try. What I was referring to with the random though in my question to Bangali was the the random setting of the scene, in my piston with code gyytw. It sets the scen but won’t alway change accurately. It seems to get stuck on a set scene. Even though it’s suppose to be a different one.


#28

doing a long run of this kind of flickering logic will sort of freeze the light for a while. this may be helped by pairing this sort of flickering with a motion sensor where the flickering only happens for 30 or 60 secs on motion active and uses a slow long fade task otherwise then changes to flickering on the next motion and so on.

just ignore me if you have run this continuously for 30+ mins and dont see this freezing behavior happen enough to disrupt the light show.


#29

did inserting a wait after setting the scene and before executing the flickering, help?


#30

@JDogg016 - Sorry about that! Great Idea sir! Gives the front of my house a cool effect!


#31

This is what’s happening too mine but I don’t have any motion detection (untill nest protect allows it anyway, would be so good if they did) so how else could I fix it?


#32

hmm, its going to happen.

see this post:

i added the first if to manage that a bit. you will have to play around with the values on line 35 and 41. 15 iterations and 5 seconds respectively, seems to work for me.

BTW, in the first if i forgot to set i back to zero. so within the first if block also set i to zero. :slight_smile:


Make a loop for colored lights