Skip to content

Commit 2cadec6

Browse files
committed
Add Philips effect cluster and enable it for Hue Go
1 parent 57bcec8 commit 2cadec6

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

zhaquirks/philips/__init__.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,3 +340,25 @@ class PhilipsRwlRemoteCluster(PhilipsRemoteCluster):
340340
3: Button("down", DIM_DOWN),
341341
4: Button("off", TURN_OFF),
342342
}
343+
344+
345+
class PhilipsEffectCluster(CustomCluster):
346+
"""Philips effect cluster."""
347+
348+
cluster_id = 0xFC03
349+
ep_attribute = "philips_effect"
350+
351+
class ServerCommandDefs(foundation.BaseCommandDefs):
352+
"""Server command definitions."""
353+
354+
set_effect: Final = foundation.ZCLCommandDef(
355+
id=0x00,
356+
schema={
357+
"param1": t.uint8_t,
358+
"param2": t.uint8_t,
359+
"param3": t.uint8_t,
360+
"param4": t.uint8_t,
361+
},
362+
direction=foundation.Direction.Client_to_Server,
363+
is_manufacturer_specific=True,
364+
)

zhaquirks/philips/hue_go.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
"""Philips Hue Go device."""
2+
3+
from zigpy.quirks.v2 import QuirkBuilder
4+
from zhaquirks.philips import PHILIPS, PhilipsEffectCluster
5+
6+
(
7+
QuirkBuilder(PHILIPS, "7602031P7")
8+
.also_applies_to(PHILIPS, "7602031U7")
9+
.replaces(PhilipsEffectCluster, endpoint_id=11)
10+
.add_to_registry()
11+
)

0 commit comments

Comments
 (0)