Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions zhaquirks/philips/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,3 +340,25 @@ class PhilipsRwlRemoteCluster(PhilipsRemoteCluster):
3: Button("down", DIM_DOWN),
4: Button("off", TURN_OFF),
}


class PhilipsEffectCluster(CustomCluster):
"""Philips effect cluster."""

cluster_id = 0xFC03
ep_attribute = "philips_effect"

class ServerCommandDefs(foundation.BaseCommandDefs):
"""Server command definitions."""

set_effect: Final = foundation.ZCLCommandDef(
id=0x00,
schema={
"param1": t.uint8_t,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we know what these params represent?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I know they were just snooped from the Hue gateway. I've commented on the original issue where I found some additional behavior. The param1 seems to act like some kind of a command ID, and then the rest of params behave different based on that, but that's as much as I managed to observe.

"param2": t.uint8_t,
"param3": t.uint8_t,
"param4": t.uint8_t,
},
direction=foundation.Direction.Client_to_Server,
is_manufacturer_specific=True,
)
12 changes: 12 additions & 0 deletions zhaquirks/philips/hue_go.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""Philips Hue Go device."""

from zigpy.quirks.v2 import QuirkBuilder

from zhaquirks.philips import PHILIPS, PhilipsEffectCluster

(
QuirkBuilder(PHILIPS, "7602031P7")
.also_applies_to(PHILIPS, "7602031U7")
.replaces(PhilipsEffectCluster, endpoint_id=11)
.add_to_registry()
)
Loading