diff --git a/zha/application/platforms/number/__init__.py b/zha/application/platforms/number/__init__.py index 097c0e9d..1da95fa6 100644 --- a/zha/application/platforms/number/__init__.py +++ b/zha/application/platforms/number/__init__.py @@ -868,7 +868,7 @@ class SonoffThermostatLocalTempCalibration(ThermostatLocalTempCalibration): @CONFIG_DIAGNOSTIC_MATCH( - cluster_handler_names=CLUSTER_HANDLER_OCCUPANCY, models={"SNZB-06P"} + cluster_handler_names=CLUSTER_HANDLER_OCCUPANCY, models={"SNZB-06P", "SNZB-03P"} ) class SonoffPresenceSenorTimeout(NumberConfigurationEntity): """Configuration of Sonoff sensor presence detection timeout.""" diff --git a/zha/application/platforms/select.py b/zha/application/platforms/select.py index d0c7d09d..10129665 100644 --- a/zha/application/platforms/select.py +++ b/zha/application/platforms/select.py @@ -704,7 +704,7 @@ class SonoffPresenceDetectionSensitivityEnum(types.enum8): @CONFIG_DIAGNOSTIC_MATCH( - cluster_handler_names=CLUSTER_HANDLER_OCCUPANCY, models={"SNZB-06P"} + cluster_handler_names=CLUSTER_HANDLER_OCCUPANCY, models={"SNZB-06P", "SNZB-03P"} ) class SonoffPresenceDetectionSensitivity(ZCLEnumSelectEntity): """Entity to set the detection sensitivity of the Sonoff SNZB-06P.""" diff --git a/zha/zigbee/cluster_handlers/helpers.py b/zha/zigbee/cluster_handlers/helpers.py index 21ec8b5e..e34238b4 100644 --- a/zha/zigbee/cluster_handlers/helpers.py +++ b/zha/zigbee/cluster_handlers/helpers.py @@ -20,4 +20,4 @@ def is_sonoff_presence_sensor(cluster_handler: ClusterHandler) -> bool: """Return true if the manufacturer and model match known Sonoff sensor models.""" return cluster_handler.cluster.endpoint.manufacturer in ( "SONOFF", - ) and cluster_handler.cluster.endpoint.model in ("SNZB-06P",) + ) and cluster_handler.cluster.endpoint.model in ("SNZB-06P", "SNZB-03P")