Skip to content

Commit 82bbadf

Browse files
committed
Updated Matter device types to add EVSE
1 parent 60e60c4 commit 82bbadf

File tree

4 files changed

+398
-20
lines changed

4 files changed

+398
-20
lines changed

examples/energy-management-app/energy-management-common/energy-management-app.matter

+84-1
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,67 @@ cluster BasicInformation = 40 {
256256
command MfgSpecificPing(): DefaultSuccess = 0;
257257
}
258258

259+
/** Nodes should be expected to be deployed to any and all regions of the world. These global regions
260+
may have differing common languages, units of measurements, and numerical formatting
261+
standards. As such, Nodes that visually or audibly convey information need a mechanism by which
262+
they can be configured to use a user’s preferred language, units, etc */
263+
cluster LocalizationConfiguration = 43 {
264+
revision 1; // NOTE: Default/not specifically set
265+
266+
attribute access(write: manage) char_string<35> activeLocale = 0;
267+
readonly attribute char_string supportedLocales[] = 1;
268+
readonly attribute command_id generatedCommandList[] = 65528;
269+
readonly attribute command_id acceptedCommandList[] = 65529;
270+
readonly attribute event_id eventList[] = 65530;
271+
readonly attribute attrib_id attributeList[] = 65531;
272+
readonly attribute bitmap32 featureMap = 65532;
273+
readonly attribute int16u clusterRevision = 65533;
274+
}
275+
276+
/** Nodes should be expected to be deployed to any and all regions of the world. These global regions
277+
may have differing preferences for how dates and times are conveyed. As such, Nodes that visually
278+
or audibly convey time information need a mechanism by which they can be configured to use a
279+
user’s preferred format. */
280+
cluster TimeFormatLocalization = 44 {
281+
revision 1; // NOTE: Default/not specifically set
282+
283+
enum CalendarTypeEnum : enum8 {
284+
kBuddhist = 0;
285+
kChinese = 1;
286+
kCoptic = 2;
287+
kEthiopian = 3;
288+
kGregorian = 4;
289+
kHebrew = 5;
290+
kIndian = 6;
291+
kIslamic = 7;
292+
kJapanese = 8;
293+
kKorean = 9;
294+
kPersian = 10;
295+
kTaiwanese = 11;
296+
kUseActiveLocale = 255;
297+
}
298+
299+
enum HourFormatEnum : enum8 {
300+
k12hr = 0;
301+
k24hr = 1;
302+
kUseActiveLocale = 255;
303+
}
304+
305+
bitmap Feature : bitmap32 {
306+
kCalendarFormat = 0x1;
307+
}
308+
309+
attribute access(write: manage) HourFormatEnum hourFormat = 0;
310+
attribute access(write: manage) optional CalendarTypeEnum activeCalendarType = 1;
311+
readonly attribute optional CalendarTypeEnum supportedCalendarTypes[] = 2;
312+
readonly attribute command_id generatedCommandList[] = 65528;
313+
readonly attribute command_id acceptedCommandList[] = 65529;
314+
readonly attribute event_id eventList[] = 65530;
315+
readonly attribute attrib_id attributeList[] = 65531;
316+
readonly attribute bitmap32 featureMap = 65532;
317+
readonly attribute int16u clusterRevision = 65533;
318+
}
319+
259320
/** Nodes should be expected to be deployed to any and all regions of the world. These global regions
260321
may have differing preferences for the units in which values are conveyed in communication to a
261322
user. As such, Nodes that visually or audibly convey measurable values to the user need a
@@ -1627,6 +1688,27 @@ endpoint 0 {
16271688
ram attribute clusterRevision default = 3;
16281689
}
16291690

1691+
server cluster LocalizationConfiguration {
1692+
ram attribute activeLocale;
1693+
callback attribute supportedLocales;
1694+
callback attribute generatedCommandList;
1695+
callback attribute acceptedCommandList;
1696+
callback attribute eventList;
1697+
callback attribute attributeList;
1698+
ram attribute featureMap default = 0;
1699+
ram attribute clusterRevision default = 1;
1700+
}
1701+
1702+
server cluster TimeFormatLocalization {
1703+
ram attribute hourFormat;
1704+
callback attribute generatedCommandList;
1705+
callback attribute acceptedCommandList;
1706+
callback attribute eventList;
1707+
callback attribute attributeList;
1708+
ram attribute featureMap default = 0;
1709+
ram attribute clusterRevision default = 1;
1710+
}
1711+
16301712
server cluster UnitLocalization {
16311713
callback attribute generatedCommandList;
16321714
callback attribute acceptedCommandList;
@@ -1675,6 +1757,7 @@ endpoint 0 {
16751757
server cluster GeneralDiagnostics {
16761758
callback attribute networkInterfaces;
16771759
callback attribute rebootCount;
1760+
callback attribute upTime;
16781761
ram attribute testEventTriggersEnabled;
16791762
callback attribute generatedCommandList;
16801763
callback attribute acceptedCommandList;
@@ -1752,7 +1835,7 @@ endpoint 0 {
17521835
}
17531836
}
17541837
endpoint 1 {
1755-
device type ma_lightsensor = 262, version 1;
1838+
device type energy_evse = 1292, version 1;
17561839

17571840

17581841
server cluster Identify {

0 commit comments

Comments
 (0)