Page 1 of 1

set a dimmer/light rgb color in python?

PostPosted: Mon May 29, 2023 11:25 pm
by dliccardo
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)

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

PostPosted: Tue May 30, 2023 4:51 am
by DaveL17
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

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

PostPosted: Wed May 31, 2023 11:01 pm
by dliccardo
yes, great, thx!