cedricboon / openhab-addons

Add-ons for openHAB 2.x
Eclipse Public License 2.0
6 stars 5 forks source link

[Velbus] [Feature] ???? Pre-Defined VMB4DC as a RGBW colour module #15

Open MDAR opened 5 years ago

MDAR commented 5 years ago

Feel free to instantly delete this, as it's just an idea and might be seen as a blurring of the line between a binding and a function of openHAB2.


Would it be possible to create an alternative Velbus Thing for a VMB4DC, where it is Pre-Defined as a RGBW colour controller, which presents just a 4 element Colourpicker channel.

https://blog.saikoled.com/post/44677718712/how-to-convert-from-hsi-to-rgb-white/amp

I have been able to create orphan colour pickers in openHAB2 and use the rule your provided to get the RGB % values, for pushing into 3 channels.

However, if the 3 channel values are changed by Velbus events, the colour picker can't be updated. (Or at least, I haven't been able to work out how)

Also, with RGBW tape (for example) being more common now, a Thing that takes the guess work out of a setup would be very useful.