|
| 1 | +<?xml version="1.0"?> |
| 2 | +<!-- |
| 3 | +Copyright (c) 2024 Project CHIP Authors |
| 4 | +
|
| 5 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +you may not use this file except in compliance with the License. |
| 7 | +You may obtain a copy of the License at |
| 8 | +
|
| 9 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +
|
| 11 | +Unless required by applicable law or agreed to in writing, software |
| 12 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +See the License for the specific language governing permissions and |
| 15 | +limitations under the License. |
| 16 | +--> |
| 17 | +<configurator> |
| 18 | + <domain name="CHIP"/> |
| 19 | + |
| 20 | + <enum name="ModeTag" type="enum16"> |
| 21 | + <cluster code="0x009E"/> |
| 22 | + <item value="0x4000" name="Off"/> |
| 23 | + <item value="0x4001" name="Manual"/> |
| 24 | + <item value="0x4002" name="Timed"/> |
| 25 | + </enum> |
| 26 | + |
| 27 | + <cluster> |
| 28 | + <domain>General</domain> |
| 29 | + <name>Water Heater Mode</name> |
| 30 | + <code>0x009E</code> |
| 31 | + <define>WATER_HEATER_MODE_CLUSTER</define> |
| 32 | + <client init="false" tick="false">true</client> |
| 33 | + <server init="false" tick="false">true</server> |
| 34 | + <description>Attributes and commands for selecting a mode from a list of supported options.</description> |
| 35 | + <globalAttribute side="either" code="0xFFFD" value="1"/> |
| 36 | + |
| 37 | + <features> |
| 38 | + <feature bit="0" code="DEPONOFF" name="OnOff" summary="Dependency with the OnOff cluster"> |
| 39 | + <optionalConform/> |
| 40 | + </feature> |
| 41 | + </features> |
| 42 | + |
| 43 | + <!-- Base data types --> |
| 44 | + <attribute side="server" code="0x0000" define="SUPPORTED_MODES" type="array" entryType="ModeOptionStruct" writable="false" optional="false" isNullable="false" length="255">SupportedModes</attribute> |
| 45 | + <attribute side="server" code="0x0001" define="CURRENT_MODE" type="int8u" writable="false" optional="false" isNullable="false" reportable="true">CurrentMode</attribute> |
| 46 | + <attribute side="server" code="0x0002" define="START_UP_MODE" type="int8u" writable="true" optional="true" isNullable="true">StartUpMode</attribute> |
| 47 | + <attribute side="server" code="0x0003" define="ON_MODE" type="int8u" writable="true" optional="true" isNullable="true">OnMode</attribute> |
| 48 | + |
| 49 | + <!-- Commands --> |
| 50 | + <command source="client" code="0x00" name="ChangeToMode" response="ChangeToModeResponse" optional="false"> |
| 51 | + <description> |
| 52 | + This command is used to change device modes. |
| 53 | + On receipt of this command the device SHALL respond with a ChangeToModeResponse command. |
| 54 | + </description> |
| 55 | + <arg name="NewMode" type="int8u" optional="false"/> |
| 56 | + </command> |
| 57 | + |
| 58 | + <command source="server" code="0x01" name="ChangeToModeResponse" disableDefaultResponse="true" optional="false"> |
| 59 | + <description> |
| 60 | + This command is sent by the device on receipt of the ChangeToModeWithStatus command. |
| 61 | + </description> |
| 62 | + <arg name="Status" type="enum8" optional="false"/> |
| 63 | + <arg name="StatusText" type="char_string" lenght="64" optional="true"/> |
| 64 | + </command> |
| 65 | + </cluster> |
| 66 | +</configurator> |
0 commit comments