Skip to content

Commit 9843eda

Browse files
Update XML by new version ADOC
1 parent c28866e commit 9843eda

File tree

4 files changed

+40
-38
lines changed

4 files changed

+40
-38
lines changed

src/app/zap-templates/zcl/data-model/chip/energy-calendar-cluster.xml

+37-35
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
<?xml version="1.0"?>
22
<!--
33
Copyright (c) 2024 Project CHIP Authors
4+
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.
67
You may obtain a copy of the License at
8+
79
http://www.apache.org/licenses/LICENSE-2.0
10+
811
Unless required by applicable law or agreed to in writing, software
912
distributed under the License is distributed on an "AS IS" BASIS,
1013
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -44,6 +47,20 @@ limitations under the License.
4447
<item name="High" value="0x03"/>
4548
</enum>
4649

50+
<struct name="CalendarPeriodStruct" apiMaturity="provisional">
51+
<cluster code="0x009A"/>
52+
<item fieldId="0" name="StartDate" type="epoch_s" isNullable="true"/>
53+
<item fieldId="1" name="Days" array="true" type="DayStruct" length="7" minLength="1"/>
54+
</struct>
55+
56+
<struct name="DayStruct" apiMaturity="provisional">
57+
<cluster code="0x009A"/>
58+
<item fieldId="0" name="Date" type="DateStruct" optional="true"/>
59+
<item fieldId="1" name="DaysOfWeek" type="TransitionDayOfWeekBitmap" optional="true" min="0x00" max="0x7F"/>
60+
<item fieldId="2" name="Transitions" array="true" type="TransitionStruct" length="48" minLength="1"/>
61+
<item fieldId="3" name="CalendarID" type="int32u" optional="true"/>
62+
</struct>
63+
4764
<struct name="PeakPeriodStruct" apiMaturity="provisional">
4865
<cluster code="0x009A"/>
4966
<item fieldId="0" name="Severity" type="PeakPeriodSeverityEnum" min="0x00" max="0x03"/>
@@ -60,55 +77,40 @@ limitations under the License.
6077
<item fieldId="3" name="AuxiliaryLoad" type="AuxiliaryLoadBitmap" optional="true" min="0x00" max="0xFF"/>
6178
</struct>
6279

