Setting Color in a python script
Posted: Monday 15 November 2021 16:59
Hello,
I'm writing a python script by using the i"mport DomoticzEvents" statement to interact with the Domoticz commands and variable.
However I didn't find the way to set Light Colors.
here after is the python3 script store in scripts/python
I would like to set at the same time the color of the Led, how can I do that ? Color like "{ bri: 100, color: '{m: 2, RGB: 000000, CWWW: 05fa, CT: 250}"
I'm writing a python script by using the i"mport DomoticzEvents" statement to interact with the Domoticz commands and variable.
However I didn't find the way to set Light Colors.
here after is the python3 script store in scripts/python
Code: Select all
import DomoticzEvents as Dz
Dz.Command( "Led #1 Bureau", 'On FOR 10')