Skip to content

Commit

Permalink
DM XML: Add device types to script and re-gen (#30387)
Browse files Browse the repository at this point in the history
* DM XML: Add device types to script and re-gen

* Address review comments, use new scraper, add version

* Use old scraper version
  • Loading branch information
cecille authored Nov 15, 2023
1 parent d47aeb4 commit aeee127
Show file tree
Hide file tree
Showing 70 changed files with 6,500 additions and 34 deletions.
73 changes: 73 additions & 0 deletions data_model/device_types/Aggregator.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?xml version="1.0"?>
<!--
Copyright (C) Connectivity Standards Alliance (2021). All rights reserved.
The information within this document is the property of the Connectivity
Standards Alliance and its use and disclosure are restricted, except as
expressly set forth herein.
Connectivity Standards Alliance hereby grants you a fully-paid, non-exclusive,
nontransferable, worldwide, limited and revocable license (without the right to
sublicense), under Connectivity Standards Alliance's applicable copyright
rights, to view, download, save, reproduce and use the document solely for your
own internal purposes and in accordance with the terms of the license set forth
herein. This license does not authorize you to, and you expressly warrant that
you shall not: (a) permit others (outside your organization) to use this
document; (b) post or publish this document; (c) modify, adapt, translate, or
otherwise change this document in any manner or create any derivative work
based on this document; (d) remove or modify any notice or label on this
document, including this Copyright Notice, License and Disclaimer. The
Connectivity Standards Alliance does not grant you any license hereunder other
than as expressly stated herein.
Elements of this document may be subject to third party intellectual property
rights, including without limitation, patent, copyright or trademark rights,
and any such third party may or may not be a member of the Connectivity
Standards Alliance. Connectivity Standards Alliance members grant other
Connectivity Standards Alliance members certain intellectual property rights as
set forth in the Connectivity Standards Alliance IPR Policy. Connectivity
Standards Alliance members do not grant you any rights under this license. The
Connectivity Standards Alliance is not responsible for, and shall not be held
responsible in any manner for, identifying or failing to identify any or all
such third party intellectual property rights. Please visit www.csa-iot.org for
more information on how to become a member of the Connectivity Standards
Alliance.
This document and the information contained herein are provided on an “AS IS”
basis and the Connectivity Standards Alliance DISCLAIMS ALL WARRANTIES EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO (A) ANY WARRANTY THAT THE USE OF THE
INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OF THIRD PARTIES (INCLUDING
WITHOUT LIMITATION ANY INTELLECTUAL PROPERTY RIGHTS INCLUDING PATENT, COPYRIGHT
OR TRADEMARK RIGHTS); OR (B) ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE, TITLE OR NONINFRINGEMENT. IN NO EVENT WILL THE
CONNECTIVITY STANDARDS ALLIANCE BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF
BUSINESS, LOSS OF USE OF DATA, INTERRUPTION OF BUSINESS, OR FOR ANY OTHER
DIRECT, INDIRECT, SPECIAL OR EXEMPLARY, INCIDENTAL, PUNITIVE OR CONSEQUENTIAL
DAMAGES OF ANY KIND, IN CONTRACT OR IN TORT, IN CONNECTION WITH THIS DOCUMENT
OR THE INFORMATION CONTAINED HEREIN, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
LOSS OR DAMAGE.
All company, brand and product names in this document may be trademarks that
are the sole property of their respective owners.
This notice and disclaimer must be included on all copies of this document.
Connectivity Standards Alliance
508 Second Street, Suite 206
Davis, CA 95616, USA
-->
<deviceType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="types types.xsd devicetype devicetype.xsd" id="0x000e" name="Aggregator" revision="1">
<revisionHistory>
<revision revision="0" summary="Represents device definitions prior to device type revision numbers"/>
<revision revision="1" summary="Initial release of this document"/>
</revisionHistory>
<classification class="dynamic utility" scope="endpoint"/>
<conditions/>
<clusters>
<cluster id="0x0003" name="Identify" side="server">
<optionalConform/>
</cluster>
<cluster id="0x0025" name="Actions" side="server">
<optionalConform/>
</cluster>
</clusters>
</deviceType>
Original file line number Diff line number Diff line change
Expand Up @@ -55,37 +55,27 @@ Connectivity Standards Alliance
508 Second Street, Suite 206
Davis, CA 95616, USA
-->
<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="types types.xsd cluster cluster.xsd" id="0x0051" name="Laundry Washer Mode" revision="1">
<deviceType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="types types.xsd devicetype devicetype.xsd" id="0x002d" name="Air Purifier" revision="1">
<revisionHistory>
<revision revision="1" summary="Initial Release"/>
<revision revision="1" summary="Initial Matter release"/>
</revisionHistory>
<classification hierarchy="derived" baseCluster="Mode Base" role="application" picsCode="LWM" scope="Endpoint"/>
<dataTypes>
<struct name="ModeOptionStruct">
<field id="0" name="Label">
<mandatoryConform/>
</field>
<field id="1" name="Mode">
<mandatoryConform/>
</field>
<field id="2" name="ModeTags">
<mandatoryConform/>
<constraint type="between" from="1" to="8"/>
</field>
</struct>
</dataTypes>
<attributes>
<attribute id="0x0000" name="SupportedModes">
<classification class="simple" scope="endpoint"/>
<conditions/>
<clusters>
<cluster id="0x0003" name="Identify" side="server">
<mandatoryConform/>
</attribute>
<attribute id="0x0001" name="CurrentMode">
</cluster>
<cluster id="0x0004" name="Groups" side="server">
<optionalConform/>
</cluster>
<cluster id="0x0071" name="HEPA Filter Monitoring" side="server">
<optionalConform/>
</cluster>
<cluster id="0x0072" name="Activated Carbon Filter Monitoring" side="server">
<optionalConform/>
</cluster>
<cluster id="0x0202" name="Fan Control" side="server">
<mandatoryConform/>
</attribute>
<attribute id="0x0002" name="StartUpMode">
<provisionalConform/>
</attribute>
<attribute id="0x0003" name="OnMode">
<provisionalConform/>
</attribute>
</attributes>
</cluster>
</cluster>
</clusters>
</deviceType>
108 changes: 108 additions & 0 deletions data_model/device_types/AirQualitySensor.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
<?xml version="1.0"?>
<!--
Copyright (C) Connectivity Standards Alliance (2023). All rights reserved.
The information within this document is the property of the Connectivity
Standards Alliance and its use and disclosure are restricted, except as
expressly set forth herein.
Connectivity Standards Alliance hereby grants you a fully-paid, non-exclusive,
nontransferable, worldwide, limited and revocable license (without the right to
sublicense), under Connectivity Standards Alliance's applicable copyright
rights, to view, download, save, reproduce and use the document solely for your
own internal purposes and in accordance with the terms of the license set forth
herein. This license does not authorize you to, and you expressly warrant that
you shall not: (a) permit others (outside your organization) to use this
document; (b) post or publish this document; (c) modify, adapt, translate, or
otherwise change this document in any manner or create any derivative work
based on this document; (d) remove or modify any notice or label on this
document, including this Copyright Notice, License and Disclaimer. The
Connectivity Standards Alliance does not grant you any license hereunder other
than as expressly stated herein.
Elements of this document may be subject to third party intellectual property
rights, including without limitation, patent, copyright or trademark rights,
and any such third party may or may not be a member of the Connectivity
Standards Alliance. Connectivity Standards Alliance members grant other
Connectivity Standards Alliance members certain intellectual property rights as
set forth in the Connectivity Standards Alliance IPR Policy. Connectivity
Standards Alliance members do not grant you any rights under this license. The
Connectivity Standards Alliance is not responsible for, and shall not be held
responsible in any manner for, identifying or failing to identify any or all
such third party intellectual property rights. Please visit www.csa-iot.org for
more information on how to become a member of the Connectivity Standards
Alliance.
This document and the information contained herein are provided on an “AS IS”
basis and the Connectivity Standards Alliance DISCLAIMS ALL WARRANTIES EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO (A) ANY WARRANTY THAT THE USE OF THE
INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OF THIRD PARTIES (INCLUDING
WITHOUT LIMITATION ANY INTELLECTUAL PROPERTY RIGHTS INCLUDING PATENT, COPYRIGHT
OR TRADEMARK RIGHTS); OR (B) ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE, TITLE OR NONINFRINGEMENT. IN NO EVENT WILL THE
CONNECTIVITY STANDARDS ALLIANCE BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF
BUSINESS, LOSS OF USE OF DATA, INTERRUPTION OF BUSINESS, OR FOR ANY OTHER
DIRECT, INDIRECT, SPECIAL OR EXEMPLARY, INCIDENTAL, PUNITIVE OR CONSEQUENTIAL
DAMAGES OF ANY KIND, IN CONTRACT OR IN TORT, IN CONNECTION WITH THIS DOCUMENT
OR THE INFORMATION CONTAINED HEREIN, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
LOSS OR DAMAGE.
All company, brand and product names in this document may be trademarks that
are the sole property of their respective owners.
This notice and disclaimer must be included on all copies of this document.
Connectivity Standards Alliance
508 Second Street, Suite 206
Davis, CA 95616, USA
-->
<deviceType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="types types.xsd devicetype devicetype.xsd" id="0x002c" name="Air Quality Sensor" revision="1">
<revisionHistory>
<revision revision="1" summary="Initial release of this document"/>
</revisionHistory>
<classification class="simple" scope="endpoint"/>
<conditions/>
<clusters>
<cluster id="0x0003" name="Identify" side="server">
<mandatoryConform/>
</cluster>
<cluster id="0x005b" name="Air Quality" side="server">
<mandatoryConform/>
</cluster>
<cluster id="0x0402" name="Temperature Measurement" side="server">
<optionalConform/>
</cluster>
<cluster id="0x0405" name="Relative Humidity Measurement" side="server">
<optionalConform/>
</cluster>
<cluster id="0x040c" name="Carbon Monoxide Concentration Measurement" side="server">
<optionalConform/>
</cluster>
<cluster id="0x040d" name="Carbon Dioxide Concentration Measurement" side="server">
<optionalConform/>
</cluster>
<cluster id="0x0413" name="Nitrogen Dioxide Concentration Measurement" side="server">
<optionalConform/>
</cluster>
<cluster id="0x0415" name="Ozone Concentration Measurement" side="server">
<optionalConform/>
</cluster>
<cluster id="0x042a" name="PM2.5 Concentration Measurement" side="server">
<optionalConform/>
</cluster>
<cluster id="0x042b" name="Formaldehyde Concentration Measurement" side="server">
<optionalConform/>
</cluster>
<cluster id="0x042c" name="PM1 Concentration Measurement" side="server">
<optionalConform/>
</cluster>
<cluster id="0x042d" name="PM10 Concentration Measurement" side="server">
<optionalConform/>
</cluster>
<cluster id="0x042e" name="Total Volatile Organic Compounds Concentration Measurement" side="server">
<optionalConform/>
</cluster>
<cluster id="0x042f" name="Radon Concentration Measurement" side="server">
<optionalConform/>
</cluster>
</clusters>
</deviceType>
65 changes: 65 additions & 0 deletions data_model/device_types/BaseDeviceType.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?xml version="1.0"?>
<!--
Copyright (C) Connectivity Standards Alliance (2021). All rights reserved.
The information within this document is the property of the Connectivity
Standards Alliance and its use and disclosure are restricted, except as
expressly set forth herein.
Connectivity Standards Alliance hereby grants you a fully-paid, non-exclusive,
nontransferable, worldwide, limited and revocable license (without the right to
sublicense), under Connectivity Standards Alliance's applicable copyright
rights, to view, download, save, reproduce and use the document solely for your
own internal purposes and in accordance with the terms of the license set forth
herein. This license does not authorize you to, and you expressly warrant that
you shall not: (a) permit others (outside your organization) to use this
document; (b) post or publish this document; (c) modify, adapt, translate, or
otherwise change this document in any manner or create any derivative work
based on this document; (d) remove or modify any notice or label on this
document, including this Copyright Notice, License and Disclaimer. The
Connectivity Standards Alliance does not grant you any license hereunder other
than as expressly stated herein.
Elements of this document may be subject to third party intellectual property
rights, including without limitation, patent, copyright or trademark rights,
and any such third party may or may not be a member of the Connectivity
Standards Alliance. Connectivity Standards Alliance members grant other
Connectivity Standards Alliance members certain intellectual property rights as
set forth in the Connectivity Standards Alliance IPR Policy. Connectivity
Standards Alliance members do not grant you any rights under this license. The
Connectivity Standards Alliance is not responsible for, and shall not be held
responsible in any manner for, identifying or failing to identify any or all
such third party intellectual property rights. Please visit www.csa-iot.org for
more information on how to become a member of the Connectivity Standards
Alliance.
This document and the information contained herein are provided on an “AS IS”
basis and the Connectivity Standards Alliance DISCLAIMS ALL WARRANTIES EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO (A) ANY WARRANTY THAT THE USE OF THE
INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OF THIRD PARTIES (INCLUDING
WITHOUT LIMITATION ANY INTELLECTUAL PROPERTY RIGHTS INCLUDING PATENT, COPYRIGHT
OR TRADEMARK RIGHTS); OR (B) ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE, TITLE OR NONINFRINGEMENT. IN NO EVENT WILL THE
CONNECTIVITY STANDARDS ALLIANCE BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF
BUSINESS, LOSS OF USE OF DATA, INTERRUPTION OF BUSINESS, OR FOR ANY OTHER
DIRECT, INDIRECT, SPECIAL OR EXEMPLARY, INCIDENTAL, PUNITIVE OR CONSEQUENTIAL
DAMAGES OF ANY KIND, IN CONTRACT OR IN TORT, IN CONNECTION WITH THIS DOCUMENT
OR THE INFORMATION CONTAINED HEREIN, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
LOSS OR DAMAGE.
All company, brand and product names in this document may be trademarks that
are the sole property of their respective owners.
This notice and disclaimer must be included on all copies of this document.
Connectivity Standards Alliance
508 Second Street, Suite 206
Davis, CA 95616, USA
-->
<deviceType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="types types.xsd devicetype devicetype.xsd" id="" name="Base Device Type" revision="2">
<revisionHistory>
<revision revision="0" summary="Represents device definitions prior to device type revision numbers"/>
<revision revision="1" summary="Initial release of this document"/>
<revision revision="2" summary="Duplicate condition replaces Multiple condition"/>
</revisionHistory>
<conditions/>
</deviceType>
Loading

0 comments on commit aeee127

Please sign in to comment.