Skip to content
Draft
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
8 changes: 7 additions & 1 deletion zha/zigbee/cluster_handlers/manufacturerspecific.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,11 @@ class SinopeManufacturerClusterHandler(ClusterHandler):
def __init__(self, cluster: zigpy.zcl.Cluster, endpoint: Endpoint) -> None:
"""Initialize Sinope cluster handler."""
super().__init__(cluster, endpoint)

if self.cluster.endpoint.model == "TH1300ZB":
self.ZCL_INIT_ATTRS["room_temperature"] = True
return # Don't apply switch-specific attributes below

self.ZCL_INIT_ATTRS = {
"double_up_full": True,
"on_led_color": True,
Expand Down Expand Up @@ -571,9 +576,10 @@ def matches(cls, cluster: zigpy.zcl.Cluster, endpoint: Endpoint) -> bool:
"DM2550ZB",
"DM2550ZB-G2",
)
thermostats = ("TH1300ZB",)

_LOGGER.debug(
"matching sinope device to cluster handler %s", cluster.endpoint.model
)

return cluster.endpoint.model in switches
return cluster.endpoint.model in (switches + thermostats)