RGBW Controller: Automatically Switching Off White Channel with Color Picker

Hey everyone, I’m Peter, and I’m currently working with an MDT LED Controller for RGBW on the KNX bus. I wanted to share my journey and see if anyone has encountered a similar issue or has some insights to offer.

So, the setup: my controller supports color settings via an RGBW 6-byte color object in DPT 251.600. However, I found that the KNX binding didn’t support this DPT, so I had to resort to using the RGB 3-byte color object in DPT 232.600. This works well for the RGB functionality, but the Tunable White feature, which uses a slider for color temperature, is handled separately.

Here’s the challenge: when I activate Tunable White first and then adjust the color via the color picker, the White channel remains active. Since the White channel is much brighter, the RGB adjustments aren’t very noticeable. Ideally, I’d like the White channel to automatically switch off when using the color picker.

I thought about creating a rule to handle this, but I’m not sure how to trigger it without causing unintended side effects. For example, if the RGB channels are adjusted while changing the color temperature for white light, I don’t want the White channel to turn off. It needs to stay on in that case.

I’m an absolute beginner when it comes to rules, so I’m not even sure where to start. I have OpenHAB 3 up and running, along with JSR223 with Jython and the helper libraries. I’m wondering if my approach is even the best way to solve this problem or if there’s a smarter way to handle it.

If anyone has experience with similar setups or knows how to craft a rule that would achieve this, I’d be incredibly grateful for your guidance. Let’s see if we can crack this together! :rocket: