Skip to content

Commit

Permalink
Update XMLs using tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Michail-Antropov committed Jun 24, 2024
1 parent ce3dac7 commit 2043c10
Show file tree
Hide file tree
Showing 28 changed files with 1,267 additions and 1,792 deletions.
186 changes: 88 additions & 98 deletions data_model/clusters/EnergyCalendar.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ limitations under the License.
-->
<configurator>
<domain name="Energy Management"/>

<enum name="PeakPeriodSeverityEnum" type="enum8">
<cluster code="0x009A"/>
<item name="Unused" value="0x00"/>
Expand Down Expand Up @@ -45,42 +44,34 @@ limitations under the License.
<field name="Saturday" mask="0x40"/>
</bitmap>

<struct name="Date">
<cluster code="0x009A"/>
<item fieldId="0" name="Year" type="int16u" default="0" isNullable="true" optional="true"/>
<item fieldId="1" name="Month" type="int8u" min="1" max="12" default="1" isNullable="true" optional="true"/>
<item fieldId="2" name="Day" type="int8u" min="1" max="31" default="1" isNullable="true" optional="true"/>
<item fieldId="3" name="DayOfWeek" type="int8u" min="1" max="7" isNullable="true" optional="true"/>
</struct>

<struct name="CalendarPeriod">
<struct name="CalendarPeriodStruct">
<cluster code="0x009A"/>
<item fieldId="0" name="StartDate" type="epoch_s" default="0"/>
<item fieldId="1" name="Days" type="DayStruct" array="true" min="1"/>
<item fieldId="0" name="StartDate" type="epoch_s" isNullable="true"/>
<item fieldId="1" name="Days" type="DayStruct" array="true" length="7" minLength="1"/>
</struct>

<struct name="DayStruct">
<cluster code="0x009A"/>
<item fieldId="0" name="Date" type="Date" optional="true"/>
<item fieldId="1" name="DaysOfWeek" type="TransitionDayOfWeekBitmap" optional="true"/>
<item fieldId="2" name="Transitions" type="TransitionStruct" array="true" min="1"/>
<item fieldId="3" name="CalendarID" type="int32u" default="0" optional="true"/>
<item fieldId="0" name="Date" type="date" optional="true"/>
<item fieldId="1" name="DaysOfWeek" type="TransitionDayOfWeekBitmap" optional="true" min="0x00" max="0x7F"/>
<item fieldId="2" name="Transitions" type="TransitionStruct" array="true" length="48" minLength="1"/>
<item fieldId="3" name="CalendarID" type="int32u" optional="true"/>
</struct>

<struct name="PeakPeriodStruct">
<cluster code="0x009A"/>
<item fieldId="0" name="Severity" type="PeakPeriodSeverityEnum"/>
<item fieldId="1" name="PeakPeriod" type="int16u"/>
<item fieldId="2" name="StartTime" type="epoch_s"/>
<item fieldId="3" name="EndTime" type="epoch_s"/>
<item fieldId="0" name="Severity" type="PeakPeriodSeverityEnum" min="0x00" max="0x03"/>
<item fieldId="1" name="PeakPeriod" type="int16u" default="0"/>
<item fieldId="2" name="StartTime" type="epoch_s" isNullable="true"/>
<item fieldId="3" name="EndTime" type="epoch_s" isNullable="true"/>
</struct>

<struct name="TransitionStruct">
<cluster code="0x009A"/>
<item fieldId="0" name="TransitionTime" type="int16u" min="0" max="1439" default="0"/>
<item fieldId="0" name="TransitionTime" type="int16u" max="1499"/>
<item fieldId="1" name="PriceTier" type="int32u" optional="true"/>
<item fieldId="2" name="FriendlyCredit" type="boolean" optional="true"/>
<item fieldId="3" name="AuxiliaryLoad" type="AuxiliaryLoadBitmap" optional="true"/>
<item fieldId="3" name="AuxiliaryLoad" type="AuxiliaryLoadBitmap" optional="true" min="0x00" max="0xFF"/>
</struct>

<cluster>
Expand All @@ -91,36 +82,33 @@ limitations under the License.
<client init="false" tick="false">true</client>
<server init="false" tick="false">true</server>
<description>The Energy Calendar Cluster provides a mechanism for communicating schedules associated with various forms of energy consumption.</description>
<globalAttribute side="either" code="0xFFFD" value="2"/>

<globalAttribute side="either" code="0xFFFD" value="3"/>
<features>
<feature bit="0" code="PTIER" name="PricingTier" summary="Supports information about pricing tiers">
<optionalConform choice="a" more="true"/>
<optionalConform choice="a" more="true" min="1"/>
</feature>
<feature bit="1" code="FCRED" name="FriendlyCredit" summary="Supports information about when friendly credit periods begin and end">
<optionalConform choice="a" more="true"/>
<optionalConform choice="a" more="true" min="1"/>
</feature>
<feature bit="2" code="AUXLD" name="AuxiliaryLoad" summary="Supports information about when auxiliary loads should be enabled or disabled">
<optionalConform choice="a" more="true"/>
<optionalConform choice="a" more="true" min="1"/>
</feature>
<feature bit="3" code="PEAKP" name="PeakPeriod" summary="Supports information about peak periods">
<optionalConform/>
</feature>
</features>

<!--Attributes-->
<attribute code="0x0000" side="server" type="int32u" define="CALENDARID" isNullable="true" writable="false" optional="false">CalendarID</attribute>
<attribute code="0x0001" side="server" type="char_string" define="NAME" isNullable="true" length="12" writable="false">Name</attribute>
<attribute code="0x0002" side="server" type="int32u" define="PROVIDERID" isNullable="true" writable="false" optional="false">ProviderID</attribute>
<attribute code="0x0003" side="server" type="int32u" define="EVENTID" isNullable="true" writable="false" optional="false">EventID</attribute>
<attribute code="0x0004" side="server" type="epoch_s" define="START_DATE" isNullable="true" default="0" writable="false" optional="false">StartDate</attribute>
<attribute code="0x0005" side="server" type="array" define="CALENDAR_PERIODS" entryType="CalendarPeriod" length="254" writable="false" optional="false">CalendarPeriods</attribute>
<attribute code="0x0006" side="server" type="array" define="SPECIASL_DAYS" entryType="DayStruct" length="254" writable="false" optional="false">SpecialDays</attribute>
<attribute code="0x0007" side="server" type="DayStruct" define="CURRENT_DAY" isNullable="true" writable="false" optional="false">CurrentDay</attribute>
<attribute code="0x0008" side="server" type="DayStruct" define="NEXT_DAY" isNullable="true" writable="false" optional="false">NextDay</attribute>
<attribute code="0x0009" side="server" type="TransitionStruct" define="CURRENT_TRANSITION" isNullable="true" writable="false" optional="false">CurrentTransition</attribute>
<attribute code="0x000A" side="server" type="PeakPeriodStruct" define="CURRENT_PEAK_PERIOD" isNullable="true" writable="false" optional="true">CurrentPeakPeriod</attribute>
<attribute code="0x000B" side="server" type="PeakPeriodStruct" define="NEXT_PEAK_PERIOD" isNullable="true" writable="false" optional="true">NextPeakPeriod</attribute>
<attribute code="0x0000" side="server" type="int32u" define="CALENDARID" isNullable="true">CalendarID</attribute>
<attribute code="0x0001" side="server" type="char_string" define="NAME" isNullable="true" length="12">Name</attribute>
<attribute code="0x0002" side="server" type="int32u" define="PROVIDERID" isNullable="true">ProviderID</attribute>
<attribute code="0x0003" side="server" type="int32u" define="EVENTID" isNullable="true">EventID</attribute>
<attribute code="0x0004" side="server" type="epoch_s" define="START_DATE" isNullable="true">StartDate</attribute>
<attribute code="0x0005" side="server" type="array" define="CALENDAR_PERIODS" entryType="CalendarPeriodStruct" length="4" isNullable="true" minLength="1">CalendarPeriods</attribute>
<attribute code="0x0006" side="server" type="array" define="SPECIASL_DAYS" entryType="DayStruct" length="50" isNullable="true">SpecialDays</attribute>
<attribute code="0x0007" side="server" type="DayStruct" define="CURRENT_DAY" isNullable="true">CurrentDay</attribute>
<attribute code="0x0008" side="server" type="DayStruct" define="NEXT_DAY" isNullable="true">NextDay</attribute>
<attribute code="0x0009" side="server" type="TransitionStruct" define="CURRENT_TRANSITION" isNullable="true">CurrentTransition</attribute>
<attribute code="0x000A" side="server" type="PeakPeriodStruct" define="CURRENT_PEAK_PERIOD" isNullable="true" optional="true">CurrentPeakPeriod</attribute>
<attribute code="0x000B" side="server" type="PeakPeriodStruct" define="NEXT_PEAK_PERIOD" isNullable="true" optional="true">NextPeakPeriod</attribute>
</cluster>

</configurator>
Loading

0 comments on commit 2043c10

Please sign in to comment.