[SOLVED]: ZIPATO - Bulb LED RGBW Z-Wave

Posted on
Sat Mar 25, 2017 1:18 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: [SOLVED]: ZIPATO - Bulb LED RGBW Z-Wave

After investigating this some more, it looks like the only differences between the working case (setting it via the main window UI) and the not working cast (via an action), is that the action always pushes all 5 color values to the device (RGB, W1, W2) whereas the main window UI only pushes RGB if you are changing the color swatch. So I think having the extra W1 W2 values set, even though they are being set to 0, is confusing the module.

To test this theory, set W1 and W2 to 0 in the UI (just to get it reset to a base line), then try executing the following as an embedded python script:

Code: Select all
foo = indigo.devices["Light - RGBW Garasje Master"]
indigo.dimmer.setColorLevels(foo, 100, 0, 0)
indigo.dimmer.setColorLevels(foo, 0, 100, 0)
indigo.dimmer.setColorLevels(foo, 100, 0, 0)
indigo.dimmer.setColorLevels(foo, 0, 100, 0)
indigo.dimmer.setColorLevels(foo, 100, 0, 0)
indigo.dimmer.setColorLevels(foo, 0, 100, 0)

Then try this script:

Code: Select all
foo = indigo.devices["Light - RGBW Garasje Master"]
indigo.dimmer.setColorLevels(foo, 100, 0, 0, 0)
indigo.dimmer.setColorLevels(foo, 0, 100, 0, 0)
indigo.dimmer.setColorLevels(foo, 100, 0, 0, 0)
indigo.dimmer.setColorLevels(foo, 0, 100, 0, 0)
indigo.dimmer.setColorLevels(foo, 100, 0, 0, 0)
indigo.dimmer.setColorLevels(foo, 0, 100, 0, 0)

And finally this script:

Code: Select all
foo = indigo.devices["Light - RGBW Garasje Master"]
indigo.dimmer.setColorLevels(foo, 100, 0, 0, 0, 0)
indigo.dimmer.setColorLevels(foo, 0, 100, 0, 0, 0)
indigo.dimmer.setColorLevels(foo, 100, 0, 0, 0, 0)
indigo.dimmer.setColorLevels(foo, 0, 100, 0, 0, 0)
indigo.dimmer.setColorLevels(foo, 100, 0, 0, 0, 0)
indigo.dimmer.setColorLevels(foo, 0, 100, 0, 0, 0)

My guess is the first one will flash the bulb between red and green, the last script won't, and I'm not sure what the middle one will do.

I'm also not sure if the scripts need to be changed to also set the brightness to 100 after every step?

Image

Posted on
Sun Mar 26, 2017 1:50 am
haavarda offline
User avatar
Posts: 702
Joined: Aug 18, 2012
Location: Norway

Re: [SOLVED]: ZIPATO - Bulb LED RGBW Z-Wave

Your assumptions seams to be correct Matt. The first script flashes the bulb, so does actually the second. The third does nothing.
Also if I set the brightness to 20 before running the script, the brightness does not change. So I would assume that means you have to do something brightness (or do it in the action group).
The strange thing is that all the scripts was stressing the bulb. It crashed several times, and I had to power cycle it. I was also not able to see all the color changes only 1 change on the first script, and 2 on the second.

Håvard

Who is online

Users browsing this forum: No registered users and 2 guests