Direct HSV/RGB API Call?

Hello and welcome!
Before you get too far down this road, you might want a look at the other home automation integrations that have been done: (disclosure: I’m the author of the Hubitat Elevation integration)

Highly programmable devices like the Pixelblaze don’t fit very well into the least-common-denominator device models used by home automation systems. The approach that has worked well lately is to build as much intelligence as possible into the integration code, and let it make real-time decisions about what device features to present to the home automation interface.

For example both the Hubitat and Home Assistant integrations control on/off state and brightness, and allow changing patterns via some sort of “effect” capability supported by the home automation system. In addition, both integrations
can evaluate a pattern’s list of UI controls, see if there are any color picker controls, and then allow the home automation system to use them if they exist. So, if a pattern has color controls, the home automation user can control them. If not, the controls are disabled.

The Hubitat integration offers even tighter coupling with certain patterns – you can run a special “multisegment” pattern that lets you present the Pixelblaze to the home automation system as up to 12 independent light bulbs, each with independent colors and effects.

Keep us posted on your plugin. I’m more than happy to share code, ideas and solutions to strange problems that I encountered along the way.

2 Likes