Need Help with creating a maybe impossible Piston


#1

When I say need help I mean I am lost!!!

Need help making a piston, and not sure whare to start. Below is my install and the problem needing solving.

I have a ZigBee White Color Temperature Bulb installed on a switched circuit. If someone accidentally turns off the switch the light shows offline in IOS app. If I use the App to change the color of the lamp it goes back online. I would like a piston to somehow adjust that slider for color every few minutes to avoid it going offline. The reason is that when the switch comes back on it doesn’t go to the daylight setting, which means I have to use the app to get it back to daylight.

I am unable to remove the switch do to code, and can’t block it from turning off for the same reasons. So a Piston that would by time change the color of the lamp would solve the problem. Any help would be appreciated.


#2

I’m trying to make sure I understand your situation, you have a zigbee lightbulb capable of full color and it’s installed in a socket which is switched. By switched I’m interpreting that as a ‘dumb’ switch ie normal wall switch. Is that correct? If that is correct I’m failing to see how the light would come back on from that, did you mean it wasn’t waking up in the app if the switch was turned back on? If that’s what your trying to do I have 2 things you could try. First would be a script like so…

image

You could also change refresh to one of the other options like setting color and temp etc.

My other suggestion is a custom DTH, I use an older version of this one: https://community.smartthings.com/t/updated-osram-lightify-rgbw-a19-br30-us-version-ha-dth/57774

From the app you can set it to change colors on a schedule, pulse, fade in and out and several others. If this works for you there would be no need to have a script in theory.


#3

OK, yes it is a dumb switch. And it does go back on when the switch is turned on. The problem is in the IOS app showing offline. When offline I can make it show online by moving the color slider to daylight, and it goes online at once. Does that help?


#4

I am also trying the custom DTH. I will see which works. Thanks.The DTH works for putting the color to daylight, will see if it goes offline. I am hoping the combo of the WeBCoRE Piston and the DTH will work. I will let you know.


#5

Yeah let me know, I have a couple of Sylvania RGBW light strips and a bulb or two and it can be frustrating when they power cycle cause they default to come back on with a white color. After the n-teenth time this happened I made a script that simply watched for it to come back on and set the color where I want it.


#6

just to clarify, if the switch is turned off and then you use the app to change the color of the bulb, it doesn’t turn on or go back online? or does it?

thanks!


#7

Before using the DTH suggested if the switch went off the unit would go offline. But if the switch went on after it was offline it would still turn on at the default “Warm White” setting. But now with the DTH change it doesn’t go offline and goes on and off with the settings I want which right now is “Cool White”. So it is a success.

Now to be honest I am not sure if the DTH is what is keeping it online or the Piston, or maybe both.https://community.webcore.co/uploads/default/original/1X/884e9f947e3a483b82f0f50c39e713a02d2ca0ad.jpg