1
1
<?xml version =" 1.0" ?>
2
2
<!--
3
3
Copyright (c) 2024 Project CHIP Authors
4
+
4
5
Licensed under the Apache License, Version 2.0 (the "License");
5
6
you may not use this file except in compliance with the License.
6
7
You may obtain a copy of the License at
8
+
7
9
http://www.apache.org/licenses/LICENSE-2.0
10
+
8
11
Unless required by applicable law or agreed to in writing, software
9
12
distributed under the License is distributed on an "AS IS" BASIS,
10
13
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -44,6 +47,20 @@ limitations under the License.
44
47
<item name =" High" value =" 0x03" />
45
48
</enum >
46
49
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
+
47
64
<struct name =" PeakPeriodStruct" apiMaturity =" provisional" >
48
65
<cluster code =" 0x009A" />
49
66
<item fieldId =" 0" name =" Severity" type =" PeakPeriodSeverityEnum" min =" 0x00" max =" 0x03" />
@@ -60,55 +77,40 @@ limitations under the License.
60
77
<item fieldId =" 3" name =" AuxiliaryLoad" type =" AuxiliaryLoadBitmap" optional =" true" min =" 0x00" max =" 0xFF" />
61
78
</struct >
62
79
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
-
77
80
<cluster >
78
- <name >Energy Calendar</name >
79
81
<domain >Energy Management</domain >
82
+ <name >Energy Calendar</name >
80
83
<code >0x009A</code >
81
84
<define >ENERGY_CALENDAR_CLUSTER</define >
85
+ <description />
82
86
<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" />
86
87
<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" >
88
89
<optionalConform choice =" a" more =" true" min =" 1" />
89
90
</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" >
91
92
<optionalConform choice =" a" more =" true" min =" 1" />
92
93
</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" >
94
95
<optionalConform choice =" a" more =" true" min =" 1" />
95
96
</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" >
97
98
<optionalConform />
98
99
</feature >
99
100
</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 >
113
115
</cluster >
114
116
</configurator >
0 commit comments