From 1014cdff50b590536fd00f684f83a76fcb0ba983 Mon Sep 17 00:00:00 2001 From: senna1992 <149412175+senna1992@users.noreply.github.com> Date: Sun, 1 Sep 2024 01:30:29 +0200 Subject: [PATCH 1/2] Correct Color Channel association streamlined with wrgb universal. --- .../chihiros/chihiros_led_control/device/wrgb2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/custom_components/chihiros/chihiros_led_control/device/wrgb2.py b/custom_components/chihiros/chihiros_led_control/device/wrgb2.py index b166a6d..f5932c3 100644 --- a/custom_components/chihiros/chihiros_led_control/device/wrgb2.py +++ b/custom_components/chihiros/chihiros_led_control/device/wrgb2.py @@ -9,8 +9,8 @@ class WRGBII(BaseDevice): _model_name = "WRGB II" _model_codes = ["DYNWRGB", "DYNW30", "DYNW45", "DYNW60", "DYNW90", "DYNW12P"] _colors: dict[str, int] = { - "white": 0, - "red": 1, - "green": 2, - "blue": 3, + "white": 3, + "red": 0, + "green": 1, + "blue": 2, } From cb00dfac4005280a979812f6b4897a1a81e78fdb Mon Sep 17 00:00:00 2001 From: Michael Dietrich Date: Sun, 1 Sep 2024 11:31:21 +0200 Subject: [PATCH 2/2] fix colors for wrgb 2 slim --- .../chihiros/chihiros_led_control/device/wrgb2_slim.py | 8 ++++---- custom_components/chihiros/manifest.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/custom_components/chihiros/chihiros_led_control/device/wrgb2_slim.py b/custom_components/chihiros/chihiros_led_control/device/wrgb2_slim.py index 71e35e1..eb31ba7 100644 --- a/custom_components/chihiros/chihiros_led_control/device/wrgb2_slim.py +++ b/custom_components/chihiros/chihiros_led_control/device/wrgb2_slim.py @@ -9,8 +9,8 @@ class WRGBIISlim(BaseDevice): _model_name = "WRGB II Slim" _model_codes = ["DYSILN"] _colors: dict[str, int] = { - "white": 0, - "red": 1, - "green": 2, - "blue": 3, + "white": 3, + "red": 0, + "green": 1, + "blue": 2, } diff --git a/custom_components/chihiros/manifest.json b/custom_components/chihiros/manifest.json index cfa2c8b..82766a1 100644 --- a/custom_components/chihiros/manifest.json +++ b/custom_components/chihiros/manifest.json @@ -74,5 +74,5 @@ "requirements": [ "typer[all]==0.9.0" ], - "version": "0.6.0" + "version": "0.6.1" }