From ead677d148e25aeabc05ea3c58a1304fe53b136c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Sun, 1 Oct 2023 12:23:57 +0200 Subject: [PATCH] Add missing UPDATE_COMMANDS for Contact sensor (#19632) --- .../berry_matter/src/embedded/Matter_Plugin_3_Sensor_Contact.be | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_3_Sensor_Contact.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_3_Sensor_Contact.be index d420e09c469a..e4c847eadc16 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_3_Sensor_Contact.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_3_Sensor_Contact.be @@ -30,6 +30,7 @@ class Matter_Plugin_Sensor_Contact : Matter_Plugin_Device static var ARG_HINT = "Switch number" static var ARG_TYPE = / x -> int(x) # function to convert argument to the right type static var UPDATE_TIME = 750 # update every 750ms + static var UPDATE_COMMANDS = matter.UC_LIST(_class, "Contact") static var CLUSTERS = matter.consolidate_clusters(_class, { 0x0045: [0,0xFFFC,0xFFFD], # Boolean State p.70 - no writable })