Control RGB Leds via JSON command
Posted: Thursday 12 January 2017 13:31
Hi all,
I've recently switched to Domoticz from Openhab, so still early days finding my way around the interface etc.
I'm currently trying to add my RGB lights into Domoticz, these lights are WS2801 hooked up to Hyperion software on some Pi Zero's - I can set the lights to any color via sending a JSON message to the relevant light;
{"color":[36,34,96],"command":"color","priority":100}
What I'm trying to figure out is how I tie this to the Domoticz GUI - can anyone provide some clues as to how I get an RGB 'picker' device into the 'Switches' section of the web gui, and then pass the 'picked' RGB (or on/off status) to a script which can do the JSON post?
I can probably figure out the script part, it's just how I get the picker and the values from it!
Thanks
I've recently switched to Domoticz from Openhab, so still early days finding my way around the interface etc.
I'm currently trying to add my RGB lights into Domoticz, these lights are WS2801 hooked up to Hyperion software on some Pi Zero's - I can set the lights to any color via sending a JSON message to the relevant light;
{"color":[36,34,96],"command":"color","priority":100}
What I'm trying to figure out is how I tie this to the Domoticz GUI - can anyone provide some clues as to how I get an RGB 'picker' device into the 'Switches' section of the web gui, and then pass the 'picked' RGB (or on/off status) to a script which can do the JSON post?
I can probably figure out the script part, it's just how I get the picker and the values from it!
Thanks