From 2ad6353a2dda459fd40b3b56ca904c037da0a23f Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Mon, 2 Oct 2023 22:00:55 +0200 Subject: [PATCH] Matter improve error message for MtrUpdate (#19644) --- lib/libesp32/berry_matter/src/embedded/Matter_Device.be | 2 +- .../berry_matter/src/solidify/solidified_Matter_Device.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Device.be b/lib/libesp32/berry_matter/src/embedded/Matter_Device.be index 3e2439d2333d..64915824aeb7 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Device.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Device.be @@ -1596,7 +1596,7 @@ class Matter_Device for k: payload_json.keys() var cleaned_command_idx = tasmota.find_list_i(uc, k) if (cleaned_command_idx == nil) - tasmota.resp_cmnd_str(f"Invalid command '{payload_json[k]}'") + tasmota.resp_cmnd_str(f"Invalid attribute '{k}'") return end cmd_cleaned[uc[cleaned_command_idx]] = payload_json[k] diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Device.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Device.h index c495049d4f0f..64b35f2bbd9f 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Device.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Device.h @@ -4769,7 +4769,7 @@ be_local_closure(Matter_Device_MtrUpdate, /* name */ /* K14 */ be_nested_str_weak(consolidate_update_commands), /* K15 */ be_nested_str_weak(keys), /* K16 */ be_nested_str_weak(find_list_i), - /* K17 */ be_nested_str_weak(Invalid_X20command_X20_X27_X25s_X27), + /* K17 */ be_nested_str_weak(Invalid_X20attribute_X20_X27_X25s_X27), /* K18 */ be_nested_str_weak(stop_iteration), /* K19 */ be_nested_str_weak(update_virtual), /* K20 */ be_nested_str_weak(state_json), @@ -4869,7 +4869,7 @@ be_local_closure(Matter_Device_MtrUpdate, /* name */ 0x8C341B01, // 0055 GETMET R13 R13 K1 0x603C0018, // 0056 GETGBL R15 G24 0x58400011, // 0057 LDCONST R16 K17 - 0x9444080B, // 0058 GETIDX R17 R4 R11 + 0x5C441600, // 0058 MOVE R17 R11 0x7C3C0400, // 0059 CALL R15 2 0x7C340400, // 005A CALL R13 2 0xA8040001, // 005B EXBLK 1 1