Skip to content

Commit b42691c

Browse files
authored
WeatherTrend
1 parent d3810bf commit b42691c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

matter_server/common/custom_clusters.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,28 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor:
327327

328328
value: float32 = 0
329329

330+
331+
@dataclass
332+
class WeatherTrend(ClusterAttributeDescriptor, CustomClusterAttributeMixin):
333+
"""WeatherTrend Attribute within the Eve Cluster."""
334+
335+
@ChipUtility.classproperty
336+
def cluster_id(cls) -> int:
337+
"""Return cluster id."""
338+
return 0x130AFC01
339+
340+
@ChipUtility.classproperty
341+
def attribute_id(cls) -> int:
342+
"""Return attribute id."""
343+
return 0x130A0015
344+
345+
@ChipUtility.classproperty
346+
def attribute_type(cls) -> ClusterObjectFieldDescriptor:
347+
"""Return attribute type."""
348+
return ClusterObjectFieldDescriptor(Type=int)
349+
350+
value: int = 0
351+
330352
@dataclass
331353
class ValvePosition(ClusterAttributeDescriptor, CustomClusterAttributeMixin):
332354
"""ValvePosition Attribute within the Eve Cluster."""

0 commit comments

Comments
 (0)