Skip to content

Commit c5c2eaa

Browse files
committed
Allow RGBW channels to be controlled separately.
1 parent c34e9aa commit c5c2eaa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

inelsmqtt/protocols/cu3.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1708,11 +1708,13 @@ def create_ha_value_object(cls, device_value: DeviceValue) -> Any:
17081708
temp_in = trim_inels_status_values(device_value.inels_status_value, cls.DATA, TEMP_IN, "")
17091709

17101710
rgbw = []
1711+
rgbw_channels = []
17111712
for led in [led_1, led_2, led_3]:
17121713
r, g, b, w, y = [int(i, 16) for i in led]
17131714
rgbw.append(RGBWLight(r=r, g=g, b=b, w=w, brightness=y))
1715+
rgbw_channels.extend([SimpleLight(brightness=x) for x in [r, g, b, w, y]])
17141716

1715-
return new_object(rgbw=rgbw, temp_in=temp_in)
1717+
return new_object(rgbw=rgbw, rgbw_channels=rgbw_channels, temp_in=temp_in)
17161718

17171719
@classmethod
17181720
def create_inels_set_value(cls, device_value: DeviceValue) -> str:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name="elkoep-mqtt",
7-
version="0.2.33.beta.28",
7+
version="0.2.33.beta.29",
88
url="https://github.com/epdevlab/elkoep-mqtt",
99
license="MIT",
1010
author="Elko EP s.r.o.",

0 commit comments

Comments
 (0)