-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
Copy pathdishwasher-mode-cluster.xml
88 lines (77 loc) · 3.7 KB
/
dishwasher-mode-cluster.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version="1.0"?>
<!--
Copyright (c) 2023 Project CHIP Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<configurator>
<domain name="CHIP"/>
<enum name="ModeTag" type="enum16">
<cluster code="0x0059"/>
<!-- These are the base values (see `enum class ModeTag`
in src/app/clusters/mode-base-server/mode-base-cluster-objects.h for the namespace source of truth
until it is possible to auto-include these without duplication in codegen. -->
<item value="0x0000" name="Auto"/>
<item value="0x0001" name="Quick"/>
<item value="0x0002" name="Quiet"/>
<item value="0x0003" name="LowNoise"/>
<item value="0x0004" name="LowEnergy"/>
<item value="0x0005" name="Vacation"/>
<item value="0x0006" name="Min"/>
<item value="0x0007" name="Max"/>
<item value="0x0008" name="Night"/>
<item value="0x0009" name="Day"/>
<!-- Derived cluster-specific values -->
<item value="0x4000" name="Normal"/>
<item value="0x4001" name="Heavy"/>
<item value="0x4002" name="Light"/>
</enum>
<cluster>
<domain>General</domain>
<name>Dishwasher Mode</name>
<code>0x0059</code>
<define>DISHWASHER_MODE_CLUSTER</define>
<client init="false" tick="false">true</client>
<server init="false" tick="false">true</server>
<description>Attributes and commands for selecting a mode from a list of supported options.</description>
<globalAttribute side="either" code="0xFFFD" value="2"/>
<features>
<feature bit="0" code="DEPONOFF" name="OnOff" summary="Dependency with the OnOff cluster">
<optionalConform/>
</feature>
</features>
<!-- Base data types -->
<attribute side="server" code="0x0000" name="SupportedModes" define="SUPPORTED_MODES" type="array" entryType="ModeOptionStruct" length="255">
<mandatoryConform/>
</attribute>
<attribute side="server" code="0x0001" name="CurrentMode" define="CURRENT_MODE" type="int8u" reportable="true">
<mandatoryConform/>
</attribute>
<attribute side="server" code="0x0002" define="START_UP_MODE" type="int8u" writable="true" optional="true" isNullable="true">StartUpMode</attribute>
<attribute side="server" code="0x0003" define="ON_MODE" type="int8u" writable="true" optional="true" isNullable="true">OnMode</attribute>
<!-- Commands -->
<command source="client" code="0x00" name="ChangeToMode" response="ChangeToModeResponse" optional="false">
<description>
This command is used to change device modes.
On receipt of this command the device SHALL respond with a ChangeToModeResponse command.
</description>
<arg name="NewMode" type="int8u" optional="false"/>
<mandatoryConform/>
</command>
<command source="server" code="0x01" name="ChangeToModeResponse" disableDefaultResponse="true" optional="false">
<description>
This command is sent by the device on receipt of the ChangeToModeWithStatus command.
</description>
<arg name="Status" type="enum8" optional="false"/>
<arg name="StatusText" type="char_string" lenght="64" optional="true"/>
<mandatoryConform/>
</command>
</cluster>
</configurator>