From 8180329e43eca43edda0bad7c0a8d6cdd1182fcd Mon Sep 17 00:00:00 2001 From: cjswedes Date: Tue, 24 Oct 2023 13:11:57 -0500 Subject: [PATCH] fixup! Utilize AttributeList in matter-thermo profile selection --- drivers/SmartThings/matter-thermostat/src/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/SmartThings/matter-thermostat/src/init.lua b/drivers/SmartThings/matter-thermostat/src/init.lua index 89c9c04e7b..cf15b9c9a0 100644 --- a/drivers/SmartThings/matter-thermostat/src/init.lua +++ b/drivers/SmartThings/matter-thermostat/src/init.lua @@ -217,6 +217,7 @@ local function attr_list_handler(driver, device, ib, response) for _, attr_id in ipairs (ib.data.elements or {}) do if attr_id.value == clusters.Thermostat.attributes.ThermostatRunningState.ID then local new_profile = string.gsub(device:get_field("profile_name"), "-nostate", "") + device:set_field("profile_name", new_profile) device.log.info(string.format("Updating device profile to %s.", new_profile)) device:try_update_metadata({ profile = new_profile }) return