Skip to content

Commit

Permalink
add support for universal wrgb
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMicDiet committed Jul 12, 2024
1 parent 68eae9c commit 74bce90
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from .c2rgb import CIIRGB
from .fallback import Fallback
from .tiny_terrarium_egg import TinyTerrariumEgg
from .universal_wrgb import UniversalWRGB
from .wrgb2 import WRGBII
from .wrgb2_pro import WRGBIIPro

Expand Down Expand Up @@ -46,6 +47,7 @@ async def get_device_from_address(device_address: str) -> BaseDevice:
"WRGBII",
"WRGBIIPro",
"CIIRGB",
"UniversalWRGB",
"FallBack",
"BaseDevice",
"RGBMode",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"""Universal WRGB device Model."""

from .base_device import BaseDevice


class UniversalWRGB(BaseDevice):
"""Universal WRGB device Class."""

_model_name = "Universal WRGB"
_model_codes = [
"DYU550",
"DYU600",
"DYU700",
"DYU800",
"DYU920",
"DYU1000",
"DYU1200",
"DYU1500",
]
_colors: dict[str, int] = {
"red": 0,
"green": 1,
"blue": 2,
"white": 3,
}
6 changes: 5 additions & 1 deletion custom_components/chihiros/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
"local_name": "DYNCRGP*",
"connectable": true
},
{
"local_name": "DYU*",
"connectable": true
},
{
"service_data_uuid": "6e400001-b5a3-f393-e0a9-e50e24dcca9e",
"connectable": true
Expand All @@ -58,5 +62,5 @@
"requirements": [
"typer[all]==0.9.0"
],
"version": "0.3.0"
"version": "0.4.0"
}

0 comments on commit 74bce90

Please sign in to comment.