File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff 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+ )
Original file line number Diff line number Diff line change 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+ )
You can’t perform that action at this time.
0 commit comments