From 1c1e1a7bfac60aad91f3441adaadd0ac18f87891 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Fri, 5 Jul 2024 09:41:57 +0200 Subject: [PATCH] Listen for attribute changes of OnOff cluster in appliances (#121198) --- homeassistant/components/matter/climate.py | 1 + homeassistant/components/matter/fan.py | 1 + 2 files changed, 2 insertions(+) diff --git a/homeassistant/components/matter/climate.py b/homeassistant/components/matter/climate.py index 192cb6b3bb4..713aadf5620 100644 --- a/homeassistant/components/matter/climate.py +++ b/homeassistant/components/matter/climate.py @@ -350,6 +350,7 @@ DISCOVERY_SCHEMAS = [ clusters.Thermostat.Attributes.TemperatureSetpointHold, clusters.Thermostat.Attributes.UnoccupiedCoolingSetpoint, clusters.Thermostat.Attributes.UnoccupiedHeatingSetpoint, + clusters.OnOff.Attributes.OnOff, ), device_type=(device_types.Thermostat, device_types.RoomAirConditioner), ), diff --git a/homeassistant/components/matter/fan.py b/homeassistant/components/matter/fan.py index 86f03dc7a03..8cbd24977e3 100644 --- a/homeassistant/components/matter/fan.py +++ b/homeassistant/components/matter/fan.py @@ -313,6 +313,7 @@ DISCOVERY_SCHEMAS = [ clusters.FanControl.Attributes.RockSetting, clusters.FanControl.Attributes.WindSetting, clusters.FanControl.Attributes.AirflowDirection, + clusters.OnOff.Attributes.OnOff, ), ), ]