Skip to content
Merged
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
18 changes: 18 additions & 0 deletions dashboard/src/client/models/descriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12220,6 +12220,24 @@ export const clusters: Record<number, ClusterDescription> = {
}
}
},
"305134641": {
"id": 305134641,
"label": "InovelliCluster",
"attributes": {
"305070177": {
"id": 305070177,
"cluster_id": 305134641,
"label": "LEDIndicatorIntensityOn",
"type": "uint"
},
"305070178": {
"id": 305070178,
"cluster_id": 305134641,
"label": "LEDIndicatorIntensityOff",
"type": "uint"
}
}
},
"308149265": {
"id": 308149265,
"label": "NeoCluster",
Expand Down
73 changes: 73 additions & 0 deletions matter_server/common/custom_clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,79 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor:
value: int = 0


@dataclass
class InovelliCluster(Cluster, CustomClusterMixin):
"""Custom (vendor-specific) cluster for Inovelli - Vendor ID 4961 (0x1361)."""

id: ClassVar[int] = 0x122FFC31

@ChipUtility.classproperty
def descriptor(cls) -> ClusterObjectDescriptor:
"""Return descriptor for this cluster."""
return ClusterObjectDescriptor(
Fields=[
ClusterObjectFieldDescriptor(
Label="ledIndicatorIntensityOn", Tag=0x122F0061, Type=uint
),
ClusterObjectFieldDescriptor(
Label="ledIndicatorIntensityOff", Tag=0x122F0062, Type=uint
),
]
)

ledIndicatorIntenstyOn: uint | None = None
ledIndicatorIntensityOff: uint | None = None

class Attributes:
"""Attributes for the Inovelli Cluster."""

@dataclass
class LEDIndicatorIntensityOn(
ClusterAttributeDescriptor, CustomClusterAttributeMixin
):
"""LEDIndicatorIntensityOn Attribute within the Inovelli Cluster."""

@ChipUtility.classproperty
def cluster_id(cls) -> int:
"""Return cluster id."""
return 0x122FFC31

@ChipUtility.classproperty
def attribute_id(cls) -> int:
"""Return attribute id."""
return 0x122F0061

@ChipUtility.classproperty
def attribute_type(cls) -> ClusterObjectFieldDescriptor:
"""Return attribute type."""
return ClusterObjectFieldDescriptor(Type=uint)

value: uint = 0

@dataclass
class LEDIndicatorIntensityOff(
ClusterAttributeDescriptor, CustomClusterAttributeMixin
):
"""LEDIndicatorIntensityOff Attribute within the Inovelli Cluster."""

@ChipUtility.classproperty
def cluster_id(cls) -> int:
"""Return cluster id."""
return 0x122FFC31

@ChipUtility.classproperty
def attribute_id(cls) -> int:
"""Return attribute id."""
return 0x122F0062

@ChipUtility.classproperty
def attribute_type(cls) -> ClusterObjectFieldDescriptor:
"""Return attribute type."""
return ClusterObjectFieldDescriptor(Type=uint)

value: uint = 0


@dataclass
class NeoCluster(Cluster, CustomClusterMixin):
"""Custom (vendor-specific) cluster for Neo - Vendor ID 4991 (0x137F)."""
Expand Down