set a dimmer/light rgb color in python?

Posted on
Mon May 29, 2023 11:25 pm
dliccardo offline
Posts: 53
Joined: Jun 09, 2014

set a dimmer/light rgb color in python?

Is it possible to set rgb color in python?

To set brightness, for example:

indigo.dimmer.setBrightness(359549372, value = 100) #family room lights

But I see no property for color if this is an rgb bulb.... (like something equivalent to the Set RGBW Levels device action available in action group)

Posted on
Tue May 30, 2023 4:51 am
DaveL17 offline
User avatar
Posts: 6756
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: set a dimmer/light rgb color in python?

I believe what you're looking for is

Code: Select all
indigo.dimmer.setColorLevels( (DimmerDeviceCmds)arg1, (object)device [, (object)redLevel=None [, (object)greenLevel=None [, (object)blueLevel=None [, (object)whiteLevel=None [, (object)whiteLevel2=None [, (object)whiteTemperature=None [, (int)delay=0 [, (bool)suppressLogging=False [, (bool)updateStatesOnly=False]]]]]]]]]) -> None :
    Changes the red, green, blue, white levels of a color
    dimmable device with optional delay (delay) in seconds.

https://forums.indigodomo.com/viewtopic.php?t=17039

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Wed May 31, 2023 11:01 pm
dliccardo offline
Posts: 53
Joined: Jun 09, 2014

Re: set a dimmer/light rgb color in python?

yes, great, thx!

Page 1 of 1

Who is online

Users browsing this forum: brettlid and 9 guests