@matter/types 0.11.9-alpha.0-20241205-ccf69a00a → 0.11.9-alpha.0-20241206-22f233334
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/clusters/bridged-device-basic-information.d.ts +58 -7
- package/dist/cjs/clusters/bridged-device-basic-information.d.ts.map +1 -1
- package/dist/cjs/clusters/bridged-device-basic-information.js +19 -2
- package/dist/cjs/clusters/bridged-device-basic-information.js.map +1 -1
- package/dist/cjs/clusters/content-launcher.d.ts +10 -10
- package/dist/cjs/clusters/content-launcher.d.ts.map +1 -1
- package/dist/cjs/clusters/content-launcher.js +22 -22
- package/dist/cjs/clusters/content-launcher.js.map +2 -2
- package/dist/cjs/clusters/device-energy-management-mode.d.ts +411 -25
- package/dist/cjs/clusters/device-energy-management-mode.d.ts.map +1 -1
- package/dist/cjs/clusters/device-energy-management-mode.js +90 -1
- package/dist/cjs/clusters/device-energy-management-mode.js.map +1 -1
- package/dist/cjs/clusters/dishwasher-alarm.d.ts +1253 -42
- package/dist/cjs/clusters/dishwasher-alarm.d.ts.map +1 -1
- package/dist/cjs/clusters/dishwasher-alarm.js +72 -9
- package/dist/cjs/clusters/dishwasher-alarm.js.map +1 -1
- package/dist/cjs/clusters/dishwasher-mode.d.ts +340 -17
- package/dist/cjs/clusters/dishwasher-mode.d.ts.map +1 -1
- package/dist/cjs/clusters/dishwasher-mode.js +91 -2
- package/dist/cjs/clusters/dishwasher-mode.js.map +1 -1
- package/dist/cjs/clusters/door-lock.d.ts +1287 -135
- package/dist/cjs/clusters/door-lock.d.ts.map +1 -1
- package/dist/cjs/clusters/door-lock.js +199 -3
- package/dist/cjs/clusters/door-lock.js.map +1 -1
- package/dist/cjs/clusters/energy-evse-mode.d.ts +409 -25
- package/dist/cjs/clusters/energy-evse-mode.d.ts.map +1 -1
- package/dist/cjs/clusters/energy-evse-mode.js +90 -1
- package/dist/cjs/clusters/energy-evse-mode.js.map +1 -1
- package/dist/cjs/clusters/fan-control.d.ts +5 -0
- package/dist/cjs/clusters/fan-control.d.ts.map +1 -1
- package/dist/cjs/clusters/fan-control.js.map +1 -1
- package/dist/cjs/clusters/groups.d.ts +12 -0
- package/dist/cjs/clusters/groups.d.ts.map +1 -1
- package/dist/cjs/clusters/groups.js +7 -1
- package/dist/cjs/clusters/groups.js.map +1 -1
- package/dist/cjs/clusters/laundry-washer-mode.d.ts +340 -17
- package/dist/cjs/clusters/laundry-washer-mode.d.ts.map +1 -1
- package/dist/cjs/clusters/laundry-washer-mode.js +91 -2
- package/dist/cjs/clusters/laundry-washer-mode.js.map +1 -1
- package/dist/cjs/clusters/microwave-oven-mode.d.ts +330 -13
- package/dist/cjs/clusters/microwave-oven-mode.d.ts.map +1 -1
- package/dist/cjs/clusters/microwave-oven-mode.js +90 -2
- package/dist/cjs/clusters/microwave-oven-mode.js.map +1 -1
- package/dist/cjs/clusters/mode-base.d.ts +68 -68
- package/dist/cjs/clusters/mode-base.d.ts.map +1 -1
- package/dist/cjs/clusters/mode-base.js +16 -16
- package/dist/cjs/clusters/mode-base.js.map +2 -2
- package/dist/cjs/clusters/oven-mode.d.ts +409 -25
- package/dist/cjs/clusters/oven-mode.d.ts.map +1 -1
- package/dist/cjs/clusters/oven-mode.js +90 -1
- package/dist/cjs/clusters/oven-mode.js.map +1 -1
- package/dist/cjs/clusters/pump-configuration-and-control.d.ts +15 -0
- package/dist/cjs/clusters/pump-configuration-and-control.d.ts.map +1 -1
- package/dist/cjs/clusters/pump-configuration-and-control.js +6 -1
- package/dist/cjs/clusters/pump-configuration-and-control.js.map +1 -1
- package/dist/cjs/clusters/refrigerator-alarm.d.ts +364 -36
- package/dist/cjs/clusters/refrigerator-alarm.d.ts.map +1 -1
- package/dist/cjs/clusters/refrigerator-alarm.js +46 -8
- package/dist/cjs/clusters/refrigerator-alarm.js.map +1 -1
- package/dist/cjs/clusters/refrigerator-and-temperature-controlled-cabinet-mode.d.ts +340 -17
- package/dist/cjs/clusters/refrigerator-and-temperature-controlled-cabinet-mode.d.ts.map +1 -1
- package/dist/cjs/clusters/refrigerator-and-temperature-controlled-cabinet-mode.js +91 -2
- package/dist/cjs/clusters/refrigerator-and-temperature-controlled-cabinet-mode.js.map +1 -1
- package/dist/cjs/clusters/rvc-clean-mode.d.ts +374 -23
- package/dist/cjs/clusters/rvc-clean-mode.d.ts.map +1 -1
- package/dist/cjs/clusters/rvc-clean-mode.js +99 -6
- package/dist/cjs/clusters/rvc-clean-mode.js.map +2 -2
- package/dist/cjs/clusters/rvc-operational-state.d.ts +248 -22
- package/dist/cjs/clusters/rvc-operational-state.d.ts.map +1 -1
- package/dist/cjs/clusters/rvc-operational-state.js +59 -10
- package/dist/cjs/clusters/rvc-operational-state.js.map +1 -1
- package/dist/cjs/clusters/rvc-run-mode.d.ts +401 -40
- package/dist/cjs/clusters/rvc-run-mode.d.ts.map +1 -1
- package/dist/cjs/clusters/rvc-run-mode.js +101 -8
- package/dist/cjs/clusters/rvc-run-mode.js.map +2 -2
- package/dist/cjs/clusters/thermostat.d.ts +262 -61
- package/dist/cjs/clusters/thermostat.d.ts.map +1 -1
- package/dist/cjs/clusters/thermostat.js +72 -58
- package/dist/cjs/clusters/thermostat.js.map +1 -1
- package/dist/esm/clusters/bridged-device-basic-information.d.ts +58 -7
- package/dist/esm/clusters/bridged-device-basic-information.d.ts.map +1 -1
- package/dist/esm/clusters/bridged-device-basic-information.js +19 -2
- package/dist/esm/clusters/bridged-device-basic-information.js.map +1 -1
- package/dist/esm/clusters/content-launcher.d.ts +10 -10
- package/dist/esm/clusters/content-launcher.d.ts.map +1 -1
- package/dist/esm/clusters/content-launcher.js +22 -22
- package/dist/esm/clusters/content-launcher.js.map +2 -2
- package/dist/esm/clusters/device-energy-management-mode.d.ts +411 -25
- package/dist/esm/clusters/device-energy-management-mode.d.ts.map +1 -1
- package/dist/esm/clusters/device-energy-management-mode.js +91 -2
- package/dist/esm/clusters/device-energy-management-mode.js.map +1 -1
- package/dist/esm/clusters/dishwasher-alarm.d.ts +1253 -42
- package/dist/esm/clusters/dishwasher-alarm.d.ts.map +1 -1
- package/dist/esm/clusters/dishwasher-alarm.js +72 -9
- package/dist/esm/clusters/dishwasher-alarm.js.map +1 -1
- package/dist/esm/clusters/dishwasher-mode.d.ts +340 -17
- package/dist/esm/clusters/dishwasher-mode.d.ts.map +1 -1
- package/dist/esm/clusters/dishwasher-mode.js +91 -2
- package/dist/esm/clusters/dishwasher-mode.js.map +1 -1
- package/dist/esm/clusters/door-lock.d.ts +1287 -135
- package/dist/esm/clusters/door-lock.d.ts.map +1 -1
- package/dist/esm/clusters/door-lock.js +199 -3
- package/dist/esm/clusters/door-lock.js.map +1 -1
- package/dist/esm/clusters/energy-evse-mode.d.ts +409 -25
- package/dist/esm/clusters/energy-evse-mode.d.ts.map +1 -1
- package/dist/esm/clusters/energy-evse-mode.js +91 -2
- package/dist/esm/clusters/energy-evse-mode.js.map +1 -1
- package/dist/esm/clusters/fan-control.d.ts +5 -0
- package/dist/esm/clusters/fan-control.d.ts.map +1 -1
- package/dist/esm/clusters/fan-control.js.map +1 -1
- package/dist/esm/clusters/groups.d.ts +12 -0
- package/dist/esm/clusters/groups.d.ts.map +1 -1
- package/dist/esm/clusters/groups.js +7 -1
- package/dist/esm/clusters/groups.js.map +1 -1
- package/dist/esm/clusters/laundry-washer-mode.d.ts +340 -17
- package/dist/esm/clusters/laundry-washer-mode.d.ts.map +1 -1
- package/dist/esm/clusters/laundry-washer-mode.js +91 -2
- package/dist/esm/clusters/laundry-washer-mode.js.map +1 -1
- package/dist/esm/clusters/microwave-oven-mode.d.ts +330 -13
- package/dist/esm/clusters/microwave-oven-mode.d.ts.map +1 -1
- package/dist/esm/clusters/microwave-oven-mode.js +91 -3
- package/dist/esm/clusters/microwave-oven-mode.js.map +1 -1
- package/dist/esm/clusters/mode-base.d.ts +68 -68
- package/dist/esm/clusters/mode-base.d.ts.map +1 -1
- package/dist/esm/clusters/mode-base.js +17 -17
- package/dist/esm/clusters/mode-base.js.map +2 -2
- package/dist/esm/clusters/oven-mode.d.ts +409 -25
- package/dist/esm/clusters/oven-mode.d.ts.map +1 -1
- package/dist/esm/clusters/oven-mode.js +91 -2
- package/dist/esm/clusters/oven-mode.js.map +1 -1
- package/dist/esm/clusters/pump-configuration-and-control.d.ts +15 -0
- package/dist/esm/clusters/pump-configuration-and-control.d.ts.map +1 -1
- package/dist/esm/clusters/pump-configuration-and-control.js +6 -1
- package/dist/esm/clusters/pump-configuration-and-control.js.map +1 -1
- package/dist/esm/clusters/refrigerator-alarm.d.ts +364 -36
- package/dist/esm/clusters/refrigerator-alarm.d.ts.map +1 -1
- package/dist/esm/clusters/refrigerator-alarm.js +46 -8
- package/dist/esm/clusters/refrigerator-alarm.js.map +1 -1
- package/dist/esm/clusters/refrigerator-and-temperature-controlled-cabinet-mode.d.ts +340 -17
- package/dist/esm/clusters/refrigerator-and-temperature-controlled-cabinet-mode.d.ts.map +1 -1
- package/dist/esm/clusters/refrigerator-and-temperature-controlled-cabinet-mode.js +91 -2
- package/dist/esm/clusters/refrigerator-and-temperature-controlled-cabinet-mode.js.map +1 -1
- package/dist/esm/clusters/rvc-clean-mode.d.ts +374 -23
- package/dist/esm/clusters/rvc-clean-mode.d.ts.map +1 -1
- package/dist/esm/clusters/rvc-clean-mode.js +99 -6
- package/dist/esm/clusters/rvc-clean-mode.js.map +2 -2
- package/dist/esm/clusters/rvc-operational-state.d.ts +248 -22
- package/dist/esm/clusters/rvc-operational-state.d.ts.map +1 -1
- package/dist/esm/clusters/rvc-operational-state.js +60 -11
- package/dist/esm/clusters/rvc-operational-state.js.map +1 -1
- package/dist/esm/clusters/rvc-run-mode.d.ts +401 -40
- package/dist/esm/clusters/rvc-run-mode.d.ts.map +1 -1
- package/dist/esm/clusters/rvc-run-mode.js +101 -8
- package/dist/esm/clusters/rvc-run-mode.js.map +2 -2
- package/dist/esm/clusters/thermostat.d.ts +262 -61
- package/dist/esm/clusters/thermostat.d.ts.map +1 -1
- package/dist/esm/clusters/thermostat.js +72 -58
- package/dist/esm/clusters/thermostat.js.map +1 -1
- package/package.json +5 -5
- package/src/clusters/bridged-device-basic-information.ts +46 -2
- package/src/clusters/content-launcher.ts +5 -5
- package/src/clusters/device-energy-management-mode.ts +184 -3
- package/src/clusters/dishwasher-alarm.ts +115 -9
- package/src/clusters/dishwasher-mode.ts +188 -3
- package/src/clusters/door-lock.ts +247 -3
- package/src/clusters/energy-evse-mode.ts +182 -3
- package/src/clusters/fan-control.ts +5 -0
- package/src/clusters/groups.ts +8 -1
- package/src/clusters/laundry-washer-mode.ts +188 -3
- package/src/clusters/microwave-oven-mode.ts +182 -4
- package/src/clusters/mode-base.ts +77 -77
- package/src/clusters/oven-mode.ts +182 -3
- package/src/clusters/pump-configuration-and-control.ts +7 -1
- package/src/clusters/refrigerator-alarm.ts +76 -8
- package/src/clusters/refrigerator-and-temperature-controlled-cabinet-mode.ts +188 -3
- package/src/clusters/rvc-clean-mode.ts +227 -10
- package/src/clusters/rvc-operational-state.ts +112 -11
- package/src/clusters/rvc-run-mode.ts +253 -26
- package/src/clusters/thermostat.ts +80 -65
- package/src/globals/WildcardPathFlags.ts +1 -1
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import { MutableCluster } from "../cluster/mutation/MutableCluster.js";
|
|
8
8
|
import { WritableAttribute, FixedAttribute, Attribute, OptionalWritableAttribute, Command } from "../cluster/Cluster.js";
|
|
9
9
|
import { BitFlag } from "../schema/BitmapSchema.js";
|
|
10
|
+
import { TypeFromSchema } from "../tlv/TlvSchema.js";
|
|
10
11
|
import { Identity } from "#general";
|
|
11
12
|
export declare namespace EnergyEvseMode {
|
|
12
13
|
/**
|
|
@@ -46,7 +47,189 @@ export declare namespace EnergyEvseMode {
|
|
|
46
47
|
*
|
|
47
48
|
* @see {@link MatterSpecification.v13.Cluster} § 9.4.4.1.3
|
|
48
49
|
*/
|
|
49
|
-
SolarCharging = 16386
|
|
50
|
+
SolarCharging = 16386,
|
|
51
|
+
/**
|
|
52
|
+
* The device decides which options, features and setting values to use.
|
|
53
|
+
*
|
|
54
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.8
|
|
55
|
+
*/
|
|
56
|
+
Auto = 0,
|
|
57
|
+
/**
|
|
58
|
+
* The mode of the device is optimizing for faster completion.
|
|
59
|
+
*
|
|
60
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.8
|
|
61
|
+
*/
|
|
62
|
+
Quick = 1,
|
|
63
|
+
/**
|
|
64
|
+
* The device is silent or barely audible while in this mode.
|
|
65
|
+
*
|
|
66
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.8
|
|
67
|
+
*/
|
|
68
|
+
Quiet = 2,
|
|
69
|
+
/**
|
|
70
|
+
* Either the mode is inherently low noise or the device optimizes for that.
|
|
71
|
+
*
|
|
72
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.8
|
|
73
|
+
*/
|
|
74
|
+
LowNoise = 3,
|
|
75
|
+
/**
|
|
76
|
+
* The device is optimizing for lower energy usage in this mode. Sometimes called "Eco mode".
|
|
77
|
+
*
|
|
78
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.8
|
|
79
|
+
*/
|
|
80
|
+
LowEnergy = 4,
|
|
81
|
+
/**
|
|
82
|
+
* A mode suitable for use during vacations or other extended absences.
|
|
83
|
+
*
|
|
84
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.8
|
|
85
|
+
*/
|
|
86
|
+
Vacation = 5,
|
|
87
|
+
/**
|
|
88
|
+
* The mode uses the lowest available setting value.
|
|
89
|
+
*
|
|
90
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.8
|
|
91
|
+
*/
|
|
92
|
+
Min = 6,
|
|
93
|
+
/**
|
|
94
|
+
* The mode uses the highest available setting value.
|
|
95
|
+
*
|
|
96
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.8
|
|
97
|
+
*/
|
|
98
|
+
Max = 7,
|
|
99
|
+
/**
|
|
100
|
+
* The mode is recommended or suitable for use during night time.
|
|
101
|
+
*
|
|
102
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.8
|
|
103
|
+
*/
|
|
104
|
+
Night = 8,
|
|
105
|
+
/**
|
|
106
|
+
* The mode is recommended or suitable for use during day time.
|
|
107
|
+
*
|
|
108
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.8
|
|
109
|
+
*/
|
|
110
|
+
Day = 9
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* A Mode Tag is meant to be interpreted by the client for the purpose the cluster serves.
|
|
114
|
+
*
|
|
115
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.1
|
|
116
|
+
*/
|
|
117
|
+
const TlvModeTagStruct: import("../tlv/TlvObject.js").ObjectSchema<{
|
|
118
|
+
/**
|
|
119
|
+
* If the MfgCode field exists, the Value field shall be in the manufacturer-specific value range (see Section
|
|
120
|
+
* 1.10.8, “Mode Namespace”).
|
|
121
|
+
*
|
|
122
|
+
* This field shall indicate the manufacturer’s VendorID and it shall determine the meaning of the Value field.
|
|
123
|
+
*
|
|
124
|
+
* The same manufacturer code and mode tag value in separate cluster instances are part of the same namespace
|
|
125
|
+
* and have the same meaning. For example: a manufacturer tag meaning "pinch" can be used both in a cluster
|
|
126
|
+
* whose purpose is to choose the amount of sugar, or in a cluster whose purpose is to choose the amount of
|
|
127
|
+
* salt.
|
|
128
|
+
*
|
|
129
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.1.1
|
|
130
|
+
*/
|
|
131
|
+
mfgCode: import("../tlv/TlvObject.js").OptionalFieldType<import("../datatype/VendorId.js").VendorId>;
|
|
132
|
+
/**
|
|
133
|
+
* This field shall indicate the mode tag within a mode tag namespace which is either manufacturer specific or
|
|
134
|
+
* standard.
|
|
135
|
+
*
|
|
136
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.1.2
|
|
137
|
+
*/
|
|
138
|
+
value: import("../tlv/TlvObject.js").FieldType<ModeTag>;
|
|
139
|
+
}>;
|
|
140
|
+
/**
|
|
141
|
+
* A Mode Tag is meant to be interpreted by the client for the purpose the cluster serves.
|
|
142
|
+
*
|
|
143
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.1
|
|
144
|
+
*/
|
|
145
|
+
interface ModeTagStruct extends TypeFromSchema<typeof TlvModeTagStruct> {
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* This is a struct representing a possible mode of the server.
|
|
149
|
+
*
|
|
150
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.2
|
|
151
|
+
*/
|
|
152
|
+
const TlvModeOption: import("../tlv/TlvObject.js").ObjectSchema<{
|
|
153
|
+
/**
|
|
154
|
+
* This field shall indicate readable text that describes the mode option, so that a client can provide it to
|
|
155
|
+
* the user to indicate what this option means. This field is meant to be readable and understandable by the
|
|
156
|
+
* user.
|
|
157
|
+
*
|
|
158
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.2.1
|
|
159
|
+
*/
|
|
160
|
+
label: import("../tlv/TlvObject.js").FieldType<string>;
|
|
161
|
+
/**
|
|
162
|
+
* This field is used to identify the mode option.
|
|
163
|
+
*
|
|
164
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.2.2
|
|
165
|
+
*/
|
|
166
|
+
mode: import("../tlv/TlvObject.js").FieldType<number>;
|
|
167
|
+
/**
|
|
168
|
+
* This field shall contain a list of tags that are associated with the mode option. This may be used by
|
|
169
|
+
* clients to determine the full or the partial semantics of a certain mode, depending on which tags they
|
|
170
|
+
* understand, using standard definitions and/or manufacturer specific namespace definitions.
|
|
171
|
+
*
|
|
172
|
+
* The standard mode tags are defined in this cluster specification. For the derived cluster instances, if the
|
|
173
|
+
* specification of the derived cluster defines a namespace, the set of standard mode tags also includes the
|
|
174
|
+
* mode tag values from that namespace.
|
|
175
|
+
*
|
|
176
|
+
* Mode tags can help clients look for options that meet certain criteria, render the user interface, use
|
|
177
|
+
*
|
|
178
|
+
* the mode in an automation, or to craft help text their voice-driven interfaces. A mode tag shall be either a
|
|
179
|
+
* standard tag or a manufacturer specific tag, as defined in each ModeTagStruct list entry.
|
|
180
|
+
*
|
|
181
|
+
* A mode option may have more than one mode tag. A mode option may be associated with a mixture of standard
|
|
182
|
+
* and manufacturer specific mode tags. A mode option shall be associated with at least one standard mode tag.
|
|
183
|
+
*
|
|
184
|
+
* A few examples are provided below.
|
|
185
|
+
*
|
|
186
|
+
* • A mode named "100%" can have both the High (manufacturer specific) and Max (standard) mode tag. Clients
|
|
187
|
+
* seeking the mode for either High or Max will find the same mode in this case.
|
|
188
|
+
*
|
|
189
|
+
* • A mode that includes a LowEnergy tag can be displayed by the client using a widget icon that shows a
|
|
190
|
+
* green leaf.
|
|
191
|
+
*
|
|
192
|
+
* • A mode that includes a LowNoise tag may be used by the client when the user wishes for a lower level of
|
|
193
|
+
* audible sound, less likely to disturb the household’s activities.
|
|
194
|
+
*
|
|
195
|
+
* • A mode that includes a LowEnergy tag (standard, defined in this cluster specification) and also a
|
|
196
|
+
* Delicate tag (standard, defined in the namespace of a Laundry Mode derived cluster).
|
|
197
|
+
*
|
|
198
|
+
* • A mode that includes both a generic Quick tag (defined here), and Vacuum and Mop tags, (defined in the
|
|
199
|
+
* RVC Clean cluster that is a derivation of this cluster).
|
|
200
|
+
*
|
|
201
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.2.3
|
|
202
|
+
*/
|
|
203
|
+
modeTags: import("../tlv/TlvObject.js").FieldType<import("../tlv/TlvObject.js").TypeFromFields<{
|
|
204
|
+
/**
|
|
205
|
+
* If the MfgCode field exists, the Value field shall be in the manufacturer-specific value range (see Section
|
|
206
|
+
* 1.10.8, “Mode Namespace”).
|
|
207
|
+
*
|
|
208
|
+
* This field shall indicate the manufacturer’s VendorID and it shall determine the meaning of the Value field.
|
|
209
|
+
*
|
|
210
|
+
* The same manufacturer code and mode tag value in separate cluster instances are part of the same namespace
|
|
211
|
+
* and have the same meaning. For example: a manufacturer tag meaning "pinch" can be used both in a cluster
|
|
212
|
+
* whose purpose is to choose the amount of sugar, or in a cluster whose purpose is to choose the amount of
|
|
213
|
+
* salt.
|
|
214
|
+
*
|
|
215
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.1.1
|
|
216
|
+
*/
|
|
217
|
+
mfgCode: import("../tlv/TlvObject.js").OptionalFieldType<import("../datatype/VendorId.js").VendorId>;
|
|
218
|
+
/**
|
|
219
|
+
* This field shall indicate the mode tag within a mode tag namespace which is either manufacturer specific or
|
|
220
|
+
* standard.
|
|
221
|
+
*
|
|
222
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.1.2
|
|
223
|
+
*/
|
|
224
|
+
value: import("../tlv/TlvObject.js").FieldType<ModeTag>;
|
|
225
|
+
}>[]>;
|
|
226
|
+
}>;
|
|
227
|
+
/**
|
|
228
|
+
* This is a struct representing a possible mode of the server.
|
|
229
|
+
*
|
|
230
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.2
|
|
231
|
+
*/
|
|
232
|
+
interface ModeOption extends TypeFromSchema<typeof TlvModeOption> {
|
|
50
233
|
}
|
|
51
234
|
/**
|
|
52
235
|
* A EnergyEvseModeCluster supports these elements if it supports feature OnOff.
|
|
@@ -94,12 +277,79 @@ export declare namespace EnergyEvseMode {
|
|
|
94
277
|
*
|
|
95
278
|
* @see {@link MatterSpecification.v13.Cluster} § 1.10.6.2
|
|
96
279
|
*/
|
|
97
|
-
readonly supportedModes: FixedAttribute<import("../
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
280
|
+
readonly supportedModes: FixedAttribute<import("../tlv/TlvObject.js").TypeFromFields<{
|
|
281
|
+
/**
|
|
282
|
+
* This field shall indicate readable text that describes the mode option, so that a client can provide it to
|
|
283
|
+
* the user to indicate what this option means. This field is meant to be readable and understandable by the
|
|
284
|
+
* user.
|
|
285
|
+
*
|
|
286
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.2.1
|
|
287
|
+
*/
|
|
288
|
+
label: import("../tlv/TlvObject.js").FieldType<string>;
|
|
289
|
+
/**
|
|
290
|
+
* This field is used to identify the mode option.
|
|
291
|
+
*
|
|
292
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.2.2
|
|
293
|
+
*/
|
|
294
|
+
mode: import("../tlv/TlvObject.js").FieldType<number>;
|
|
295
|
+
/**
|
|
296
|
+
* This field shall contain a list of tags that are associated with the mode option. This may be used by
|
|
297
|
+
* clients to determine the full or the partial semantics of a certain mode, depending on which tags they
|
|
298
|
+
* understand, using standard definitions and/or manufacturer specific namespace definitions.
|
|
299
|
+
*
|
|
300
|
+
* The standard mode tags are defined in this cluster specification. For the derived cluster instances, if the
|
|
301
|
+
* specification of the derived cluster defines a namespace, the set of standard mode tags also includes the
|
|
302
|
+
* mode tag values from that namespace.
|
|
303
|
+
*
|
|
304
|
+
* Mode tags can help clients look for options that meet certain criteria, render the user interface, use
|
|
305
|
+
*
|
|
306
|
+
* the mode in an automation, or to craft help text their voice-driven interfaces. A mode tag shall be either a
|
|
307
|
+
* standard tag or a manufacturer specific tag, as defined in each ModeTagStruct list entry.
|
|
308
|
+
*
|
|
309
|
+
* A mode option may have more than one mode tag. A mode option may be associated with a mixture of standard
|
|
310
|
+
* and manufacturer specific mode tags. A mode option shall be associated with at least one standard mode tag.
|
|
311
|
+
*
|
|
312
|
+
* A few examples are provided below.
|
|
313
|
+
*
|
|
314
|
+
* • A mode named "100%" can have both the High (manufacturer specific) and Max (standard) mode tag. Clients
|
|
315
|
+
* seeking the mode for either High or Max will find the same mode in this case.
|
|
316
|
+
*
|
|
317
|
+
* • A mode that includes a LowEnergy tag can be displayed by the client using a widget icon that shows a
|
|
318
|
+
* green leaf.
|
|
319
|
+
*
|
|
320
|
+
* • A mode that includes a LowNoise tag may be used by the client when the user wishes for a lower level of
|
|
321
|
+
* audible sound, less likely to disturb the household’s activities.
|
|
322
|
+
*
|
|
323
|
+
* • A mode that includes a LowEnergy tag (standard, defined in this cluster specification) and also a
|
|
324
|
+
* Delicate tag (standard, defined in the namespace of a Laundry Mode derived cluster).
|
|
325
|
+
*
|
|
326
|
+
* • A mode that includes both a generic Quick tag (defined here), and Vacuum and Mop tags, (defined in the
|
|
327
|
+
* RVC Clean cluster that is a derivation of this cluster).
|
|
328
|
+
*
|
|
329
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.2.3
|
|
330
|
+
*/
|
|
331
|
+
modeTags: import("../tlv/TlvObject.js").FieldType<import("../tlv/TlvObject.js").TypeFromFields<{
|
|
332
|
+
/**
|
|
333
|
+
* If the MfgCode field exists, the Value field shall be in the manufacturer-specific value range (see Section
|
|
334
|
+
* 1.10.8, “Mode Namespace”).
|
|
335
|
+
*
|
|
336
|
+
* This field shall indicate the manufacturer’s VendorID and it shall determine the meaning of the Value field.
|
|
337
|
+
*
|
|
338
|
+
* The same manufacturer code and mode tag value in separate cluster instances are part of the same namespace
|
|
339
|
+
* and have the same meaning. For example: a manufacturer tag meaning "pinch" can be used both in a cluster
|
|
340
|
+
* whose purpose is to choose the amount of sugar, or in a cluster whose purpose is to choose the amount of
|
|
341
|
+
* salt.
|
|
342
|
+
*
|
|
343
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.1.1
|
|
344
|
+
*/
|
|
345
|
+
mfgCode: import("../tlv/TlvObject.js").OptionalFieldType<import("../datatype/VendorId.js").VendorId>;
|
|
346
|
+
/**
|
|
347
|
+
* This field shall indicate the mode tag within a mode tag namespace which is either manufacturer specific or
|
|
348
|
+
* standard.
|
|
349
|
+
*
|
|
350
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.1.2
|
|
351
|
+
*/
|
|
352
|
+
value: import("../tlv/TlvObject.js").FieldType<ModeTag>;
|
|
103
353
|
}>[]>;
|
|
104
354
|
}>[], any>;
|
|
105
355
|
/**
|
|
@@ -141,8 +391,8 @@ export declare namespace EnergyEvseMode {
|
|
|
141
391
|
*
|
|
142
392
|
* @see {@link MatterSpecification.v13.Cluster} § 1.10.7.1
|
|
143
393
|
*/
|
|
144
|
-
readonly changeToMode: Command<import("../
|
|
145
|
-
newMode: import("../
|
|
394
|
+
readonly changeToMode: Command<import("../tlv/TlvObject.js").TypeFromFields<{
|
|
395
|
+
newMode: import("../tlv/TlvObject.js").FieldType<number>;
|
|
146
396
|
}>, void, any>;
|
|
147
397
|
};
|
|
148
398
|
/**
|
|
@@ -198,12 +448,79 @@ export declare namespace EnergyEvseMode {
|
|
|
198
448
|
*
|
|
199
449
|
* @see {@link MatterSpecification.v13.Cluster} § 1.10.6.2
|
|
200
450
|
*/
|
|
201
|
-
readonly supportedModes: FixedAttribute<import("../
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
451
|
+
readonly supportedModes: FixedAttribute<import("../tlv/TlvObject.js").TypeFromFields<{
|
|
452
|
+
/**
|
|
453
|
+
* This field shall indicate readable text that describes the mode option, so that a client can provide it to
|
|
454
|
+
* the user to indicate what this option means. This field is meant to be readable and understandable by the
|
|
455
|
+
* user.
|
|
456
|
+
*
|
|
457
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.2.1
|
|
458
|
+
*/
|
|
459
|
+
label: import("../tlv/TlvObject.js").FieldType<string>;
|
|
460
|
+
/**
|
|
461
|
+
* This field is used to identify the mode option.
|
|
462
|
+
*
|
|
463
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.2.2
|
|
464
|
+
*/
|
|
465
|
+
mode: import("../tlv/TlvObject.js").FieldType<number>;
|
|
466
|
+
/**
|
|
467
|
+
* This field shall contain a list of tags that are associated with the mode option. This may be used by
|
|
468
|
+
* clients to determine the full or the partial semantics of a certain mode, depending on which tags they
|
|
469
|
+
* understand, using standard definitions and/or manufacturer specific namespace definitions.
|
|
470
|
+
*
|
|
471
|
+
* The standard mode tags are defined in this cluster specification. For the derived cluster instances, if the
|
|
472
|
+
* specification of the derived cluster defines a namespace, the set of standard mode tags also includes the
|
|
473
|
+
* mode tag values from that namespace.
|
|
474
|
+
*
|
|
475
|
+
* Mode tags can help clients look for options that meet certain criteria, render the user interface, use
|
|
476
|
+
*
|
|
477
|
+
* the mode in an automation, or to craft help text their voice-driven interfaces. A mode tag shall be either a
|
|
478
|
+
* standard tag or a manufacturer specific tag, as defined in each ModeTagStruct list entry.
|
|
479
|
+
*
|
|
480
|
+
* A mode option may have more than one mode tag. A mode option may be associated with a mixture of standard
|
|
481
|
+
* and manufacturer specific mode tags. A mode option shall be associated with at least one standard mode tag.
|
|
482
|
+
*
|
|
483
|
+
* A few examples are provided below.
|
|
484
|
+
*
|
|
485
|
+
* • A mode named "100%" can have both the High (manufacturer specific) and Max (standard) mode tag. Clients
|
|
486
|
+
* seeking the mode for either High or Max will find the same mode in this case.
|
|
487
|
+
*
|
|
488
|
+
* • A mode that includes a LowEnergy tag can be displayed by the client using a widget icon that shows a
|
|
489
|
+
* green leaf.
|
|
490
|
+
*
|
|
491
|
+
* • A mode that includes a LowNoise tag may be used by the client when the user wishes for a lower level of
|
|
492
|
+
* audible sound, less likely to disturb the household’s activities.
|
|
493
|
+
*
|
|
494
|
+
* • A mode that includes a LowEnergy tag (standard, defined in this cluster specification) and also a
|
|
495
|
+
* Delicate tag (standard, defined in the namespace of a Laundry Mode derived cluster).
|
|
496
|
+
*
|
|
497
|
+
* • A mode that includes both a generic Quick tag (defined here), and Vacuum and Mop tags, (defined in the
|
|
498
|
+
* RVC Clean cluster that is a derivation of this cluster).
|
|
499
|
+
*
|
|
500
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.2.3
|
|
501
|
+
*/
|
|
502
|
+
modeTags: import("../tlv/TlvObject.js").FieldType<import("../tlv/TlvObject.js").TypeFromFields<{
|
|
503
|
+
/**
|
|
504
|
+
* If the MfgCode field exists, the Value field shall be in the manufacturer-specific value range (see Section
|
|
505
|
+
* 1.10.8, “Mode Namespace”).
|
|
506
|
+
*
|
|
507
|
+
* This field shall indicate the manufacturer’s VendorID and it shall determine the meaning of the Value field.
|
|
508
|
+
*
|
|
509
|
+
* The same manufacturer code and mode tag value in separate cluster instances are part of the same namespace
|
|
510
|
+
* and have the same meaning. For example: a manufacturer tag meaning "pinch" can be used both in a cluster
|
|
511
|
+
* whose purpose is to choose the amount of sugar, or in a cluster whose purpose is to choose the amount of
|
|
512
|
+
* salt.
|
|
513
|
+
*
|
|
514
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.1.1
|
|
515
|
+
*/
|
|
516
|
+
mfgCode: import("../tlv/TlvObject.js").OptionalFieldType<import("../datatype/VendorId.js").VendorId>;
|
|
517
|
+
/**
|
|
518
|
+
* This field shall indicate the mode tag within a mode tag namespace which is either manufacturer specific or
|
|
519
|
+
* standard.
|
|
520
|
+
*
|
|
521
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.1.2
|
|
522
|
+
*/
|
|
523
|
+
value: import("../tlv/TlvObject.js").FieldType<ModeTag>;
|
|
207
524
|
}>[]>;
|
|
208
525
|
}>[], any>;
|
|
209
526
|
/**
|
|
@@ -245,8 +562,8 @@ export declare namespace EnergyEvseMode {
|
|
|
245
562
|
*
|
|
246
563
|
* @see {@link MatterSpecification.v13.Cluster} § 1.10.7.1
|
|
247
564
|
*/
|
|
248
|
-
readonly changeToMode: Command<import("../
|
|
249
|
-
newMode: import("../
|
|
565
|
+
readonly changeToMode: Command<import("../tlv/TlvObject.js").TypeFromFields<{
|
|
566
|
+
newMode: import("../tlv/TlvObject.js").FieldType<number>;
|
|
250
567
|
}>, void, any>;
|
|
251
568
|
};
|
|
252
569
|
/**
|
|
@@ -312,12 +629,79 @@ export declare namespace EnergyEvseMode {
|
|
|
312
629
|
onOff: boolean;
|
|
313
630
|
}];
|
|
314
631
|
};
|
|
315
|
-
readonly supportedModes: FixedAttribute<import("../
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
632
|
+
readonly supportedModes: FixedAttribute<import("../tlv/TlvObject.js").TypeFromFields<{
|
|
633
|
+
/**
|
|
634
|
+
* This field shall indicate readable text that describes the mode option, so that a client can provide it to
|
|
635
|
+
* the user to indicate what this option means. This field is meant to be readable and understandable by the
|
|
636
|
+
* user.
|
|
637
|
+
*
|
|
638
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.2.1
|
|
639
|
+
*/
|
|
640
|
+
label: import("../tlv/TlvObject.js").FieldType<string>;
|
|
641
|
+
/**
|
|
642
|
+
* This field is used to identify the mode option.
|
|
643
|
+
*
|
|
644
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.2.2
|
|
645
|
+
*/
|
|
646
|
+
mode: import("../tlv/TlvObject.js").FieldType<number>;
|
|
647
|
+
/**
|
|
648
|
+
* This field shall contain a list of tags that are associated with the mode option. This may be used by
|
|
649
|
+
* clients to determine the full or the partial semantics of a certain mode, depending on which tags they
|
|
650
|
+
* understand, using standard definitions and/or manufacturer specific namespace definitions.
|
|
651
|
+
*
|
|
652
|
+
* The standard mode tags are defined in this cluster specification. For the derived cluster instances, if the
|
|
653
|
+
* specification of the derived cluster defines a namespace, the set of standard mode tags also includes the
|
|
654
|
+
* mode tag values from that namespace.
|
|
655
|
+
*
|
|
656
|
+
* Mode tags can help clients look for options that meet certain criteria, render the user interface, use
|
|
657
|
+
*
|
|
658
|
+
* the mode in an automation, or to craft help text their voice-driven interfaces. A mode tag shall be either a
|
|
659
|
+
* standard tag or a manufacturer specific tag, as defined in each ModeTagStruct list entry.
|
|
660
|
+
*
|
|
661
|
+
* A mode option may have more than one mode tag. A mode option may be associated with a mixture of standard
|
|
662
|
+
* and manufacturer specific mode tags. A mode option shall be associated with at least one standard mode tag.
|
|
663
|
+
*
|
|
664
|
+
* A few examples are provided below.
|
|
665
|
+
*
|
|
666
|
+
* • A mode named "100%" can have both the High (manufacturer specific) and Max (standard) mode tag. Clients
|
|
667
|
+
* seeking the mode for either High or Max will find the same mode in this case.
|
|
668
|
+
*
|
|
669
|
+
* • A mode that includes a LowEnergy tag can be displayed by the client using a widget icon that shows a
|
|
670
|
+
* green leaf.
|
|
671
|
+
*
|
|
672
|
+
* • A mode that includes a LowNoise tag may be used by the client when the user wishes for a lower level of
|
|
673
|
+
* audible sound, less likely to disturb the household’s activities.
|
|
674
|
+
*
|
|
675
|
+
* • A mode that includes a LowEnergy tag (standard, defined in this cluster specification) and also a
|
|
676
|
+
* Delicate tag (standard, defined in the namespace of a Laundry Mode derived cluster).
|
|
677
|
+
*
|
|
678
|
+
* • A mode that includes both a generic Quick tag (defined here), and Vacuum and Mop tags, (defined in the
|
|
679
|
+
* RVC Clean cluster that is a derivation of this cluster).
|
|
680
|
+
*
|
|
681
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.2.3
|
|
682
|
+
*/
|
|
683
|
+
modeTags: import("../tlv/TlvObject.js").FieldType<import("../tlv/TlvObject.js").TypeFromFields<{
|
|
684
|
+
/**
|
|
685
|
+
* If the MfgCode field exists, the Value field shall be in the manufacturer-specific value range (see Section
|
|
686
|
+
* 1.10.8, “Mode Namespace”).
|
|
687
|
+
*
|
|
688
|
+
* This field shall indicate the manufacturer’s VendorID and it shall determine the meaning of the Value field.
|
|
689
|
+
*
|
|
690
|
+
* The same manufacturer code and mode tag value in separate cluster instances are part of the same namespace
|
|
691
|
+
* and have the same meaning. For example: a manufacturer tag meaning "pinch" can be used both in a cluster
|
|
692
|
+
* whose purpose is to choose the amount of sugar, or in a cluster whose purpose is to choose the amount of
|
|
693
|
+
* salt.
|
|
694
|
+
*
|
|
695
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.1.1
|
|
696
|
+
*/
|
|
697
|
+
mfgCode: import("../tlv/TlvObject.js").OptionalFieldType<import("../datatype/VendorId.js").VendorId>;
|
|
698
|
+
/**
|
|
699
|
+
* This field shall indicate the mode tag within a mode tag namespace which is either manufacturer specific or
|
|
700
|
+
* standard.
|
|
701
|
+
*
|
|
702
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.1.2
|
|
703
|
+
*/
|
|
704
|
+
value: import("../tlv/TlvObject.js").FieldType<ModeTag>;
|
|
321
705
|
}>[]>;
|
|
322
706
|
}>[], any>;
|
|
323
707
|
readonly currentMode: Attribute<number, any>;
|
|
@@ -346,8 +730,8 @@ export declare namespace EnergyEvseMode {
|
|
|
346
730
|
*
|
|
347
731
|
* @see {@link MatterSpecification.v13.Cluster} § 1.10.7.1
|
|
348
732
|
*/
|
|
349
|
-
readonly changeToMode: Command<import("../
|
|
350
|
-
newMode: import("../
|
|
733
|
+
readonly changeToMode: Command<import("../tlv/TlvObject.js").TypeFromFields<{
|
|
734
|
+
newMode: import("../tlv/TlvObject.js").FieldType<number>;
|
|
351
735
|
}>, void, any>;
|
|
352
736
|
};
|
|
353
737
|
}, []>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"energy-evse-mode.d.ts","sourceRoot":"","sources":["../../../src/clusters/energy-evse-mode.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,6CAA6C;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EACH,iBAAiB,EACjB,cAAc,EACd,SAAS,EACT,yBAAyB,EACzB,OAAO,EAEV,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"energy-evse-mode.d.ts","sourceRoot":"","sources":["../../../src/clusters/energy-evse-mode.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,6CAA6C;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EACH,iBAAiB,EACjB,cAAc,EACd,SAAS,EACT,yBAAyB,EACzB,OAAO,EAEV,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAKpD,OAAO,EAAE,cA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AAqB,GAAG,cAAc,CAAC,OAAO,CAAC;AAC3D,eAAO,MAAM,qBAAqB,wBAAyB,CAAC"}
|
|
@@ -12,10 +12,13 @@ import {
|
|
|
12
12
|
Command,
|
|
13
13
|
TlvNoResponse
|
|
14
14
|
} from "../cluster/Cluster.js";
|
|
15
|
-
import { TlvUInt8 } from "../tlv/TlvNumber.js";
|
|
15
|
+
import { TlvUInt8, TlvEnum } from "../tlv/TlvNumber.js";
|
|
16
16
|
import { TlvNullable } from "../tlv/TlvNullable.js";
|
|
17
17
|
import { BitFlag } from "../schema/BitmapSchema.js";
|
|
18
18
|
import { TlvArray } from "../tlv/TlvArray.js";
|
|
19
|
+
import { TlvField, TlvOptionalField, TlvObject } from "../tlv/TlvObject.js";
|
|
20
|
+
import { TlvString } from "../tlv/TlvString.js";
|
|
21
|
+
import { TlvVendorId } from "../datatype/VendorId.js";
|
|
19
22
|
import { ModeBase } from "./mode-base.js";
|
|
20
23
|
import { ClusterRegistry } from "../cluster/ClusterRegistry.js";
|
|
21
24
|
var EnergyEvseMode;
|
|
@@ -29,7 +32,93 @@ var EnergyEvseMode;
|
|
|
29
32
|
ModeTag2[ModeTag2["Manual"] = 16384] = "Manual";
|
|
30
33
|
ModeTag2[ModeTag2["TimeOfUse"] = 16385] = "TimeOfUse";
|
|
31
34
|
ModeTag2[ModeTag2["SolarCharging"] = 16386] = "SolarCharging";
|
|
35
|
+
ModeTag2[ModeTag2["Auto"] = 0] = "Auto";
|
|
36
|
+
ModeTag2[ModeTag2["Quick"] = 1] = "Quick";
|
|
37
|
+
ModeTag2[ModeTag2["Quiet"] = 2] = "Quiet";
|
|
38
|
+
ModeTag2[ModeTag2["LowNoise"] = 3] = "LowNoise";
|
|
39
|
+
ModeTag2[ModeTag2["LowEnergy"] = 4] = "LowEnergy";
|
|
40
|
+
ModeTag2[ModeTag2["Vacation"] = 5] = "Vacation";
|
|
41
|
+
ModeTag2[ModeTag2["Min"] = 6] = "Min";
|
|
42
|
+
ModeTag2[ModeTag2["Max"] = 7] = "Max";
|
|
43
|
+
ModeTag2[ModeTag2["Night"] = 8] = "Night";
|
|
44
|
+
ModeTag2[ModeTag2["Day"] = 9] = "Day";
|
|
32
45
|
})(ModeTag = EnergyEvseMode2.ModeTag || (EnergyEvseMode2.ModeTag = {}));
|
|
46
|
+
EnergyEvseMode2.TlvModeTagStruct = TlvObject({
|
|
47
|
+
/**
|
|
48
|
+
* If the MfgCode field exists, the Value field shall be in the manufacturer-specific value range (see Section
|
|
49
|
+
* 1.10.8, “Mode Namespace”).
|
|
50
|
+
*
|
|
51
|
+
* This field shall indicate the manufacturer’s VendorID and it shall determine the meaning of the Value field.
|
|
52
|
+
*
|
|
53
|
+
* The same manufacturer code and mode tag value in separate cluster instances are part of the same namespace
|
|
54
|
+
* and have the same meaning. For example: a manufacturer tag meaning "pinch" can be used both in a cluster
|
|
55
|
+
* whose purpose is to choose the amount of sugar, or in a cluster whose purpose is to choose the amount of
|
|
56
|
+
* salt.
|
|
57
|
+
*
|
|
58
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.1.1
|
|
59
|
+
*/
|
|
60
|
+
mfgCode: TlvOptionalField(0, TlvVendorId),
|
|
61
|
+
/**
|
|
62
|
+
* This field shall indicate the mode tag within a mode tag namespace which is either manufacturer specific or
|
|
63
|
+
* standard.
|
|
64
|
+
*
|
|
65
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.1.2
|
|
66
|
+
*/
|
|
67
|
+
value: TlvField(1, TlvEnum())
|
|
68
|
+
});
|
|
69
|
+
EnergyEvseMode2.TlvModeOption = TlvObject({
|
|
70
|
+
/**
|
|
71
|
+
* This field shall indicate readable text that describes the mode option, so that a client can provide it to
|
|
72
|
+
* the user to indicate what this option means. This field is meant to be readable and understandable by the
|
|
73
|
+
* user.
|
|
74
|
+
*
|
|
75
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.2.1
|
|
76
|
+
*/
|
|
77
|
+
label: TlvField(0, TlvString.bound({ maxLength: 64 })),
|
|
78
|
+
/**
|
|
79
|
+
* This field is used to identify the mode option.
|
|
80
|
+
*
|
|
81
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.2.2
|
|
82
|
+
*/
|
|
83
|
+
mode: TlvField(1, TlvUInt8),
|
|
84
|
+
/**
|
|
85
|
+
* This field shall contain a list of tags that are associated with the mode option. This may be used by
|
|
86
|
+
* clients to determine the full or the partial semantics of a certain mode, depending on which tags they
|
|
87
|
+
* understand, using standard definitions and/or manufacturer specific namespace definitions.
|
|
88
|
+
*
|
|
89
|
+
* The standard mode tags are defined in this cluster specification. For the derived cluster instances, if the
|
|
90
|
+
* specification of the derived cluster defines a namespace, the set of standard mode tags also includes the
|
|
91
|
+
* mode tag values from that namespace.
|
|
92
|
+
*
|
|
93
|
+
* Mode tags can help clients look for options that meet certain criteria, render the user interface, use
|
|
94
|
+
*
|
|
95
|
+
* the mode in an automation, or to craft help text their voice-driven interfaces. A mode tag shall be either a
|
|
96
|
+
* standard tag or a manufacturer specific tag, as defined in each ModeTagStruct list entry.
|
|
97
|
+
*
|
|
98
|
+
* A mode option may have more than one mode tag. A mode option may be associated with a mixture of standard
|
|
99
|
+
* and manufacturer specific mode tags. A mode option shall be associated with at least one standard mode tag.
|
|
100
|
+
*
|
|
101
|
+
* A few examples are provided below.
|
|
102
|
+
*
|
|
103
|
+
* • A mode named "100%" can have both the High (manufacturer specific) and Max (standard) mode tag. Clients
|
|
104
|
+
* seeking the mode for either High or Max will find the same mode in this case.
|
|
105
|
+
*
|
|
106
|
+
* • A mode that includes a LowEnergy tag can be displayed by the client using a widget icon that shows a
|
|
107
|
+
* green leaf.
|
|
108
|
+
*
|
|
109
|
+
* • A mode that includes a LowNoise tag may be used by the client when the user wishes for a lower level of
|
|
110
|
+
* audible sound, less likely to disturb the household’s activities.
|
|
111
|
+
*
|
|
112
|
+
* • A mode that includes a LowEnergy tag (standard, defined in this cluster specification) and also a
|
|
113
|
+
* Delicate tag (standard, defined in the namespace of a Laundry Mode derived cluster).
|
|
114
|
+
*
|
|
115
|
+
* • A mode that includes both a generic Quick tag (defined here), and Vacuum and Mop tags, (defined in the
|
|
116
|
+
* RVC Clean cluster that is a derivation of this cluster).
|
|
117
|
+
*
|
|
118
|
+
* @see {@link MatterSpecification.v13.Cluster} § 1.10.5.2.3
|
|
119
|
+
*/
|
|
120
|
+
modeTags: TlvField(2, TlvArray(EnergyEvseMode2.TlvModeTagStruct, { maxLength: 8 }))
|
|
121
|
+
});
|
|
33
122
|
EnergyEvseMode2.OnOffComponent = MutableCluster.Component({
|
|
34
123
|
attributes: {
|
|
35
124
|
/**
|
|
@@ -70,7 +159,7 @@ var EnergyEvseMode;
|
|
|
70
159
|
*
|
|
71
160
|
* @see {@link MatterSpecification.v13.Cluster} § 1.10.6.2
|
|
72
161
|
*/
|
|
73
|
-
supportedModes: FixedAttribute(0, TlvArray(
|
|
162
|
+
supportedModes: FixedAttribute(0, TlvArray(EnergyEvseMode2.TlvModeOption, { minLength: 2, maxLength: 255 })),
|
|
74
163
|
/**
|
|
75
164
|
* Indicates the current mode of the server.
|
|
76
165
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/clusters/energy-evse-mode.ts"],
|
|
4
|
-
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,SAAS,sBAAsB;AAC/B;AAAA,EACI;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACG;AACP,SAAS,
|
|
4
|
+
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,SAAS,sBAAsB;AAC/B;AAAA,EACI;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACG;AACP,SAAS,UAAU,eAAe;AAClC,SAAS,mBAAmB;AAC5B,SAAS,eAAe;AACxB,SAAS,gBAAgB;AACzB,SAAS,UAAU,kBAAk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;AAAA,IAEA,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAQN,cAAc,QAAQ,GAAK,SAAS,wBAAwB,GAAK,aAAa;AAAA,IAClF;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,YAAY,eAAe,WAAW,EAAE,OAAO,EAAE,OAAO,KAAK,GAAG,WAAWA,gBAAA,eAAe,CAAC;AAAA,EAC/F,CAAC;AAKM,EAAMA,gBAAA,kBAAkB,eAAeA,gBAAA,IAAI;AAa3C,EAAMA,gBAAA,UAAmBA,gBAAA;AAChC,QAAM,WAAW,EAAE,OAAO,KAAK;AAKxB,EAAMA,gBAAA,mBAAmB,eAAe;AAAA,IAC3C,IAAIA,gBAAA,QAAQ;AAAA,IACZ,MAAMA,gBAAA,QAAQ;AAAA,IACd,UAAUA,gBAAA,QAAQ;AAAA,IAClB,UAAUA,gBAAA,QAAQ;AAAA,IAClB,YAAY;AAAA,MACR,GAAGA,gBAAA,QAAQ;AAAA,MACX,QAAQ,eAAe,cAAcA,gBAAA,eAAe,WAAW,QAAQ,EAAE,aAAa,CAAC,QAAQ,EAAE,CAAC;AAAA,IACtG;AAAA,IACA,UAAUA,gBAAA,QAAQ;AAAA,EACtB,CAAC;AAUM,EAAMA,gBAAA,WAAqBA,gBAAA;AAAA,GA3WrB;AA+WV,MAAM,wBAAwB,eAAe;AACpD,gBAAgB,SAAS,eAAe,QAAQ;",
|
|
5
5
|
"names": ["EnergyEvseMode", "Feature", "ModeTag"]
|
|
6
6
|
}
|
|
@@ -183,6 +183,9 @@ export declare namespace FanControl {
|
|
|
183
183
|
* Fan using high speed
|
|
184
184
|
*/
|
|
185
185
|
High = 3,
|
|
186
|
+
/**
|
|
187
|
+
* @deprecated
|
|
188
|
+
*/
|
|
186
189
|
On = 4,
|
|
187
190
|
/**
|
|
188
191
|
* Fan is using auto mode
|
|
@@ -190,6 +193,8 @@ export declare namespace FanControl {
|
|
|
190
193
|
Auto = 5,
|
|
191
194
|
/**
|
|
192
195
|
* Fan is using smart mode
|
|
196
|
+
*
|
|
197
|
+
* @deprecated
|
|
193
198
|
*/
|
|
194
199
|
Smart = 6
|
|
195
200
|
}
|