Christmas Colors Rotate


#1

Was trying to do a simple color rotation piston when a hue bulb is on. I used a similar method that worked in CORE, but it doesn’t seem to be working in WebCore. Whenever bulb is on, change from red to green each minute, and then repeat

Any thoughts?


#2

#3

Thanks. I have seen this. But there is a lot of code that I cannot understand completely. Can you think of a reason my very simple code does not work?


#4

change the if statement at the top to a while statement. delete the resume piston statement.


#5

Here is the new one. Still can’t get it to work. Wonder if it is a hue/webcore issue?


#6

so nothing happens at all?


#7

so i just hit test and it worked, otherwise it doesn’t


#8

does it not work if you turn the bulb on from off?


#9

You the man! I guess it looks for a state change?


#10

yes. its subscribed to the on :left_right_arrow: off event.


#11

Thank you for your help.