Skip to content

Commit a508868

Browse files
committed
Add additional attribute to Inovelli VTM31-SN dimmer custom cluster
1 parent 655ff7c commit a508868

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

dashboard/src/client/models/descriptions.ts

+6
Original file line numberDiff line numberDiff line change
@@ -12235,6 +12235,12 @@ export const clusters: Record<number, ClusterDescription> = {
1223512235
"cluster_id": 305134641,
1223612236
"label": "LEDIndicatorIntensityOff",
1223712237
"type": "uint"
12238+
},
12239+
"305070342": {
12240+
"id": 305070342,
12241+
"cluster_id": 305134641,
12242+
"label": "ClearNotificationWithConfigDoubleTap",
12243+
"type": "bool"
1223812244
}
1223912245
}
1224012246
},

matter_server/common/custom_clusters.py

+29
Original file line numberDiff line numberDiff line change
@@ -385,11 +385,17 @@ def descriptor(cls) -> ClusterObjectDescriptor:
385385
ClusterObjectFieldDescriptor(
386386
Label="ledIndicatorIntensityOff", Tag=0x122F0062, Type=uint
387387
),
388+
ClusterObjectFieldDescriptor(
389+
Label="clearNotificationWithConfigDoubleTap",
390+
Tag=0x122F0106,
391+
Type=bool,
392+
),
388393
]
389394
)
390395

391396
ledIndicatorIntenstyOn: uint | None = None
392397
ledIndicatorIntensityOff: uint | None = None
398+
clearNotificationWithConfigDoubleTap: bool | None = None
393399

394400
class Attributes:
395401
"""Attributes for the Inovelli Cluster."""
@@ -440,6 +446,29 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor:
440446

441447
value: uint = 0
442448

449+
@dataclass
450+
class ClearNotificationWithConfigDoubleTap(
451+
ClusterAttributeDescriptor, CustomClusterAttributeMixin
452+
):
453+
"""ClearNotificationWithConfigDoubleTap Attribute within the Inovelli Cluster."""
454+
455+
@ChipUtility.classproperty
456+
def cluster_id(cls) -> int:
457+
"""Return cluster id."""
458+
return 0x122FFC31
459+
460+
@ChipUtility.classproperty
461+
def attribute_id(cls) -> int:
462+
"""Return attribute id."""
463+
return 0x122F0106
464+
465+
@ChipUtility.classproperty
466+
def attribute_type(cls) -> ClusterObjectFieldDescriptor:
467+
"""Return attribute type."""
468+
return ClusterObjectFieldDescriptor(Type=bool)
469+
470+
value: bool = False
471+
443472

444473
@dataclass
445474
class NeoCluster(Cluster, CustomClusterMixin):

0 commit comments

Comments
 (0)