Skip to content

Commit

Permalink
add experimental support for c2 rgb
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMicDiet committed Jun 15, 2024
1 parent 134b1c0 commit 68eae9c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from ..exception import DeviceNotFound
from .a2 import AII
from .base_device import BaseDevice
from .c2rgb import CIIRGB
from .fallback import Fallback
from .tiny_terrarium_egg import TinyTerrariumEgg
from .wrgb2 import WRGBII
Expand Down Expand Up @@ -44,6 +45,7 @@ async def get_device_from_address(device_address: str) -> BaseDevice:
"AII",
"WRGBII",
"WRGBIIPro",
"CIIRGB",
"FallBack",
"BaseDevice",
"RGBMode",
Expand Down
15 changes: 15 additions & 0 deletions custom_components/chihiros/chihiros_led_control/device/c2rgb.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""CII RGB device Model."""

from .base_device import BaseDevice


class CIIRGB(BaseDevice):
"""Chihiros WRGB II device Class."""

_model_name = "CII RGB"
_model_code = ["DYNCRGP"]
_colors: dict[str, int] = {
"red": 0,
"green": 1,
"blue": 2,
}
6 changes: 5 additions & 1 deletion custom_components/chihiros/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
"local_name": "DYWPRO*",
"connectable": true
},
{
"local_name": "DYNCRGP*",
"connectable": true
},
{
"service_data_uuid": "6e400001-b5a3-f393-e0a9-e50e24dcca9e",
"connectable": true
Expand All @@ -54,5 +58,5 @@
"requirements": [
"typer[all]==0.9.0"
],
"version": "0.2.4"
"version": "0.3.0"
}

0 comments on commit 68eae9c

Please sign in to comment.