From fd52aaee148d50f16b205df5c303c5b8f9db6ae1 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Mon, 5 Feb 2024 11:47:37 +0100 Subject: [PATCH] Matter add human readable names for TimeSync cluster (#20666) --- .../generate/be_matter_clusters.h | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/lib/libesp32/berry_matter/generate/be_matter_clusters.h b/lib/libesp32/berry_matter/generate/be_matter_clusters.h index 350d8b9fc..ce188476f 100644 --- a/lib/libesp32/berry_matter/generate/be_matter_clusters.h +++ b/lib/libesp32/berry_matter/generate/be_matter_clusters.h @@ -648,6 +648,38 @@ const matter_command_t matter_Commands_0037[] = { { 0xFFFF, NULL }, }; +const matter_attribute_t matter_Attributes_0038[] = { + { 0x0000, 0, 0x02, "UTCTime" }, + { 0x0001, 0, 0x02, "Granularity" }, + { 0x0002, 0, 0x02, "TimeSource" }, + { 0x0003, 0, 0x02, "TrustedTimeSource" }, + { 0x0004, 0, 0x02, "DefaultNTP" }, + { 0x0005, 0, 0x02, "TimeZone" }, + { 0x0006, 0, 0x02, "DSTOffset" }, + { 0x0007, 0, 0x02, "LocalTime" }, + { 0x0008, 0, 0x02, "TimeZoneDatabase" }, + { 0x0009, 0, 0x02, "NTPServerAvailable" }, + { 0x000A, 0, 0x02, "TimeZoneListMaxSize" }, + { 0x000B, 0, 0x02, "DSTOffsetListMaxSize" }, + { 0x000C, 0, 0x02, "SupportsDNSResolve" }, + { 0xFFF8, 0, 0x02, "GeneratedCommandList" }, + { 0xFFF9, 0, 0x02, "AcceptedCommandList" }, + { 0xFFFB, 0, 0x02, "AttributeList" }, + { 0xFFFC, 0, 0x02, "FeatureMap" }, + { 0xFFFD, 0, 0x02, "ClusterRevision" }, + { 0xFFFF, 0, 0x00, NULL }, +}; + +const matter_command_t matter_Commands_0038[] = { + { 0x0000, "SetUTCTime" }, + { 0x0001, "SetTrustedTimeSource" }, + { 0x0002, "SetTimeZone" }, + { 0x0003, "SetTimzZoneResponse" }, + { 0x0004, "SetDSTOffset" }, + { 0x0005, "SetDefaultNTP" }, + { 0xFFFF, NULL }, +}; + const matter_attribute_t matter_Attributes_0039[] = { { 0x0001, 0, 0x02, "VendorName" }, { 0x0002, 0, 0x02, "VendorID" }, @@ -1531,6 +1563,7 @@ const matter_cluster_t matterAllClusters[] = { // { 0x0035, "ThreadNetworkDiagnostics", matter_Attributes_0035, matter_Commands_0035 }, { 0x0036, "WiFiNetworkDiagnostics", matter_Attributes_0036, matter_Commands_0036 }, { 0x0037, "EthernetNetworkDiagnostics", matter_Attributes_0037, matter_Commands_0037 }, + { 0x0038, "TimeSync", matter_Attributes_0038, matter_Commands_0038 }, { 0x0039, "BridgedDeviceBasic", matter_Attributes_0039, matter_Commands_0039 }, { 0x003B, "Switch", matter_Attributes_003B, matter_Commands_003B }, { 0x003C, "AdministratorCommissioning", matter_Attributes_003C, matter_Commands_003C },