63-
<struct name="DayStruct" apiMaturity="provisional">
64-
<cluster code="0x009A"/>
65-
<item fieldId="0" name="Date" type="DateStruct" optional="true"/>
66-
<item fieldId="1" name="DaysOfWeek" type="TransitionDayOfWeekBitmap" optional="true" min="0x00" max="0x7F"/>
67-
<item fieldId="2" name="Transitions" type="TransitionStruct" array="true" length="48" minLength="1"/>
68-
<item fieldId="3" name="CalendarID" type="int32u" optional="true"/>
69-
</struct>
70-
71-
<struct name="CalendarPeriodStruct" apiMaturity="provisional">
72-
<cluster code="0x009A"/>
73-
<item fieldId="0" name="StartDate" type="epoch_s" isNullable="true"/>
74-
<item fieldId="1" name="Days" type="DayStruct" array="true" length="7" minLength="1"/>
75-
</struct>
76-
7780
<cluster>
78-
<name>Energy Calendar</name>
7981
<domain>Energy Management</domain>
82+
<name>Energy Calendar</name>
8083
<code>0x009A</code>
8184
<define>ENERGY_CALENDAR_CLUSTER</define>
85+
<description/>
8286
<client init="false" tick="false">true</client>
83-
<server init="false" tick="false">true</server>
84-
<description>The Energy Calendar Cluster provides a mechanism for communicating schedules associated with various forms of energy consumption.</description>
85-
<globalAttribute side="either" code="0xFFFD" value="3"/>
8687
<features>
87-
<feature apiMaturity="provisional" bit="0" code="PTIER" name="PricingTier" summary="Supports information about pricing tiers">
88+
<feature bit="0" code="PTIER" name="PricingTier" summary="Supports information about pricing tiers">
8889
<optionalConform choice="a" more="true" min="1"/>
8990
</feature>
90-
<feature apiMaturity="provisional" bit="1" code="FCRED" name="FriendlyCredit" summary="Supports information about when friendly credit periods begin and end">
91+
<feature bit="1" code="FCRED" name="FriendlyCredit" summary="Supports information about when friendly credit periods begin and end">
9192
<optionalConform choice="a" more="true" min="1"/>
9293
</feature>
93-
<feature apiMaturity="provisional" bit="2" code="AUXLD" name="AuxiliaryLoad" summary="Supports information about when auxiliary loads should be enabled or disabled">
94+
<feature bit="2" code="AUXLD" name="AuxiliaryLoad" summary="Supports information about when auxiliary loads should be enabled or disabled">
9495
<optionalConform choice="a" more="true" min="1"/>
9596
</feature>
96-
<feature apiMaturity="provisional" bit="3" code="PEAKP" name="PeakPeriod" summary="Supports information about peak periods">
97+
<feature bit="3" code="PEAKP" name="PeakPeriod" summary="Supports information about peak periods">
9798
<optionalConform/>
9899
</feature>
99100
</features>
100-
<!--Attributes-->
101-
<attribute code="0x0000" side="server" type="int32u" define="CALENDARID" isNullable="true">CalendarID</attribute>
102-
<attribute code="0x0001" side="server" type="char_string" define="NAME" isNullable="true" length="12">Name</attribute>
103-
<attribute code="0x0002" side="server" type="int32u" define="PROVIDERID" isNullable="true">ProviderID</attribute>
104-
<attribute code="0x0003" side="server" type="int32u" define="EVENTID" isNullable="true">EventID</attribute>
105-
<attribute code="0x0004" side="server" type="epoch_s" define="START_DATE" isNullable="true">StartDate</attribute>
106-
<attribute code="0x0005" side="server" type="array" define="CALENDAR_PERIODS" entryType="CalendarPeriodStruct" length="4" isNullable="true" minLength="1">CalendarPeriods</attribute>
107-
<attribute code="0x0006" side="server" type="array" define="SPECIASL_DAYS" entryType="DayStruct" length="50" isNullable="true">SpecialDays</attribute>
108-
<attribute code="0x0007" side="server" type="DayStruct" define="CURRENT_DAY" isNullable="true">CurrentDay</attribute>
109-
<attribute code="0x0008" side="server" type="DayStruct" define="NEXT_DAY" isNullable="true">NextDay</attribute>
110-
<attribute code="0x0009" side="server" type="TransitionStruct" define="CURRENT_TRANSITION" isNullable="true">CurrentTransition</attribute>
111-
<attribute code="0x000A" side="server" type="PeakPeriodStruct" define="CURRENT_PEAK_PERIOD" isNullable="true" optional="true">CurrentPeakPeriod</attribute>
112-
<attribute code="0x000B" side="server" type="PeakPeriodStruct" define="NEXT_PEAK_PERIOD" isNullable="true" optional="true">NextPeakPeriod</attribute>
101+
<server init="false" tick="false">true</server>
102+
<globalAttribute code="0xFFFD" side="either" value="3"/>
103+
<attribute code="0x0000" side="server" define="CALENDAR_ID" type="int32u" isNullable="true">CalendarID</attribute>
104+
<attribute code="0x0001" side="server" define="NAME" type="char_string" isNullable="true" length="12">Name</attribute>
105+
<attribute code="0x0002" side="server" define="PROVIDER_ID" type="int32u" isNullable="true">ProviderID</attribute>
106+
<attribute code="0x0003" side="server" define="EVENT_ID" type="int32u" isNullable="true">EventID</attribute>
107+
<attribute code="0x0004" side="server" define="START_DATE" type="epoch_s" isNullable="true">StartDate</attribute>
108+
<attribute code="0x0005" side="server" define="CALENDAR_PERIODS" type="array" entryType="CalendarPeriodStruct" isNullable="true" length="4" minLength="1">CalendarPeriods</attribute>
109+
<attribute code="0x0006" side="server" define="SPECIAL_DAYS" type="array" entryType="DayStruct" isNullable="true" length="50">SpecialDays</attribute>
110+
<attribute code="0x0007" side="server" define="CURRENT_DAY" type="DayStruct" isNullable="true">CurrentDay</attribute>
111+
<attribute code="0x0008" side="server" define="NEXT_DAY" type="DayStruct" isNullable="true">NextDay</attribute>
112+
<attribute code="0x0009" side="server" define="CURRENT_TRANSITION" type="TransitionStruct" isNullable="true">CurrentTransition</attribute>
113+
<attribute code="0x000A" side="server" define="CURRENT_PEAK_PERIOD" type="PeakPeriodStruct" isNullable="true" optional="true">CurrentPeakPeriod</attribute>
114+
<attribute code="0x000B" side="server" define="NEXT_PEAK_PERIOD" type="PeakPeriodStruct" isNullable="true" optional="true">NextPeakPeriod</attribute>
113115
</cluster>
114116
</configurator>

src/controller/data_model/controller-clusters.matter

+1-1
Original file line numberDiff line numberDiff line change
@@ -5067,7 +5067,7 @@ cluster EnergyEvse = 153 {
50675067
timed command ClearTargets(): DefaultSuccess = 7;
50685068
}
50695069

5070-
/** The Energy Calendar Cluster provides a mechanism for communicating schedules associated with various forms of energy consumption. */
5070+
/** */
50715071
cluster EnergyCalendar = 154 {
50725072
revision 3;
50735073

src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/darwin/Framework/CHIP/zap-generated/MTRClusters.h

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)