Lights keep coming back on


#1

1) Give a description of the problem
Light keeps turning on after its off

2) What is the expected behavior?
Light stays off

3) What is happening/not happening?
See question 1

**4) Post a Green Snapshot of the piston!


#2

FYI, you are sharing a red screenshot instead of a green one. This screenshot will share private info. I would recommend taking it down.
Your piston doesn’t really make a lot of sense. You have the same IF 3 times. What are you actually trying to accomplish?


#3

I erased the URL, that’s all I cared about.

The 3 if’s is because it still wasn’t working.

The idea here is to fade from red to blue to pink. The fade in webcore was not working right so, I used the Hue API instead.

If the light is off, don’t cycle to the next color and end the repeat.

I can’t figure out why it was not working with all these if’s in between.

I already tried a while loop and that didn’t work either.


#4

Because you’re not using it correctly. Since your if is the same, all 3 of the actions will all always happen. Take a look at some of the example pistons on the forum here. I think that would be a much better starting point.


#5

How is that possible?

It tests the if after the wait as the next logical step in the piston.

How could not be right?

How can it be true all the way through?

I think what happened is my GF wasn’t addressing the hub to turn the light off, instead she was addressing the Hue with Google Home

I may be new here but I’m certainly not new to programming.


#6

You have the same if 3 times. If the switch was on, it’s still going to be on after you change the color of the lights.
It hasn’t been shut off has it?

Also, why are you doing a Put request? Look at this info on integrating hue with SmartThings, i think that will help.


#7

As stated before, the lights in webcore are not fading to the right colors. The only thing it will do is turn on and off. So, I used the Hue API instead. It does do the color loop with my specified colors but it just doesn’t stop when told to when I tell Google Home to turn off the light strip.


#8

It was not an error after all. The Hue was not updating on ST from Google Home because it was turned off on the Hue system not the ST system.

I really do wish that the Hue stuff would work in webcore but, for now, it doesn’t.