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

Discuss how Indigo and Z-Wave work together. If you have a Z-Wave device that's not listed in the Home Automation Hardware forum or in the supported devices web app, report it here.
User avatar
matt (support)
Site Admin
Posts: 21542
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

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

Post by matt (support) »

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
User avatar
haavarda
Posts: 702
Joined: Sat Aug 18, 2012 4:40 am
Location: Norway

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

Post by haavarda »

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
Post Reply

Return to “Z-Wave”