diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_1_Device.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_1_Device.be index 4edba45e0..d4d3a7ae4 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_1_Device.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_1_Device.be @@ -191,7 +191,7 @@ class Matter_Plugin_Device : Matter_Plugin import json var val if (val := introspect.get(self, attribute)) != nil - if type(val) == 'boot' val = int(val) end # transform bool into 1/0 + if type(val) == 'bool' val = int(val) end # transform bool into 1/0 ret += f',"{key}":{json.dump(val)}' end end