matterbridge 3.3.6 → 3.3.7-dev-20251104-7c779b9
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/CHANGELOG.md +21 -0
- package/dist/broadcastServer.js +1 -92
- package/dist/broadcastServerTypes.js +0 -24
- package/dist/cli.js +1 -97
- package/dist/cliEmitter.js +0 -37
- package/dist/cliHistory.js +0 -38
- package/dist/clusters/export.js +0 -2
- package/dist/defaultConfigSchema.js +0 -24
- package/dist/deviceManager.js +1 -124
- package/dist/devices/airConditioner.js +0 -57
- package/dist/devices/batteryStorage.js +1 -48
- package/dist/devices/cooktop.js +0 -55
- package/dist/devices/dishwasher.js +0 -57
- package/dist/devices/evse.js +10 -74
- package/dist/devices/export.js +0 -5
- package/dist/devices/extractorHood.js +0 -42
- package/dist/devices/heatPump.js +2 -50
- package/dist/devices/laundryDryer.js +3 -62
- package/dist/devices/laundryWasher.js +4 -70
- package/dist/devices/microwaveOven.js +5 -88
- package/dist/devices/oven.js +0 -85
- package/dist/devices/refrigerator.js +0 -102
- package/dist/devices/roboticVacuumCleaner.js +9 -100
- package/dist/devices/solarPower.js +0 -38
- package/dist/devices/speaker.js +0 -84
- package/dist/devices/temperatureControl.js +3 -24
- package/dist/devices/waterHeater.js +2 -82
- package/dist/dgram/coap.js +13 -126
- package/dist/dgram/dgram.js +2 -114
- package/dist/dgram/mb_coap.js +3 -41
- package/dist/dgram/mb_mdns.js +15 -80
- package/dist/dgram/mdns.js +137 -299
- package/dist/dgram/multicast.js +1 -62
- package/dist/dgram/unicast.js +0 -54
- package/dist/frontend.js +55 -451
- package/dist/frontendTypes.js +0 -45
- package/dist/helpers.js +0 -53
- package/dist/index.js +0 -25
- package/dist/logger/export.js +0 -1
- package/dist/matter/behaviors.js +0 -2
- package/dist/matter/clusters.js +0 -2
- package/dist/matter/devices.js +0 -2
- package/dist/matter/endpoints.js +0 -2
- package/dist/matter/export.js +0 -3
- package/dist/matter/types.js +0 -3
- package/dist/matterbridge.js +66 -841
- package/dist/matterbridgeAccessoryPlatform.js +0 -37
- package/dist/matterbridgeBehaviors.js +5 -68
- package/dist/matterbridgeDeviceTypes.js +17 -638
- package/dist/matterbridgeDynamicPlatform.js +0 -37
- package/dist/matterbridgeEndpoint.js +52 -1408
- package/dist/matterbridgeEndpointHelpers.js +19 -464
- package/dist/matterbridgePlatform.js +1 -341
- package/dist/matterbridgeTypes.js +0 -26
- package/dist/pluginManager.js +3 -319
- package/dist/shelly.js +7 -168
- package/dist/storage/export.js +0 -1
- package/dist/update.js +0 -69
- package/dist/utils/colorUtils.js +2 -97
- package/dist/utils/commandLine.js +0 -60
- package/dist/utils/copyDirectory.js +1 -38
- package/dist/utils/createDirectory.js +0 -33
- package/dist/utils/createZip.js +2 -47
- package/dist/utils/deepCopy.js +0 -39
- package/dist/utils/deepEqual.js +1 -72
- package/dist/utils/error.js +0 -41
- package/dist/utils/export.js +0 -1
- package/dist/utils/format.js +0 -49
- package/dist/utils/hex.js +0 -124
- package/dist/utils/inspector.js +1 -69
- package/dist/utils/isvalid.js +0 -101
- package/dist/utils/jestHelpers.js +3 -153
- package/dist/utils/network.js +5 -96
- package/dist/utils/spawn.js +0 -71
- package/dist/utils/tracker.js +1 -64
- package/dist/utils/wait.js +8 -60
- package/frontend/build/assets/index.css +1 -1
- package/frontend/build/assets/index.js +4 -4
- package/frontend/package.json +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -2
- package/dist/broadcastServer.d.ts +0 -112
- package/dist/broadcastServer.d.ts.map +0 -1
- package/dist/broadcastServer.js.map +0 -1
- package/dist/broadcastServerTypes.d.ts +0 -803
- package/dist/broadcastServerTypes.d.ts.map +0 -1
- package/dist/broadcastServerTypes.js.map +0 -1
- package/dist/cli.d.ts +0 -30
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/cliEmitter.d.ts +0 -50
- package/dist/cliEmitter.d.ts.map +0 -1
- package/dist/cliEmitter.js.map +0 -1
- package/dist/cliHistory.d.ts +0 -48
- package/dist/cliHistory.d.ts.map +0 -1
- package/dist/cliHistory.js.map +0 -1
- package/dist/clusters/export.d.ts +0 -2
- package/dist/clusters/export.d.ts.map +0 -1
- package/dist/clusters/export.js.map +0 -1
- package/dist/defaultConfigSchema.d.ts +0 -28
- package/dist/defaultConfigSchema.d.ts.map +0 -1
- package/dist/defaultConfigSchema.js.map +0 -1
- package/dist/deviceManager.d.ts +0 -117
- package/dist/deviceManager.d.ts.map +0 -1
- package/dist/deviceManager.js.map +0 -1
- package/dist/devices/airConditioner.d.ts +0 -98
- package/dist/devices/airConditioner.d.ts.map +0 -1
- package/dist/devices/airConditioner.js.map +0 -1
- package/dist/devices/batteryStorage.d.ts +0 -48
- package/dist/devices/batteryStorage.d.ts.map +0 -1
- package/dist/devices/batteryStorage.js.map +0 -1
- package/dist/devices/cooktop.d.ts +0 -60
- package/dist/devices/cooktop.d.ts.map +0 -1
- package/dist/devices/cooktop.js.map +0 -1
- package/dist/devices/dishwasher.d.ts +0 -71
- package/dist/devices/dishwasher.d.ts.map +0 -1
- package/dist/devices/dishwasher.js.map +0 -1
- package/dist/devices/evse.d.ts +0 -76
- package/dist/devices/evse.d.ts.map +0 -1
- package/dist/devices/evse.js.map +0 -1
- package/dist/devices/export.d.ts +0 -17
- package/dist/devices/export.d.ts.map +0 -1
- package/dist/devices/export.js.map +0 -1
- package/dist/devices/extractorHood.d.ts +0 -46
- package/dist/devices/extractorHood.d.ts.map +0 -1
- package/dist/devices/extractorHood.js.map +0 -1
- package/dist/devices/heatPump.d.ts +0 -47
- package/dist/devices/heatPump.d.ts.map +0 -1
- package/dist/devices/heatPump.js.map +0 -1
- package/dist/devices/laundryDryer.d.ts +0 -67
- package/dist/devices/laundryDryer.d.ts.map +0 -1
- package/dist/devices/laundryDryer.js.map +0 -1
- package/dist/devices/laundryWasher.d.ts +0 -81
- package/dist/devices/laundryWasher.d.ts.map +0 -1
- package/dist/devices/laundryWasher.js.map +0 -1
- package/dist/devices/microwaveOven.d.ts +0 -168
- package/dist/devices/microwaveOven.d.ts.map +0 -1
- package/dist/devices/microwaveOven.js.map +0 -1
- package/dist/devices/oven.d.ts +0 -105
- package/dist/devices/oven.d.ts.map +0 -1
- package/dist/devices/oven.js.map +0 -1
- package/dist/devices/refrigerator.d.ts +0 -118
- package/dist/devices/refrigerator.d.ts.map +0 -1
- package/dist/devices/refrigerator.js.map +0 -1
- package/dist/devices/roboticVacuumCleaner.d.ts +0 -112
- package/dist/devices/roboticVacuumCleaner.d.ts.map +0 -1
- package/dist/devices/roboticVacuumCleaner.js.map +0 -1
- package/dist/devices/solarPower.d.ts +0 -40
- package/dist/devices/solarPower.d.ts.map +0 -1
- package/dist/devices/solarPower.js.map +0 -1
- package/dist/devices/speaker.d.ts +0 -87
- package/dist/devices/speaker.d.ts.map +0 -1
- package/dist/devices/speaker.js.map +0 -1
- package/dist/devices/temperatureControl.d.ts +0 -166
- package/dist/devices/temperatureControl.d.ts.map +0 -1
- package/dist/devices/temperatureControl.js.map +0 -1
- package/dist/devices/waterHeater.d.ts +0 -111
- package/dist/devices/waterHeater.d.ts.map +0 -1
- package/dist/devices/waterHeater.js.map +0 -1
- package/dist/dgram/coap.d.ts +0 -205
- package/dist/dgram/coap.d.ts.map +0 -1
- package/dist/dgram/coap.js.map +0 -1
- package/dist/dgram/dgram.d.ts +0 -141
- package/dist/dgram/dgram.d.ts.map +0 -1
- package/dist/dgram/dgram.js.map +0 -1
- package/dist/dgram/mb_coap.d.ts +0 -24
- package/dist/dgram/mb_coap.d.ts.map +0 -1
- package/dist/dgram/mb_coap.js.map +0 -1
- package/dist/dgram/mb_mdns.d.ts +0 -24
- package/dist/dgram/mb_mdns.d.ts.map +0 -1
- package/dist/dgram/mb_mdns.js.map +0 -1
- package/dist/dgram/mdns.d.ts +0 -290
- package/dist/dgram/mdns.d.ts.map +0 -1
- package/dist/dgram/mdns.js.map +0 -1
- package/dist/dgram/multicast.d.ts +0 -67
- package/dist/dgram/multicast.d.ts.map +0 -1
- package/dist/dgram/multicast.js.map +0 -1
- package/dist/dgram/unicast.d.ts +0 -56
- package/dist/dgram/unicast.d.ts.map +0 -1
- package/dist/dgram/unicast.js.map +0 -1
- package/dist/frontend.d.ts +0 -236
- package/dist/frontend.d.ts.map +0 -1
- package/dist/frontend.js.map +0 -1
- package/dist/frontendTypes.d.ts +0 -529
- package/dist/frontendTypes.d.ts.map +0 -1
- package/dist/frontendTypes.js.map +0 -1
- package/dist/helpers.d.ts +0 -48
- package/dist/helpers.d.ts.map +0 -1
- package/dist/helpers.js.map +0 -1
- package/dist/index.d.ts +0 -33
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/logger/export.d.ts +0 -2
- package/dist/logger/export.d.ts.map +0 -1
- package/dist/logger/export.js.map +0 -1
- package/dist/matter/behaviors.d.ts +0 -2
- package/dist/matter/behaviors.d.ts.map +0 -1
- package/dist/matter/behaviors.js.map +0 -1
- package/dist/matter/clusters.d.ts +0 -2
- package/dist/matter/clusters.d.ts.map +0 -1
- package/dist/matter/clusters.js.map +0 -1
- package/dist/matter/devices.d.ts +0 -2
- package/dist/matter/devices.d.ts.map +0 -1
- package/dist/matter/devices.js.map +0 -1
- package/dist/matter/endpoints.d.ts +0 -2
- package/dist/matter/endpoints.d.ts.map +0 -1
- package/dist/matter/endpoints.js.map +0 -1
- package/dist/matter/export.d.ts +0 -5
- package/dist/matter/export.d.ts.map +0 -1
- package/dist/matter/export.js.map +0 -1
- package/dist/matter/types.d.ts +0 -3
- package/dist/matter/types.d.ts.map +0 -1
- package/dist/matter/types.js.map +0 -1
- package/dist/matterbridge.d.ts +0 -476
- package/dist/matterbridge.d.ts.map +0 -1
- package/dist/matterbridge.js.map +0 -1
- package/dist/matterbridgeAccessoryPlatform.d.ts +0 -42
- package/dist/matterbridgeAccessoryPlatform.d.ts.map +0 -1
- package/dist/matterbridgeAccessoryPlatform.js.map +0 -1
- package/dist/matterbridgeBehaviors.d.ts +0 -2404
- package/dist/matterbridgeBehaviors.d.ts.map +0 -1
- package/dist/matterbridgeBehaviors.js.map +0 -1
- package/dist/matterbridgeDeviceTypes.d.ts +0 -770
- package/dist/matterbridgeDeviceTypes.d.ts.map +0 -1
- package/dist/matterbridgeDeviceTypes.js.map +0 -1
- package/dist/matterbridgeDynamicPlatform.d.ts +0 -42
- package/dist/matterbridgeDynamicPlatform.d.ts.map +0 -1
- package/dist/matterbridgeDynamicPlatform.js.map +0 -1
- package/dist/matterbridgeEndpoint.d.ts +0 -1556
- package/dist/matterbridgeEndpoint.d.ts.map +0 -1
- package/dist/matterbridgeEndpoint.js.map +0 -1
- package/dist/matterbridgeEndpointHelpers.d.ts +0 -758
- package/dist/matterbridgeEndpointHelpers.d.ts.map +0 -1
- package/dist/matterbridgeEndpointHelpers.js.map +0 -1
- package/dist/matterbridgePlatform.d.ts +0 -402
- package/dist/matterbridgePlatform.d.ts.map +0 -1
- package/dist/matterbridgePlatform.js.map +0 -1
- package/dist/matterbridgeTypes.d.ts +0 -226
- package/dist/matterbridgeTypes.d.ts.map +0 -1
- package/dist/matterbridgeTypes.js.map +0 -1
- package/dist/pluginManager.d.ts +0 -347
- package/dist/pluginManager.d.ts.map +0 -1
- package/dist/pluginManager.js.map +0 -1
- package/dist/shelly.d.ts +0 -174
- package/dist/shelly.d.ts.map +0 -1
- package/dist/shelly.js.map +0 -1
- package/dist/storage/export.d.ts +0 -2
- package/dist/storage/export.d.ts.map +0 -1
- package/dist/storage/export.js.map +0 -1
- package/dist/update.d.ts +0 -75
- package/dist/update.d.ts.map +0 -1
- package/dist/update.js.map +0 -1
- package/dist/utils/colorUtils.d.ts +0 -101
- package/dist/utils/colorUtils.d.ts.map +0 -1
- package/dist/utils/colorUtils.js.map +0 -1
- package/dist/utils/commandLine.d.ts +0 -66
- package/dist/utils/commandLine.d.ts.map +0 -1
- package/dist/utils/commandLine.js.map +0 -1
- package/dist/utils/copyDirectory.d.ts +0 -33
- package/dist/utils/copyDirectory.d.ts.map +0 -1
- package/dist/utils/copyDirectory.js.map +0 -1
- package/dist/utils/createDirectory.d.ts +0 -34
- package/dist/utils/createDirectory.d.ts.map +0 -1
- package/dist/utils/createDirectory.js.map +0 -1
- package/dist/utils/createZip.d.ts +0 -39
- package/dist/utils/createZip.d.ts.map +0 -1
- package/dist/utils/createZip.js.map +0 -1
- package/dist/utils/deepCopy.d.ts +0 -32
- package/dist/utils/deepCopy.d.ts.map +0 -1
- package/dist/utils/deepCopy.js.map +0 -1
- package/dist/utils/deepEqual.d.ts +0 -54
- package/dist/utils/deepEqual.d.ts.map +0 -1
- package/dist/utils/deepEqual.js.map +0 -1
- package/dist/utils/error.d.ts +0 -44
- package/dist/utils/error.d.ts.map +0 -1
- package/dist/utils/error.js.map +0 -1
- package/dist/utils/export.d.ts +0 -13
- package/dist/utils/export.d.ts.map +0 -1
- package/dist/utils/export.js.map +0 -1
- package/dist/utils/format.d.ts +0 -53
- package/dist/utils/format.d.ts.map +0 -1
- package/dist/utils/format.js.map +0 -1
- package/dist/utils/hex.d.ts +0 -89
- package/dist/utils/hex.d.ts.map +0 -1
- package/dist/utils/hex.js.map +0 -1
- package/dist/utils/inspector.d.ts +0 -87
- package/dist/utils/inspector.d.ts.map +0 -1
- package/dist/utils/inspector.js.map +0 -1
- package/dist/utils/isvalid.d.ts +0 -103
- package/dist/utils/isvalid.d.ts.map +0 -1
- package/dist/utils/isvalid.js.map +0 -1
- package/dist/utils/jestHelpers.d.ts +0 -139
- package/dist/utils/jestHelpers.d.ts.map +0 -1
- package/dist/utils/jestHelpers.js.map +0 -1
- package/dist/utils/network.d.ts +0 -101
- package/dist/utils/network.d.ts.map +0 -1
- package/dist/utils/network.js.map +0 -1
- package/dist/utils/spawn.d.ts +0 -35
- package/dist/utils/spawn.d.ts.map +0 -1
- package/dist/utils/spawn.js.map +0 -1
- package/dist/utils/tracker.d.ts +0 -108
- package/dist/utils/tracker.d.ts.map +0 -1
- package/dist/utils/tracker.js.map +0 -1
- package/dist/utils/wait.d.ts +0 -54
- package/dist/utils/wait.d.ts.map +0 -1
- package/dist/utils/wait.js.map +0 -1
|
@@ -1,31 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the class MatterbridgeDevice.
|
|
3
|
-
*
|
|
4
|
-
* @file matterbridgeDeviceTypes.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @created 2024-11-08
|
|
7
|
-
* @version 1.0.0
|
|
8
|
-
* @license Apache-2.0
|
|
9
|
-
*
|
|
10
|
-
* Copyright 2024, 2025, 2026 Luca Liguori.
|
|
11
|
-
*
|
|
12
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
-
* you may not use this file except in compliance with the License.
|
|
14
|
-
* You may obtain a copy of the License at
|
|
15
|
-
*
|
|
16
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
-
*
|
|
18
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
-
* See the License for the specific language governing permissions and
|
|
22
|
-
* limitations under the License.
|
|
23
|
-
*/
|
|
24
|
-
// eslint-disable-next-line no-console
|
|
25
1
|
if (process.argv.includes('--loader') || process.argv.includes('-loader'))
|
|
26
2
|
console.log('\u001B[32mMatterbridgeDeviceTypes loaded.\u001B[40;0m');
|
|
27
3
|
import { DeviceTypeId } from '@matter/types/datatype';
|
|
28
|
-
// @matter clusters
|
|
29
4
|
import { AccountLogin } from '@matter/types/clusters/account-login';
|
|
30
5
|
import { Actions } from '@matter/types/clusters/actions';
|
|
31
6
|
import { ActivatedCarbonFilterMonitoring } from '@matter/types/clusters/activated-carbon-filter-monitoring';
|
|
@@ -112,49 +87,15 @@ import { WaterHeaterMode } from '@matter/types/clusters/water-heater-mode';
|
|
|
112
87
|
import { WindowCovering } from '@matter/types/clusters/window-covering';
|
|
113
88
|
export var DeviceClasses;
|
|
114
89
|
(function (DeviceClasses) {
|
|
115
|
-
/** 1.1.5. Device Type Class Conditions */
|
|
116
|
-
/** Node device type. */
|
|
117
90
|
DeviceClasses["Node"] = "Node";
|
|
118
|
-
/**
|
|
119
|
-
* Application device type.
|
|
120
|
-
* Application devices types are typically the most datatype endpoints on a node and in the network.
|
|
121
|
-
*/
|
|
122
91
|
DeviceClasses["App"] = "App";
|
|
123
|
-
/**
|
|
124
|
-
* Utility device type.
|
|
125
|
-
* A Utility device type supports configuration and settings.
|
|
126
|
-
*/
|
|
127
92
|
DeviceClasses["Utility"] = "Utility";
|
|
128
|
-
/**
|
|
129
|
-
* Simple device type.
|
|
130
|
-
* A Simple device type supports local control that is persistent, independent, and unsupervised.
|
|
131
|
-
*/
|
|
132
93
|
DeviceClasses["Simple"] = "Simple";
|
|
133
|
-
/**
|
|
134
|
-
* Dynamic device type.
|
|
135
|
-
* A Dynamic device type supports intelligent and supervisory services, such as commissioning,
|
|
136
|
-
* monitoring, trend analysis, scheduling and central management. A dynamic device type is an
|
|
137
|
-
* application device type.
|
|
138
|
-
*/
|
|
139
94
|
DeviceClasses["Dynamic"] = "Dynamic";
|
|
140
|
-
/** The device type is composed of 2 or more device types. */
|
|
141
95
|
DeviceClasses["Composed"] = "Composed";
|
|
142
|
-
/** 1.1.6. Endpoint Type Class Conditions */
|
|
143
|
-
/** There exists a client application cluster on the endpoint. */
|
|
144
96
|
DeviceClasses["Client"] = "Client";
|
|
145
|
-
/** There exists a server application cluster on the endpoint. */
|
|
146
97
|
DeviceClasses["Server"] = "Server";
|
|
147
|
-
/**
|
|
148
|
-
* The endpoint and at least one of its sibling endpoints have an overlap in application device type(s),
|
|
149
|
-
* as defined in the "Disambiguation" section in the System Model specification. This condition triggers
|
|
150
|
-
* requirements for providing additional information about the endpoints in order to disambiguate
|
|
151
|
-
* between the endpoints (see "Disambiguation" section in the System Model specification).
|
|
152
|
-
*/
|
|
153
98
|
DeviceClasses["Duplicate"] = "Duplicate";
|
|
154
|
-
/**
|
|
155
|
-
* The endpoint represents a Bridged Device, for which information about the state of
|
|
156
|
-
* its power source is available to the Bridge
|
|
157
|
-
*/
|
|
158
99
|
DeviceClasses["BridgedPowerSourceInfo"] = "BridgedPowerSourceInfo";
|
|
159
100
|
})(DeviceClasses || (DeviceClasses = {}));
|
|
160
101
|
export const DeviceTypeDefinition = ({ name, code, deviceClass, revision, requiredServerClusters = [], optionalServerClusters = [], requiredClientClusters = [], optionalClientClusters = [], }) => ({
|
|
@@ -167,14 +108,13 @@ export const DeviceTypeDefinition = ({ name, code, deviceClass, revision, requir
|
|
|
167
108
|
requiredClientClusters,
|
|
168
109
|
optionalClientClusters,
|
|
169
110
|
});
|
|
170
|
-
// Chapter 2. Utility device types
|
|
171
111
|
export const rootNode = DeviceTypeDefinition({
|
|
172
112
|
name: 'MA-rootNode',
|
|
173
113
|
code: 0x0016,
|
|
174
114
|
deviceClass: DeviceClasses.Node,
|
|
175
115
|
revision: 3,
|
|
176
|
-
requiredServerClusters: [],
|
|
177
|
-
optionalServerClusters: [],
|
|
116
|
+
requiredServerClusters: [],
|
|
117
|
+
optionalServerClusters: [],
|
|
178
118
|
});
|
|
179
119
|
export const powerSource = DeviceTypeDefinition({
|
|
180
120
|
name: 'MA-powerSource',
|
|
@@ -204,27 +144,6 @@ export const OTAProvider = DeviceTypeDefinition({
|
|
|
204
144
|
requiredClientClusters: [OtaSoftwareUpdateRequestor.Cluster.id],
|
|
205
145
|
optionalClientClusters: [],
|
|
206
146
|
});
|
|
207
|
-
/**
|
|
208
|
-
2.5.3. Conditions
|
|
209
|
-
Please see the Base Device Type definition for conformance tags.
|
|
210
|
-
This device type SHALL only be used for Nodes which have a device type of Bridge.
|
|
211
|
-
|
|
212
|
-
2.5.5. Cluster Requirements
|
|
213
|
-
Each endpoint supporting this device type SHALL include these clusters based on the conformance
|
|
214
|
-
defined below.
|
|
215
|
-
- 0x0039 Bridged Device Basic Information Server
|
|
216
|
-
|
|
217
|
-
2.5.6. Endpoint Composition
|
|
218
|
-
• A Bridged Node endpoint SHALL support one of the following composition patterns:
|
|
219
|
-
◦ Separate Endpoints: All application device types are supported on separate endpoints, and
|
|
220
|
-
not on the Bridged Node endpoint. The Bridged Node endpoint’s Descriptor cluster PartsList
|
|
221
|
-
attribute SHALL indicate a list of all endpoints representing the functionality of the bridged
|
|
222
|
-
device, including the endpoints supporting the application device types, i.e. the full-family
|
|
223
|
-
pattern defined in the System Model specification.
|
|
224
|
-
◦ One Endpoint: Both the Bridged Node and one or more application device types are supported
|
|
225
|
-
on the same endpoint (following application device type rules). Endpoint composition
|
|
226
|
-
SHALL conform to the application device type(s) definition.
|
|
227
|
-
*/
|
|
228
147
|
export const bridgedNode = DeviceTypeDefinition({
|
|
229
148
|
name: 'MA-bridgedNode',
|
|
230
149
|
code: 0x0013,
|
|
@@ -233,17 +152,6 @@ export const bridgedNode = DeviceTypeDefinition({
|
|
|
233
152
|
requiredServerClusters: [BridgedDeviceBasicInformation.Cluster.id],
|
|
234
153
|
optionalServerClusters: [PowerSource.Cluster.id, EcosystemInformation.Cluster.id, AdministratorCommissioning.Cluster.id],
|
|
235
154
|
});
|
|
236
|
-
/**
|
|
237
|
-
* An Electrical Sensor device measures the electrical power and/or energy being imported and/or
|
|
238
|
-
* exported.
|
|
239
|
-
* It is a utility device type that provides information about the electrical power and/or energy
|
|
240
|
-
* consumption and generation.
|
|
241
|
-
*
|
|
242
|
-
* 2.6.3. Device Type Requirements
|
|
243
|
-
* Electrical measurements made by either the Electrical Power Measurement cluster, the Electrical
|
|
244
|
-
* Energy Measurement cluster, or both SHALL apply to the endpoints indicated by the Power Topology
|
|
245
|
-
* cluster.
|
|
246
|
-
*/
|
|
247
155
|
export const electricalSensor = DeviceTypeDefinition({
|
|
248
156
|
name: 'MA-electricalSensor',
|
|
249
157
|
code: 0x0510,
|
|
@@ -252,10 +160,6 @@ export const electricalSensor = DeviceTypeDefinition({
|
|
|
252
160
|
requiredServerClusters: [PowerTopology.Cluster.id],
|
|
253
161
|
optionalServerClusters: [ElectricalPowerMeasurement.Cluster.id, ElectricalEnergyMeasurement.Cluster.id],
|
|
254
162
|
});
|
|
255
|
-
/**
|
|
256
|
-
* A Device Energy Management device provides reporting and optionally adjustment of the electrical
|
|
257
|
-
* power planned on being consumed or produced by the device.
|
|
258
|
-
*/
|
|
259
163
|
export const deviceEnergyManagement = DeviceTypeDefinition({
|
|
260
164
|
name: 'MA-deviceEnergyManagement',
|
|
261
165
|
code: 0x050d,
|
|
@@ -264,195 +168,77 @@ export const deviceEnergyManagement = DeviceTypeDefinition({
|
|
|
264
168
|
requiredServerClusters: [DeviceEnergyManagement.Cluster.id],
|
|
265
169
|
optionalServerClusters: [DeviceEnergyManagementMode.Cluster.id],
|
|
266
170
|
});
|
|
267
|
-
/** Chapter 3. Application Device Types */
|
|
268
|
-
/** Chapter 4. Lighting device types */
|
|
269
|
-
/**
|
|
270
|
-
* Element Requirements:
|
|
271
|
-
* - Identify Command TriggerEffect
|
|
272
|
-
* - Scenes Management Command CopyScene
|
|
273
|
-
* - On/Off Feature Lighting
|
|
274
|
-
* - Level Control Feature OnOff
|
|
275
|
-
* - Level Control Feature Lighting
|
|
276
|
-
* - Level Control Attribute CurrentLevel 1 to 254
|
|
277
|
-
* - Level Control Attribute MinLevel 1
|
|
278
|
-
* - Level Control Attribute MaxLevel 254
|
|
279
|
-
*/
|
|
280
171
|
export const onOffLight = DeviceTypeDefinition({
|
|
281
172
|
name: 'MA-onofflight',
|
|
282
173
|
code: 0x0100,
|
|
283
174
|
deviceClass: DeviceClasses.Simple,
|
|
284
175
|
revision: 3,
|
|
285
|
-
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id,
|
|
176
|
+
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id],
|
|
286
177
|
optionalServerClusters: [LevelControl.Cluster.id],
|
|
287
178
|
});
|
|
288
|
-
/**
|
|
289
|
-
* Element Requirements:
|
|
290
|
-
* - Identify Command TriggerEffect
|
|
291
|
-
* - Scenes Management Command CopyScene
|
|
292
|
-
* - On/Off Feature Lighting
|
|
293
|
-
* - Level Control Feature OnOff
|
|
294
|
-
* - Level Control Feature Lighting
|
|
295
|
-
* - Level Control Attribute CurrentLevel 1 to 254
|
|
296
|
-
* - Level Control Attribute MinLevel 1
|
|
297
|
-
* - Level Control Attribute MaxLevel 254
|
|
298
|
-
*/
|
|
299
179
|
export const dimmableLight = DeviceTypeDefinition({
|
|
300
180
|
name: 'MA-dimmablelight',
|
|
301
181
|
code: 0x0101,
|
|
302
182
|
deviceClass: DeviceClasses.Simple,
|
|
303
183
|
revision: 3,
|
|
304
|
-
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id,
|
|
184
|
+
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id],
|
|
305
185
|
optionalServerClusters: [],
|
|
306
186
|
});
|
|
307
|
-
/**
|
|
308
|
-
* Element Requirements:
|
|
309
|
-
* - Identify Command TriggerEffect
|
|
310
|
-
* - Scenes Management Command CopyScene
|
|
311
|
-
* - On/Off Feature Lighting
|
|
312
|
-
* - Level Control Feature OnOff
|
|
313
|
-
* - Level Control Feature Lighting
|
|
314
|
-
* - Level Control Attribute CurrentLevel 1 to 254
|
|
315
|
-
* - Level Control Attribute MinLevel 1
|
|
316
|
-
* - Level Control Attribute MaxLevel 254
|
|
317
|
-
* - Color Control Feature ColorTemperature
|
|
318
|
-
* - Color Control Attribute RemainingTime
|
|
319
|
-
*/
|
|
320
187
|
export const colorTemperatureLight = DeviceTypeDefinition({
|
|
321
188
|
name: 'MA-colortemperaturelight',
|
|
322
189
|
code: 0x010c,
|
|
323
190
|
deviceClass: DeviceClasses.Simple,
|
|
324
191
|
revision: 4,
|
|
325
|
-
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id,
|
|
192
|
+
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id, ColorControl.Cluster.id],
|
|
326
193
|
optionalServerClusters: [],
|
|
327
194
|
});
|
|
328
|
-
/**
|
|
329
|
-
* Element Requirements:
|
|
330
|
-
* - Identify Command TriggerEffect
|
|
331
|
-
* - Scenes Management Command CopyScene
|
|
332
|
-
* - On/Off Feature Lighting
|
|
333
|
-
* - Level Control Feature OnOff
|
|
334
|
-
* - Level Control Feature Lighting
|
|
335
|
-
* - Level Control Attribute CurrentLevel 1 to 254
|
|
336
|
-
* - Level Control Attribute MinLevel 1
|
|
337
|
-
* - Level Control Attribute MaxLevel 254
|
|
338
|
-
* - Color Control Feature XY
|
|
339
|
-
* - Color Control Feature ColorTemperature
|
|
340
|
-
* - Color Control Attribute RemainingTime
|
|
341
|
-
*/
|
|
342
195
|
export const extendedColorLight = DeviceTypeDefinition({
|
|
343
196
|
name: 'MA-extendedcolorlight',
|
|
344
197
|
code: 0x010d,
|
|
345
198
|
deviceClass: DeviceClasses.Simple,
|
|
346
199
|
revision: 4,
|
|
347
|
-
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id,
|
|
200
|
+
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id, ColorControl.Cluster.id],
|
|
348
201
|
optionalServerClusters: [],
|
|
349
202
|
});
|
|
350
|
-
// Chapter 5. Smart plugs/Outlets and other Actuators device types
|
|
351
|
-
/**
|
|
352
|
-
* Element Requirements:
|
|
353
|
-
* - Identify Command TriggerEffect
|
|
354
|
-
* - Scenes Management Command CopyScene
|
|
355
|
-
* - On/Off Feature Lighting
|
|
356
|
-
* - Level Control Feature OnOff
|
|
357
|
-
* - Level Control Feature Lighting
|
|
358
|
-
* - Level Control Attribute CurrentLevel 1 to 254
|
|
359
|
-
* - Level Control Attribute MinLevel 1
|
|
360
|
-
* - Level Control Attribute MaxLevel 254
|
|
361
|
-
*/
|
|
362
203
|
export const onOffOutlet = DeviceTypeDefinition({
|
|
363
204
|
name: 'MA-onoffpluginunit',
|
|
364
205
|
code: 0x010a,
|
|
365
206
|
deviceClass: DeviceClasses.Simple,
|
|
366
207
|
revision: 3,
|
|
367
|
-
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id,
|
|
208
|
+
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id],
|
|
368
209
|
optionalServerClusters: [LevelControl.Cluster.id],
|
|
369
210
|
});
|
|
370
|
-
/**
|
|
371
|
-
* Element Requirements:
|
|
372
|
-
* - Identify Command TriggerEffect
|
|
373
|
-
* - Scenes Management Command CopyScene
|
|
374
|
-
* - On/Off Feature Lighting
|
|
375
|
-
* - Level Control Feature OnOff
|
|
376
|
-
* - Level Control Feature Lighting
|
|
377
|
-
* - Level Control Attribute CurrentLevel 1 to 254
|
|
378
|
-
* - Level Control Attribute MinLevel 1
|
|
379
|
-
* - Level Control Attribute MaxLevel 254
|
|
380
|
-
*/
|
|
381
211
|
export const dimmableOutlet = DeviceTypeDefinition({
|
|
382
212
|
name: 'MA-dimmablepluginunit',
|
|
383
213
|
code: 0x010b,
|
|
384
214
|
deviceClass: DeviceClasses.Simple,
|
|
385
215
|
revision: 4,
|
|
386
|
-
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id,
|
|
216
|
+
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id],
|
|
387
217
|
optionalServerClusters: [],
|
|
388
218
|
});
|
|
389
|
-
/**
|
|
390
|
-
* A Mounted On/Off Control is a fixed device that provides power to another device that is plugged
|
|
391
|
-
* into it, and is capable of switching that provided power on or off.
|
|
392
|
-
* It is a simple device type that does not require any client clusters.
|
|
393
|
-
* Element Requirements:
|
|
394
|
-
* - Identify Command TriggerEffect
|
|
395
|
-
* - Scenes Management Command CopyScene
|
|
396
|
-
* - On/Off Feature Lighting
|
|
397
|
-
* - Level Control Feature OnOff
|
|
398
|
-
* - Level Control Feature Lighting
|
|
399
|
-
* - Level Control Attribute CurrentLevel 1 to 254
|
|
400
|
-
* - Level Control Attribute MinLevel 1
|
|
401
|
-
* - Level Control Attribute MaxLevel 254
|
|
402
|
-
*/
|
|
403
219
|
export const onOffMountedSwitch = DeviceTypeDefinition({
|
|
404
220
|
name: 'MA-onoffmountedswitch',
|
|
405
221
|
code: 0x010f,
|
|
406
222
|
deviceClass: DeviceClasses.Simple,
|
|
407
223
|
revision: 1,
|
|
408
|
-
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id,
|
|
224
|
+
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id],
|
|
409
225
|
optionalServerClusters: [LevelControl.Cluster.id],
|
|
410
226
|
});
|
|
411
|
-
/**
|
|
412
|
-
* A Mounted Dimmable Load Control is a fixed device that provides power to another device that is
|
|
413
|
-
* plugged into it, and is capable of being switched on or off and have its level adjusted. The Mounted
|
|
414
|
-
* Dimmable Load Control is typically used to control a conventional non-communicating light
|
|
415
|
-
* through its mains connection using phase cutting.
|
|
416
|
-
* It is a simple device type that does not require any client clusters.
|
|
417
|
-
* Element Requirements:
|
|
418
|
-
* - Identify Command TriggerEffect
|
|
419
|
-
* - Scenes Management Command CopyScene
|
|
420
|
-
* - On/Off Feature Lighting
|
|
421
|
-
* - Level Control Feature OnOff
|
|
422
|
-
* - Level Control Feature Lighting
|
|
423
|
-
* - Level Control Attribute CurrentLevel 1 to 254
|
|
424
|
-
* - Level Control Attribute MinLevel 1
|
|
425
|
-
* - Level Control Attribute MaxLevel 254
|
|
426
|
-
*/
|
|
427
227
|
export const dimmableMountedSwitch = DeviceTypeDefinition({
|
|
428
228
|
name: 'MA-dimmablemountedswitch',
|
|
429
229
|
code: 0x0110,
|
|
430
230
|
deviceClass: DeviceClasses.Simple,
|
|
431
231
|
revision: 1,
|
|
432
|
-
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id,
|
|
232
|
+
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id],
|
|
433
233
|
optionalServerClusters: [],
|
|
434
234
|
});
|
|
435
|
-
/**
|
|
436
|
-
* Remark:
|
|
437
|
-
* On/Off Cluster:
|
|
438
|
-
* - Off If the pump is powered on, store the current level then immediately power it off.
|
|
439
|
-
* - On If the pump is powered off, power it on and move immediately to the level stored by a previous Off command. If no such level has been stored,
|
|
440
|
-
* move immediately to the maximum level allowed for the pump.
|
|
441
|
-
* - Toggle If the pump is powered on, proceed as for the Off command. If the device is powered off, proceed as for the On command.
|
|
442
|
-
*
|
|
443
|
-
* LevelControl cluster:
|
|
444
|
-
* Level Setpoint Meaning
|
|
445
|
-
* 0 N/A Pump is stopped,
|
|
446
|
-
* 1–200 Level / 2 (0.5–100.0%) Pump setpoint in percent
|
|
447
|
-
* 201–255 100.0% Pump setpoint is 100.0%
|
|
448
|
-
*/
|
|
449
235
|
export const pumpDevice = DeviceTypeDefinition({
|
|
450
236
|
name: 'MA-pump',
|
|
451
237
|
code: 0x303,
|
|
452
238
|
deviceClass: DeviceClasses.Simple,
|
|
453
239
|
revision: 3,
|
|
454
240
|
requiredServerClusters: [OnOff.Cluster.id, PumpConfigurationAndControl.Cluster.id, Identify.Cluster.id],
|
|
455
|
-
optionalServerClusters: [LevelControl.Cluster.id, Groups.Cluster.id,
|
|
241
|
+
optionalServerClusters: [LevelControl.Cluster.id, Groups.Cluster.id, TemperatureMeasurement.Cluster.id, PressureMeasurement.Cluster.id, FlowMeasurement.Cluster.id],
|
|
456
242
|
});
|
|
457
243
|
export const waterValve = DeviceTypeDefinition({
|
|
458
244
|
name: 'MA-waterValve',
|
|
@@ -462,33 +248,29 @@ export const waterValve = DeviceTypeDefinition({
|
|
|
462
248
|
requiredServerClusters: [Identify.Cluster.id, ValveConfigurationAndControl.Cluster.id],
|
|
463
249
|
optionalServerClusters: [FlowMeasurement.Cluster.id],
|
|
464
250
|
});
|
|
465
|
-
// Chapter 6. Switches and Controls device types
|
|
466
|
-
// Custom device types without client clusters (not working in Alexa)
|
|
467
251
|
export const onOffSwitch = DeviceTypeDefinition({
|
|
468
252
|
name: 'MA-onoffswitch',
|
|
469
253
|
code: 0x0103,
|
|
470
254
|
deviceClass: DeviceClasses.Simple,
|
|
471
255
|
revision: 3,
|
|
472
256
|
requiredServerClusters: [Identify.Cluster.id, OnOff.Cluster.id],
|
|
473
|
-
optionalServerClusters: [Groups.Cluster.id
|
|
257
|
+
optionalServerClusters: [Groups.Cluster.id],
|
|
474
258
|
});
|
|
475
|
-
// Custom device types without client clusters (not working in Alexa)
|
|
476
259
|
export const dimmableSwitch = DeviceTypeDefinition({
|
|
477
260
|
name: 'MA-dimmableswitch',
|
|
478
261
|
code: 0x0104,
|
|
479
262
|
deviceClass: DeviceClasses.Simple,
|
|
480
263
|
revision: 3,
|
|
481
264
|
requiredServerClusters: [Identify.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id],
|
|
482
|
-
optionalServerClusters: [Groups.Cluster.id
|
|
265
|
+
optionalServerClusters: [Groups.Cluster.id],
|
|
483
266
|
});
|
|
484
|
-
// Custom device types without client clusters (not working in Alexa)
|
|
485
267
|
export const colorTemperatureSwitch = DeviceTypeDefinition({
|
|
486
268
|
name: 'MA-colortemperatureswitch',
|
|
487
269
|
code: 0x0105,
|
|
488
270
|
deviceClass: DeviceClasses.Simple,
|
|
489
271
|
revision: 3,
|
|
490
272
|
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id, ColorControl.Cluster.id],
|
|
491
|
-
optionalServerClusters: [Groups.Cluster.id
|
|
273
|
+
optionalServerClusters: [Groups.Cluster.id],
|
|
492
274
|
});
|
|
493
275
|
export const genericSwitch = DeviceTypeDefinition({
|
|
494
276
|
name: 'MA-genericswitch',
|
|
@@ -498,11 +280,6 @@ export const genericSwitch = DeviceTypeDefinition({
|
|
|
498
280
|
requiredServerClusters: [Identify.Cluster.id, Switch.Cluster.id],
|
|
499
281
|
optionalServerClusters: [],
|
|
500
282
|
});
|
|
501
|
-
// Chapter 7. Sensor device types
|
|
502
|
-
/**
|
|
503
|
-
* Closed or contact: state true
|
|
504
|
-
* Open or no contact: state false
|
|
505
|
-
*/
|
|
506
283
|
export const contactSensor = DeviceTypeDefinition({
|
|
507
284
|
name: 'MA-contactsensor',
|
|
508
285
|
code: 0x0015,
|
|
@@ -554,7 +331,6 @@ export const humiditySensor = DeviceTypeDefinition({
|
|
|
554
331
|
revision: 2,
|
|
555
332
|
requiredServerClusters: [Identify.Cluster.id, RelativeHumidityMeasurement.Cluster.id],
|
|
556
333
|
});
|
|
557
|
-
// Remark: A Smoke CO Alarm device type SHALL support an instance of a Power Source device type on some endpoint.
|
|
558
334
|
export const smokeCoAlarm = DeviceTypeDefinition({
|
|
559
335
|
name: 'MA-smokeCoAlarm',
|
|
560
336
|
code: 0x0076,
|
|
@@ -608,15 +384,6 @@ export const rainSensor = DeviceTypeDefinition({
|
|
|
608
384
|
requiredServerClusters: [Identify.Cluster.id, BooleanState.Cluster.id],
|
|
609
385
|
optionalServerClusters: [BooleanStateConfiguration.Cluster.id],
|
|
610
386
|
});
|
|
611
|
-
// Chapter 8. Closures device types
|
|
612
|
-
/**
|
|
613
|
-
* A Door Lock is a device used to secure a door. It is possible to actuate a door lock either by means of a manual or a remote method.
|
|
614
|
-
* Element Requirements:
|
|
615
|
-
*
|
|
616
|
-
* - AccessControl Attribute Extension
|
|
617
|
-
* - DoorLock Feature User
|
|
618
|
-
* - DoorLock Attribute AlarmMask
|
|
619
|
-
*/
|
|
620
387
|
export const doorLockDevice = DeviceTypeDefinition({
|
|
621
388
|
name: 'MA-doorLock',
|
|
622
389
|
code: 0xa,
|
|
@@ -633,15 +400,6 @@ export const coverDevice = DeviceTypeDefinition({
|
|
|
633
400
|
requiredServerClusters: [Identify.Cluster.id, WindowCovering.Cluster.id],
|
|
634
401
|
optionalServerClusters: [Groups.Cluster.id],
|
|
635
402
|
});
|
|
636
|
-
// Chapter 9. HVAC device types
|
|
637
|
-
/**
|
|
638
|
-
* A Thermostat device is capable of having either built-in or separate sensors for temperature,
|
|
639
|
-
* humidity or occupancy. It allows the desired temperature to be set either remotely or locally. The
|
|
640
|
-
* thermostat is capable of sending heating and/or cooling requirement notifications to a heating/cooling
|
|
641
|
-
* unit (for example, an indoor air handler) or is capable of including a mechanism to control a
|
|
642
|
-
* heating or cooling unit directly.
|
|
643
|
-
*
|
|
644
|
-
*/
|
|
645
403
|
export const thermostatDevice = DeviceTypeDefinition({
|
|
646
404
|
name: 'MA-thermostat',
|
|
647
405
|
code: 0x301,
|
|
@@ -650,25 +408,6 @@ export const thermostatDevice = DeviceTypeDefinition({
|
|
|
650
408
|
requiredServerClusters: [Identify.Cluster.id, Thermostat.Cluster.id],
|
|
651
409
|
optionalServerClusters: [Groups.Cluster.id, ThermostatUserInterfaceConfiguration.Cluster.id, EnergyPreference.Cluster.id],
|
|
652
410
|
});
|
|
653
|
-
/**
|
|
654
|
-
* A Fan device is typically standalone or mounted on a ceiling or wall and is used to circulate air in a room.
|
|
655
|
-
* Remark: it may have a thermostat device type.
|
|
656
|
-
* Additional device types MAY also be included in device compositions.
|
|
657
|
-
* Element Requirements:
|
|
658
|
-
* The FanControl cluster must have the FanModeSequence attribute.
|
|
659
|
-
*
|
|
660
|
-
* The On/Off cluster is independent from the Fan Control Cluster’s FanMode attribute, which also
|
|
661
|
-
* includes an Off setting.
|
|
662
|
-
* If the FanMode attribute of the Fan Control cluster is set to a value other than Off when the OnOff
|
|
663
|
-
* attribute of the On/Off cluster transitions from TRUE to FALSE, it may be desirable to restore the
|
|
664
|
-
* FanMode, SpeedSetting and PercentSetting attribute values of the Fan Control cluster when the OnOff
|
|
665
|
-
* attribute of the On/Off cluster later transitions from FALSE to TRUE. If the FanMode is set to Off when
|
|
666
|
-
* the device is turned off, this information is lost, as the SpeedSetting and PercentSetting will be set to
|
|
667
|
-
* zero. Using the On/Off cluster alongside the Fan Control cluster allows the FanMode, SpeedSetting and
|
|
668
|
-
* PercentSetting to remain unchanged when the device is turned off. In this case, the On/Off cluster
|
|
669
|
-
* would be set to Off, and the SpeedCurrent and PercentCurrent set to zero, without changing FanMode,
|
|
670
|
-
* SpeedSetting and PercentSetting.
|
|
671
|
-
*/
|
|
672
411
|
export const fanDevice = DeviceTypeDefinition({
|
|
673
412
|
name: 'MA-fan',
|
|
674
413
|
code: 0x2b,
|
|
@@ -677,35 +416,6 @@ export const fanDevice = DeviceTypeDefinition({
|
|
|
677
416
|
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, FanControl.Cluster.id],
|
|
678
417
|
optionalServerClusters: [OnOff.Cluster.id],
|
|
679
418
|
});
|
|
680
|
-
/**
|
|
681
|
-
* An Air Purifier is a standalone device that is designed to clean the air in a room.
|
|
682
|
-
* It is a device that has a fan to control the air speed while it is operating. Optionally, it can report on
|
|
683
|
-
* the condition of its filters.
|
|
684
|
-
*
|
|
685
|
-
* Remark:
|
|
686
|
-
* An Air Purifier MAY expose elements of its functionality through one or more additional device
|
|
687
|
-
* types on different endpoints. All devices used in compositions SHALL adhere to the disambiguation
|
|
688
|
-
* requirements of the System Model. Other device types, not explicitly listed in the table, MAY also be
|
|
689
|
-
* included in device compositions but are not considered part of the core functionality of the device.
|
|
690
|
-
* 0x0301 Thermostat O
|
|
691
|
-
* 0x0302 Temperature Sensor O
|
|
692
|
-
* 0x0307 Humidity Sensor O
|
|
693
|
-
* 0x002C Air Quality Sensor O
|
|
694
|
-
*
|
|
695
|
-
* Cluster Restrictions:
|
|
696
|
-
* The On/Off cluster is independent from the Fan Control Cluster’s FanMode attribute, which also
|
|
697
|
-
* includes an Off setting.
|
|
698
|
-
* If the FanMode attribute of the Fan Control cluster is set to a value other than Off when the OnOff
|
|
699
|
-
* attribute of the On/Off cluster transitions from TRUE to FALSE, it may be desirable to restore the
|
|
700
|
-
* FanMode, SpeedSetting and PercentSetting attribute values of the Fan Control cluster when the OnOff
|
|
701
|
-
* attribute of the On/Off cluster later transitions from FALSE to TRUE. If the FanMode is set to Off when
|
|
702
|
-
* the device is turned off, this information is lost, as the SpeedSetting and PercentSetting will be set to
|
|
703
|
-
* zero. Using the On/Off cluster alongside the Fan Control cluster allows the FanMode, SpeedSetting and
|
|
704
|
-
* PercentSetting to remain unchanged when the device is turned off. In this case, the On/Off cluster
|
|
705
|
-
* would be set to Off, and the SpeedCurrent and PercentCurrent set to zero, without changing FanMode,
|
|
706
|
-
* SpeedSetting and PercentSetting.
|
|
707
|
-
*
|
|
708
|
-
*/
|
|
709
419
|
export const airPurifier = DeviceTypeDefinition({
|
|
710
420
|
name: 'MA-airPurifier',
|
|
711
421
|
code: 0x2d,
|
|
@@ -714,26 +424,6 @@ export const airPurifier = DeviceTypeDefinition({
|
|
|
714
424
|
requiredServerClusters: [Identify.Cluster.id, FanControl.Cluster.id],
|
|
715
425
|
optionalServerClusters: [Groups.Cluster.id, OnOff.Cluster.id, HepaFilterMonitoring.Cluster.id, ActivatedCarbonFilterMonitoring.Cluster.id],
|
|
716
426
|
});
|
|
717
|
-
// Chapter 10. Media Device Types
|
|
718
|
-
/**
|
|
719
|
-
* 10.2. A Basic Video Player has playback controls (play, pause, etc.) and keypad remote controls (up, down, number input),
|
|
720
|
-
* but is not able to launch arbitrary content applications. It is a commissionable node.
|
|
721
|
-
*
|
|
722
|
-
* Required server clusters (minimum features per spec):
|
|
723
|
-
* - Media Playback (media playback controls)
|
|
724
|
-
* - Keypad Input (remote key events)
|
|
725
|
-
* - On/Off (basic power control)
|
|
726
|
-
*
|
|
727
|
-
* Optional server clusters (additional capabilities commonly implemented):
|
|
728
|
-
* - Audio Output (speaker selection / volume endpoints)
|
|
729
|
-
* - Channel (linear channel navigation)
|
|
730
|
-
* - Target Navigator (high level app / target navigation)
|
|
731
|
-
* - Media Input (input source selection)
|
|
732
|
-
* - Low Power (power saving / wake logic)
|
|
733
|
-
* - Wake On LAN (remote wake capabilities)
|
|
734
|
-
* - Messages (device messaging / notifications)
|
|
735
|
-
* - Content Control (parental or content access control)
|
|
736
|
-
*/
|
|
737
427
|
export const basicVideoPlayer = DeviceTypeDefinition({
|
|
738
428
|
name: 'MA-basicVideoPlayer',
|
|
739
429
|
code: 0x0028,
|
|
@@ -742,29 +432,6 @@ export const basicVideoPlayer = DeviceTypeDefinition({
|
|
|
742
432
|
requiredServerClusters: [OnOff.Cluster.id, MediaPlayback.Cluster.id, KeypadInput.Cluster.id],
|
|
743
433
|
optionalServerClusters: [WakeOnLan.Cluster.id, Channel.Cluster.id, TargetNavigator.Cluster.id, MediaInput.Cluster.id, LowPower.Cluster.id, AudioOutput.Cluster.id, ContentControl.Cluster.id, Messages.Cluster.id],
|
|
744
434
|
});
|
|
745
|
-
/**
|
|
746
|
-
* 10.3. A Casting Video Player supports Basic Video Player features and content launching features.
|
|
747
|
-
* It is a Commissioner and can launch Content Apps (Content Launcher cluster) and optionally expose
|
|
748
|
-
* an Application Launcher cluster when acting as a Content App Platform.
|
|
749
|
-
*
|
|
750
|
-
* Required server clusters (minimum features per spec):
|
|
751
|
-
* - Media Playback (playback controls)
|
|
752
|
-
* - Keypad Input (remote key events)
|
|
753
|
-
* - Content Launcher (content launching capability)
|
|
754
|
-
* - On/Off (basic power control)
|
|
755
|
-
*
|
|
756
|
-
* Optional server clusters (additional capabilities):
|
|
757
|
-
* - Application Launcher (hosting content apps)
|
|
758
|
-
* - Account Login (account / session association)
|
|
759
|
-
* - Audio Output (output / volume endpoints)
|
|
760
|
-
* - Channel (linear channel navigation)
|
|
761
|
-
* - Target Navigator (high level target navigation)
|
|
762
|
-
* - Media Input (input source selection)
|
|
763
|
-
* - Low Power (power saving / wake logic)
|
|
764
|
-
* - Wake On LAN (remote wake capabilities)
|
|
765
|
-
* - Messages (device messaging / notifications)
|
|
766
|
-
* - Content Control (parental or content access control)
|
|
767
|
-
*/
|
|
768
435
|
export const castingVideoPlayer = DeviceTypeDefinition({
|
|
769
436
|
name: 'MA-castingVideoPlayer',
|
|
770
437
|
code: 0x0023,
|
|
@@ -784,12 +451,6 @@ export const castingVideoPlayer = DeviceTypeDefinition({
|
|
|
784
451
|
Messages.Cluster.id,
|
|
785
452
|
],
|
|
786
453
|
});
|
|
787
|
-
/**
|
|
788
|
-
* 10.4. A Speaker device type controls the speaker.
|
|
789
|
-
* unmute/mute, the On/Off cluster SHALL be used. A value of TRUE for the OnOff attribute
|
|
790
|
-
* SHALL represent the volume on (not muted) state, while a value of FALSE SHALL represent the volume
|
|
791
|
-
* off (muted) state. For volume level control, the Level cluster SHALL be used.
|
|
792
|
-
*/
|
|
793
454
|
export const speakerDevice = DeviceTypeDefinition({
|
|
794
455
|
name: 'MA-speaker',
|
|
795
456
|
code: 0x0022,
|
|
@@ -798,7 +459,6 @@ export const speakerDevice = DeviceTypeDefinition({
|
|
|
798
459
|
requiredServerClusters: [OnOff.Cluster.id, LevelControl.Cluster.id],
|
|
799
460
|
optionalServerClusters: [],
|
|
800
461
|
});
|
|
801
|
-
// Chapter 11. Generic Device Types
|
|
802
462
|
export const modeSelect = DeviceTypeDefinition({
|
|
803
463
|
name: 'MA-modeselect',
|
|
804
464
|
code: 0x27,
|
|
@@ -806,37 +466,6 @@ export const modeSelect = DeviceTypeDefinition({
|
|
|
806
466
|
revision: 1,
|
|
807
467
|
requiredServerClusters: [ModeSelect.Cluster.id],
|
|
808
468
|
});
|
|
809
|
-
/**
|
|
810
|
-
* This device type aggregates endpoints as a collection. Clusters on the endpoint indicating this
|
|
811
|
-
* device type provide functionality for the collection of descendant endpoints present in the PartsList
|
|
812
|
-
* of the endpoint’s descriptor, for example the Actions cluster.
|
|
813
|
-
*
|
|
814
|
-
* Endpoint Composition:
|
|
815
|
-
* An Aggregator endpoint’s Descriptor cluster PartsList attribute SHALL list the collection of all endpoints
|
|
816
|
-
* aggregated by the Aggregator device type, i.e. the full-family pattern defined in the System Model specification.
|
|
817
|
-
*
|
|
818
|
-
* Disambiguation:
|
|
819
|
-
* If the Duplicate condition applies to child endpoints of an Aggregator endpoint that represent multiple
|
|
820
|
-
* independent bridged devices, the endpoints SHOULD make available metadata to allow a
|
|
821
|
-
* client to disambiguate distinct bridged devices with an overlap in application device types.
|
|
822
|
-
*
|
|
823
|
-
* Typically this is done using the NodeLabel attribute of the Bridged Device Basic Information cluster
|
|
824
|
-
* - thus reusing the naming information which the bridge already has to allow disambiguation to the
|
|
825
|
-
* user when using a direct user interface to the bridge.
|
|
826
|
-
*
|
|
827
|
-
* Actions cluster (9.14 Matter specification):
|
|
828
|
-
* If a Bridge has (such) information on topology or logical grouping, it SHOULD expose such information
|
|
829
|
-
* in the EndpointLists attribute of an Actions cluster (the ActionLists of which MAY be empty if
|
|
830
|
-
* no actions are exposed). 9.12 Matter specification
|
|
831
|
-
*
|
|
832
|
-
* 9.12.5. New features for Bridged Devices
|
|
833
|
-
* Bridged Devices can have their software updated independently of the Bridge, through Bridge Manufacturer-
|
|
834
|
-
* specific means. These updates MAY result in one or more changes to their capabilities,
|
|
835
|
-
* such as supported clusters and/or attributes, for an endpoint. Like every Matter Node, every endpoint
|
|
836
|
-
* on the Bridge’s Node contains a Descriptor cluster that contains attributes for the device types
|
|
837
|
-
* (DeviceTypeList), endpoints (PartsList) and supported clusters (ServerList and ClientList). Nodes
|
|
838
|
-
* that wish to be notified of such changes SHOULD monitor changes of these attributes.
|
|
839
|
-
*/
|
|
840
469
|
export const aggregator = DeviceTypeDefinition({
|
|
841
470
|
name: 'MA-aggregator',
|
|
842
471
|
code: 0x000e,
|
|
@@ -846,29 +475,6 @@ export const aggregator = DeviceTypeDefinition({
|
|
|
846
475
|
optionalServerClusters: [Actions.Cluster.id, Identify.Cluster.id, CommissionerControl.Cluster.id],
|
|
847
476
|
});
|
|
848
477
|
export const bridge = aggregator;
|
|
849
|
-
// Chapter 12. Robotic Device Types
|
|
850
|
-
/**
|
|
851
|
-
* A Robotic Vacuum Cleaner is a device that is capable of cleaning floors and other surfaces
|
|
852
|
-
* in a home or office environment. It is typically a mobile device that can navigate around
|
|
853
|
-
* obstacles and can be controlled remotely.
|
|
854
|
-
*
|
|
855
|
-
* Cluster Usage:
|
|
856
|
-
* The RVC Operational State cluster’s OperationalState attribute SHALL be updated according to the
|
|
857
|
-
* state of the device, and therefore it SHOULD be used for monitoring purposes.
|
|
858
|
-
*
|
|
859
|
-
* To attempt starting a cleaning operation, the RVC Run Mode cluster can be sent a ChangeToMode
|
|
860
|
-
* command with the NewMode field set to a mode that has the Cleaning mode tag associated with it.
|
|
861
|
-
*
|
|
862
|
-
* To attempt stopping a cleaning operation, the RVC Run Mode cluster can be sent a ChangeToMode
|
|
863
|
-
* command with the NewMode field set to a mode that has the Idle mode tag associated with it.
|
|
864
|
-
*
|
|
865
|
-
* To attempt pausing a cleaning operation, the RVC Operational State cluster can be sent a Pause command.
|
|
866
|
-
*
|
|
867
|
-
* To attempt resuming a cleaning operation, the RVC Operational State cluster can be sent a Resume
|
|
868
|
-
* command.
|
|
869
|
-
*
|
|
870
|
-
*
|
|
871
|
-
*/
|
|
872
478
|
export const roboticVacuumCleaner = DeviceTypeDefinition({
|
|
873
479
|
name: 'MA-roboticvacuumcleaner',
|
|
874
480
|
code: 0x74,
|
|
@@ -877,11 +483,6 @@ export const roboticVacuumCleaner = DeviceTypeDefinition({
|
|
|
877
483
|
requiredServerClusters: [Identify.Cluster.id, RvcRunMode.Cluster.id, RvcOperationalState.Cluster.id],
|
|
878
484
|
optionalServerClusters: [RvcCleanMode.Cluster.id, ServiceArea.Cluster.id],
|
|
879
485
|
});
|
|
880
|
-
// Chapter 13. Appliances device types
|
|
881
|
-
/**
|
|
882
|
-
* Cluster Restrictions:
|
|
883
|
-
* On/Off Cluster: the DF (Dead Front) feature is required
|
|
884
|
-
*/
|
|
885
486
|
export const laundryWasher = DeviceTypeDefinition({
|
|
886
487
|
name: 'MA-laundrywasher',
|
|
887
488
|
code: 0x73,
|
|
@@ -890,13 +491,6 @@ export const laundryWasher = DeviceTypeDefinition({
|
|
|
890
491
|
requiredServerClusters: [OperationalState.Cluster.id],
|
|
891
492
|
optionalServerClusters: [Identify.Cluster.id, LaundryWasherMode.Cluster.id, OnOff.Cluster.id, LaundryWasherControls.Cluster.id, TemperatureControl.Cluster.id],
|
|
892
493
|
});
|
|
893
|
-
/**
|
|
894
|
-
* A refrigerator represents a device that contains one or more cabinets that are capable of chilling or freezing food.
|
|
895
|
-
* A Refrigerator SHALL be composed of at least one endpoint with the Temperature Controlled Cabinet device type.
|
|
896
|
-
*
|
|
897
|
-
* Device Type Requirements:
|
|
898
|
-
* 0x0071 Temperature Controlled Cabinet
|
|
899
|
-
*/
|
|
900
494
|
export const refrigerator = DeviceTypeDefinition({
|
|
901
495
|
name: 'MA-refrigerator',
|
|
902
496
|
code: 0x70,
|
|
@@ -905,23 +499,6 @@ export const refrigerator = DeviceTypeDefinition({
|
|
|
905
499
|
requiredServerClusters: [Identify.Cluster.id, RefrigeratorAndTemperatureControlledCabinetMode.Cluster.id, RefrigeratorAlarm.Cluster.id],
|
|
906
500
|
optionalServerClusters: [],
|
|
907
501
|
});
|
|
908
|
-
/**
|
|
909
|
-
* A Room Air Conditioner is a device with the primary function of controlling the air temperature in a single room.
|
|
910
|
-
*
|
|
911
|
-
* A Room Air Conditioner MAY have zero or more of each device type listed in this table subject to
|
|
912
|
-
* the conformance column of the table. All devices used in compositions SHALL adhere to the disambiguation
|
|
913
|
-
* requirements of the System Model. Additional device types not listed in this table MAY also be included in device compositions.
|
|
914
|
-
* 0x0302 Temperature Sensor O
|
|
915
|
-
* 0x0307 Humidity Sensor O
|
|
916
|
-
*
|
|
917
|
-
* Remark:
|
|
918
|
-
* The DF (Dead Front) feature is required for the On/Off cluster in this device type:
|
|
919
|
-
* - Thermostat LocalTemperature null
|
|
920
|
-
* - Temperature Measurement MeasuredValue null
|
|
921
|
-
* - Relative Humidity Measurement MeasuredValue null
|
|
922
|
-
* - Fan Control SpeedSetting null
|
|
923
|
-
* - Fan Control PercentSetting null
|
|
924
|
-
*/
|
|
925
502
|
export const airConditioner = DeviceTypeDefinition({
|
|
926
503
|
name: 'MA-airConditioner',
|
|
927
504
|
code: 0x72,
|
|
@@ -930,22 +507,12 @@ export const airConditioner = DeviceTypeDefinition({
|
|
|
930
507
|
requiredServerClusters: [Identify.Cluster.id, OnOff.Cluster.id, Thermostat.Cluster.id],
|
|
931
508
|
optionalServerClusters: [
|
|
932
509
|
Groups.Cluster.id,
|
|
933
|
-
/* ScenesManagement.Cluster.id,*/
|
|
934
510
|
FanControl.Cluster.id,
|
|
935
511
|
ThermostatUserInterfaceConfiguration.Cluster.id,
|
|
936
512
|
TemperatureMeasurement.Cluster.id,
|
|
937
513
|
RelativeHumidityMeasurement.Cluster.id,
|
|
938
514
|
],
|
|
939
515
|
});
|
|
940
|
-
/**
|
|
941
|
-
* A Temperature Controlled Cabinet only exists composed as part of another device type. It represents
|
|
942
|
-
* a single cabinet that is capable of having its temperature controlled. Such a cabinet may be
|
|
943
|
-
* chilling or freezing food, for example as part of a refrigerator, freezer, wine chiller, or other similar
|
|
944
|
-
* device. Equally, such a cabinet may be warming or heating food, for example as part of an oven,
|
|
945
|
-
* range, or similar device.
|
|
946
|
-
* Conditions:
|
|
947
|
-
* Cooler The device has cooling functionality.
|
|
948
|
-
*/
|
|
949
516
|
export const temperatureControlledCabinetCooler = DeviceTypeDefinition({
|
|
950
517
|
name: 'MA-temperaturecontrolledcabinetcooler',
|
|
951
518
|
code: 0x71,
|
|
@@ -954,15 +521,6 @@ export const temperatureControlledCabinetCooler = DeviceTypeDefinition({
|
|
|
954
521
|
requiredServerClusters: [TemperatureControl.Cluster.id, RefrigeratorAndTemperatureControlledCabinetMode.Cluster.id],
|
|
955
522
|
optionalServerClusters: [TemperatureMeasurement.Cluster.id],
|
|
956
523
|
});
|
|
957
|
-
/**
|
|
958
|
-
* A Temperature Controlled Cabinet only exists composed as part of another device type. It represents
|
|
959
|
-
* a single cabinet that is capable of having its temperature controlled. Such a cabinet may be
|
|
960
|
-
* chilling or freezing food, for example as part of a refrigerator, freezer, wine chiller, or other similar
|
|
961
|
-
* device. Equally, such a cabinet may be warming or heating food, for example as part of an oven,
|
|
962
|
-
* range, or similar device.
|
|
963
|
-
* Conditions:
|
|
964
|
-
* Heater The device has heating functionality.
|
|
965
|
-
*/
|
|
966
524
|
export const temperatureControlledCabinetHeater = DeviceTypeDefinition({
|
|
967
525
|
name: 'MA-temperaturecontrolledcabinetheater',
|
|
968
526
|
code: 0x71,
|
|
@@ -971,10 +529,6 @@ export const temperatureControlledCabinetHeater = DeviceTypeDefinition({
|
|
|
971
529
|
requiredServerClusters: [TemperatureControl.Cluster.id, OvenMode.Cluster.id, OvenCavityOperationalState.Cluster.id],
|
|
972
530
|
optionalServerClusters: [TemperatureMeasurement.Cluster.id],
|
|
973
531
|
});
|
|
974
|
-
/**
|
|
975
|
-
* Cluster Restrictions:
|
|
976
|
-
* On/Off Cluster: the DF (Dead Front) feature is required
|
|
977
|
-
*/
|
|
978
532
|
export const dishwasher = DeviceTypeDefinition({
|
|
979
533
|
name: 'MA-dishwasher',
|
|
980
534
|
code: 0x75,
|
|
@@ -983,10 +537,6 @@ export const dishwasher = DeviceTypeDefinition({
|
|
|
983
537
|
requiredServerClusters: [OperationalState.Cluster.id],
|
|
984
538
|
optionalServerClusters: [Identify.Cluster.id, OnOff.Cluster.id, TemperatureControl.Cluster.id, DishwasherMode.Cluster.id, DishwasherAlarm.Cluster.id],
|
|
985
539
|
});
|
|
986
|
-
/**
|
|
987
|
-
* Cluster Restrictions:
|
|
988
|
-
* On/Off Cluster: the DF (Dead Front) feature is required
|
|
989
|
-
*/
|
|
990
540
|
export const laundryDryer = DeviceTypeDefinition({
|
|
991
541
|
name: 'MA-laundrydryer',
|
|
992
542
|
code: 0x7c,
|
|
@@ -995,13 +545,6 @@ export const laundryDryer = DeviceTypeDefinition({
|
|
|
995
545
|
requiredServerClusters: [OperationalState.Cluster.id],
|
|
996
546
|
optionalServerClusters: [Identify.Cluster.id, LaundryWasherMode.Cluster.id, OnOff.Cluster.id, LaundryDryerControls.Cluster.id, TemperatureControl.Cluster.id],
|
|
997
547
|
});
|
|
998
|
-
/**
|
|
999
|
-
* A Cook Surface device type represents a heating object on a cooktop or other similar device. It
|
|
1000
|
-
* SHALL only be used when composed as part of another device type (cooktop).
|
|
1001
|
-
*
|
|
1002
|
-
* Cluster Restrictions:
|
|
1003
|
-
* The OffOnly feature is required for the On/Off cluster in this device type due to safety requirements.
|
|
1004
|
-
*/
|
|
1005
548
|
export const cookSurface = DeviceTypeDefinition({
|
|
1006
549
|
name: 'MA-cooksurface',
|
|
1007
550
|
code: 0x77,
|
|
@@ -1010,18 +553,6 @@ export const cookSurface = DeviceTypeDefinition({
|
|
|
1010
553
|
requiredServerClusters: [TemperatureControl.Cluster.id, TemperatureMeasurement.Cluster.id],
|
|
1011
554
|
optionalServerClusters: [OnOff.Cluster.id],
|
|
1012
555
|
});
|
|
1013
|
-
/**
|
|
1014
|
-
* A cooktop is a cooking surface that heats food either by transferring currents from an electromagnetic
|
|
1015
|
-
* field located below the glass surface directly to the magnetic induction cookware placed
|
|
1016
|
-
* above or through traditional gas or electric burners.
|
|
1017
|
-
*
|
|
1018
|
-
* Device Type Requirements:
|
|
1019
|
-
* A Cooktop SHALL be composed of zero or more endpoints with the Cook Surface device type as defined by the conformance below.
|
|
1020
|
-
* 0x0077 Cook Surface min 1 O
|
|
1021
|
-
*
|
|
1022
|
-
* Cluster Restrictions:
|
|
1023
|
-
* The OffOnly feature is required for the On/Off cluster in this device type due to safety requirements.
|
|
1024
|
-
*/
|
|
1025
556
|
export const cooktop = DeviceTypeDefinition({
|
|
1026
557
|
name: 'MA-cooktop',
|
|
1027
558
|
code: 0x78,
|
|
@@ -1030,15 +561,6 @@ export const cooktop = DeviceTypeDefinition({
|
|
|
1030
561
|
requiredServerClusters: [OnOff.Cluster.id],
|
|
1031
562
|
optionalServerClusters: [Identify.Cluster.id],
|
|
1032
563
|
});
|
|
1033
|
-
/**
|
|
1034
|
-
* An oven represents a device that contains one or more cabinets, and optionally a single cooktop, that are all capable of heating food.
|
|
1035
|
-
* An oven is always defined via endpoint composition.
|
|
1036
|
-
* Conditions:
|
|
1037
|
-
* An Oven SHALL have the Heater condition applied to at least one endpoint containing the Temperature Control Cluster.
|
|
1038
|
-
* Device Type Requirements:
|
|
1039
|
-
* - 0x0071 Temperature Controlled Cabinet min 1
|
|
1040
|
-
* - 0x0078 Cooktop
|
|
1041
|
-
*/
|
|
1042
564
|
export const oven = DeviceTypeDefinition({
|
|
1043
565
|
name: 'MA-oven',
|
|
1044
566
|
code: 0x7b,
|
|
@@ -1047,18 +569,6 @@ export const oven = DeviceTypeDefinition({
|
|
|
1047
569
|
requiredServerClusters: [Identify.Cluster.id],
|
|
1048
570
|
optionalServerClusters: [],
|
|
1049
571
|
});
|
|
1050
|
-
/**
|
|
1051
|
-
* An Extractor Hood is a device that is generally installed above a cooking surface in residential kitchens.
|
|
1052
|
-
* Additional device types not listed in this table MAY also be included in device compositions.
|
|
1053
|
-
* Device Type Requirements:
|
|
1054
|
-
* 0x0100+ On/Off Light+ O
|
|
1055
|
-
*
|
|
1056
|
-
*
|
|
1057
|
-
* Element Requirements:
|
|
1058
|
-
* - 0x0202 Fan Control Feature Rocking X
|
|
1059
|
-
* - 0x0202 Fan Control Feature Wind X
|
|
1060
|
-
* - 0x0202 Fan Control Feature AirflowDirection X
|
|
1061
|
-
*/
|
|
1062
572
|
export const extractorHood = DeviceTypeDefinition({
|
|
1063
573
|
name: 'MA-extractorhood',
|
|
1064
574
|
code: 0x7a,
|
|
@@ -1067,12 +577,6 @@ export const extractorHood = DeviceTypeDefinition({
|
|
|
1067
577
|
requiredServerClusters: [FanControl.Cluster.id],
|
|
1068
578
|
optionalServerClusters: [Identify.Cluster.id, HepaFilterMonitoring.Cluster.id, ActivatedCarbonFilterMonitoring.Cluster.id],
|
|
1069
579
|
});
|
|
1070
|
-
/**
|
|
1071
|
-
* A Microwave Oven is a device with the primary function of heating foods and beverages using a magnetron.
|
|
1072
|
-
* A Microwave Oven is a device which at a minimum is capable of being started and stopped and of setting a power level.
|
|
1073
|
-
* A Microwave Oven MAY also support additional capabilities via endpoint composition.
|
|
1074
|
-
*
|
|
1075
|
-
*/
|
|
1076
580
|
export const microwaveOven = DeviceTypeDefinition({
|
|
1077
581
|
name: 'MA-microwaveoven',
|
|
1078
582
|
code: 0x79,
|
|
@@ -1081,26 +585,6 @@ export const microwaveOven = DeviceTypeDefinition({
|
|
|
1081
585
|
requiredServerClusters: [OperationalState.Cluster.id, MicrowaveOvenMode.Cluster.id, MicrowaveOvenControl.Cluster.id],
|
|
1082
586
|
optionalServerClusters: [Identify.Cluster.id, FanControl.Cluster.id],
|
|
1083
587
|
});
|
|
1084
|
-
// Chapter 14. Energy Device Types
|
|
1085
|
-
/**
|
|
1086
|
-
* An EVSE (Electric Vehicle Supply Equipment) is a device that allows an EV (Electric Vehicle) to be
|
|
1087
|
-
* connected to the mains electricity supply to allow it to be charged (or discharged in case of Vehicle
|
|
1088
|
-
* to Grid / Vehicle to Home applications).
|
|
1089
|
-
*
|
|
1090
|
-
* 14.1.5. Device Type Requirements
|
|
1091
|
-
* An EVSE SHALL be composed of at least one endpoint with device types as defined by the conformance
|
|
1092
|
-
* below. There MAY be more endpoints with other device types existing in the EVSE.
|
|
1093
|
-
* - ID Name Constraint Conformance
|
|
1094
|
-
* - 0x0011 Power Source min 1 M
|
|
1095
|
-
* - 0x0510 Electrical Sensor min 1 M
|
|
1096
|
-
* - 0x050D Device Energy Management min 1 M
|
|
1097
|
-
*
|
|
1098
|
-
* The Electrical Sensor device SHALL include both the Electrical Energy Measurement and Electrical
|
|
1099
|
-
* Power Measurement clusters, measuring the total energy and power of the EVSE.
|
|
1100
|
-
*
|
|
1101
|
-
* The Device Energy Management cluster included in the Device Energy Management device SHALL
|
|
1102
|
-
* support the Power Forecast Reporting (PFR) feature.
|
|
1103
|
-
*/
|
|
1104
588
|
export const evse = DeviceTypeDefinition({
|
|
1105
589
|
name: 'MA-evse',
|
|
1106
590
|
code: 0x050c,
|
|
@@ -1109,39 +593,6 @@ export const evse = DeviceTypeDefinition({
|
|
|
1109
593
|
requiredServerClusters: [EnergyEvse.Cluster.id, EnergyEvseMode.Cluster.id],
|
|
1110
594
|
optionalServerClusters: [Identify.Cluster.id, TemperatureMeasurement.Cluster.id],
|
|
1111
595
|
});
|
|
1112
|
-
/**
|
|
1113
|
-
* A water heater is a device that is generally installed in properties to heat water for showers, baths etc.
|
|
1114
|
-
* A Water Heater is always defined via endpoint composition.
|
|
1115
|
-
*
|
|
1116
|
-
* 14.2.5. Device Type Requirements
|
|
1117
|
-
* A Water Heater SHALL be composed of at least one endpoint with device types as defined by the
|
|
1118
|
-
* conformance below. There MAY be more endpoints with other device types existing in the Water Heater.
|
|
1119
|
-
* - ID Name Constraint Conformance
|
|
1120
|
-
* - 0x0011 Power Source O
|
|
1121
|
-
* - 0x0302 Temperature Sensor O
|
|
1122
|
-
* - 0x0510 Electrical Sensor desc
|
|
1123
|
-
* - 0x050D Device Energy Management O
|
|
1124
|
-
*
|
|
1125
|
-
* 14.2.7. Element Requirements
|
|
1126
|
-
* 0x0201 Thermostat Feature Heating M
|
|
1127
|
-
*
|
|
1128
|
-
* The Energy Management feature of the Water Heater cluster SHALL be supported if the Device
|
|
1129
|
-
* Energy Management device type is included.
|
|
1130
|
-
* If Off is a supported SystemMode in the Thermostat cluster, setting the SystemMode of the Thermostat
|
|
1131
|
-
* cluster to Off SHALL set the CurrentMode attribute of the Water Heater Mode cluster to a mode
|
|
1132
|
-
* having the Off mode tag value and vice versa.
|
|
1133
|
-
* At least one entry in the SupportedModes attribute of the Water Heater Mode cluster SHALL
|
|
1134
|
-
* include the Timed mode tag in the ModeTags field list.
|
|
1135
|
-
*
|
|
1136
|
-
* WaterHeaterMode Cluster
|
|
1137
|
-
* 9.6.6.1. SupportedModes Attribute
|
|
1138
|
-
* At least one entry in the SupportedModes attribute SHALL include the Manual mode tag in the
|
|
1139
|
-
* ModeTags field list.
|
|
1140
|
-
* At least one entry in the SupportedModes attribute SHALL include the Off mode tag in the ModeTags
|
|
1141
|
-
* field list.
|
|
1142
|
-
* An entry in the SupportedModes attribute that includes one of an Off, Manual, or Timed tag SHALL
|
|
1143
|
-
* NOT also include an additional instance of any one of these tag types.
|
|
1144
|
-
*/
|
|
1145
596
|
export const waterHeater = DeviceTypeDefinition({
|
|
1146
597
|
name: 'MA-waterheater',
|
|
1147
598
|
code: 0x050f,
|
|
@@ -1150,99 +601,27 @@ export const waterHeater = DeviceTypeDefinition({
|
|
|
1150
601
|
requiredServerClusters: [Thermostat.Cluster.id, WaterHeaterManagement.Cluster.id, WaterHeaterMode.Cluster.id],
|
|
1151
602
|
optionalServerClusters: [Identify.Cluster.id],
|
|
1152
603
|
});
|
|
1153
|
-
/**
|
|
1154
|
-
* A Solar Power device is a device that allows a solar panel array, which can optionally be comprised
|
|
1155
|
-
* of a set parallel strings of solar panels, and its associated controller and, if appropriate, inverter, to
|
|
1156
|
-
* be monitored and controlled by an Energy Management System.
|
|
1157
|
-
*
|
|
1158
|
-
* 14.3.5. Device Type Requirements
|
|
1159
|
-
* A Solar Power device SHALL be composed of at least one endpoint with device types as defined by
|
|
1160
|
-
* the conformance below. There MAY be more endpoints with additional instances of these device
|
|
1161
|
-
* types or additional device types existing in the Solar Power device.
|
|
1162
|
-
*
|
|
1163
|
-
* - ID Name Constraint Conformance
|
|
1164
|
-
* - 0x0011 Power Source min 1 M
|
|
1165
|
-
* - 0x0510 Electrical Sensor min 1 M
|
|
1166
|
-
* - 0x050D Device Energy Management O
|
|
1167
|
-
* - 0x0302 Temperature Sensor O
|
|
1168
|
-
*
|
|
1169
|
-
* 14.3.5.1. Cluster Requirements on Composing Device Types
|
|
1170
|
-
*
|
|
1171
|
-
* - 0x0011 Power Source 0x002F Power Source Feature Wired M
|
|
1172
|
-
* - 0x0011 Power Source 0x001D Descriptor Feature TagList M
|
|
1173
|
-
* - 0x0510 Electrical Sensor 0x0090 Electrical Power Measurement M
|
|
1174
|
-
* - 0x0510 Electrical Sensor 0x0090 Electrical Power Measurement Attribute Voltage M
|
|
1175
|
-
* - 0x0510 Electrical Sensor 0x0090 Electrical Power Measurement Attribute ActiveCurrent M
|
|
1176
|
-
* - 0x0510 Electrical Sensor 0x0091 Electrical Energy Measurement M
|
|
1177
|
-
* - 0x0510 Electrical Sensor 0x0091 Electrical Energy Measurement Feature ExportedEnergy M
|
|
1178
|
-
* - 0x050D Device Energy Management 0x0098 Device Energy Management Feature PowerAdjustment M
|
|
1179
|
-
* - 0x0302 Temperature Sensor 0x001D Descriptor Feature TagList M
|
|
1180
|
-
*/
|
|
1181
604
|
export const solarPower = DeviceTypeDefinition({
|
|
1182
605
|
name: 'MA-solarpower',
|
|
1183
606
|
code: 0x0017,
|
|
1184
607
|
deviceClass: DeviceClasses.Simple,
|
|
1185
608
|
revision: 1,
|
|
1186
|
-
requiredServerClusters: [],
|
|
609
|
+
requiredServerClusters: [],
|
|
1187
610
|
optionalServerClusters: [Identify.Cluster.id],
|
|
1188
611
|
});
|
|
1189
|
-
/**
|
|
1190
|
-
* A Battery Storage device is a device that allows a DC battery, which can optionally be comprised of
|
|
1191
|
-
* a set parallel strings of battery packs and associated controller, and an AC inverter, to be monitored
|
|
1192
|
-
* and controlled by an Energy Management System in order to manage the peaks and troughs of supply
|
|
1193
|
-
* and demand, and/or to optimize cost of the energy consumed in premises. It is not intended to
|
|
1194
|
-
* be used for a UPS directly supplying a set of appliances, nor for portable battery storage devices.
|
|
1195
|
-
*
|
|
1196
|
-
* 14.4.5. Device Type Requirements
|
|
1197
|
-
* A Battery Storage device SHALL be composed of at least one endpoint with device types as defined by
|
|
1198
|
-
* the conformance below. There MAY be more endpoints with additional instances of these device
|
|
1199
|
-
* types or additional device types existing in the Battery Storage device.
|
|
1200
|
-
* - ID Name Constraint Conformance
|
|
1201
|
-
* - 0x0011 Power Source min 1 M
|
|
1202
|
-
* - 0x0510 Electrical Sensor min 1 M
|
|
1203
|
-
* - 0x050D Device Energy Management M
|
|
1204
|
-
* - 0x0302 Temperature Sensor O
|
|
1205
|
-
* - 0x0017 Solar Power O
|
|
1206
|
-
*
|
|
1207
|
-
* See 14.4.5.1. Cluster Requirements on Composing Device Types
|
|
1208
|
-
*/
|
|
1209
612
|
export const batteryStorage = DeviceTypeDefinition({
|
|
1210
613
|
name: 'MA-batterystorage',
|
|
1211
614
|
code: 0x0018,
|
|
1212
615
|
deviceClass: DeviceClasses.Simple,
|
|
1213
616
|
revision: 1,
|
|
1214
|
-
requiredServerClusters: [],
|
|
617
|
+
requiredServerClusters: [],
|
|
1215
618
|
optionalServerClusters: [Identify.Cluster.id],
|
|
1216
619
|
});
|
|
1217
|
-
/**
|
|
1218
|
-
* A Heat Pump device is a device that uses electrical energy to heat either spaces or water tanks using
|
|
1219
|
-
* ground, water or air as the heat source. These typically can heat the air or can pump water via central
|
|
1220
|
-
* heating radiators or underfloor heating systems. It is typical to also heat hot water and store
|
|
1221
|
-
* the heat in a hot water tank.
|
|
1222
|
-
*
|
|
1223
|
-
* 14.5.1. Heat Pump Architecture
|
|
1224
|
-
* A Heat Pump device is always defined via endpoint composition.
|
|
1225
|
-
*
|
|
1226
|
-
* 14.5.5. Device Type Requirements
|
|
1227
|
-
* A Heat Pump device SHALL be composed of at least one endpoint with device types as defined by
|
|
1228
|
-
* the conformance below. There MAY be more endpoints with additional instances of these device
|
|
1229
|
-
* types or additional device types existing in the Heat Pump device.
|
|
1230
|
-
* - ID Name Constraint Conformance
|
|
1231
|
-
* - 0x0011 Power Source M
|
|
1232
|
-
* - 0x0510 Electrical Sensor min 1 M
|
|
1233
|
-
* - 0x050D Device Energy Management M
|
|
1234
|
-
* - 0x0301 Thermostat O
|
|
1235
|
-
* - 0x050f Water Heater O
|
|
1236
|
-
* - 0x0302 Temperature Sensor O
|
|
1237
|
-
*
|
|
1238
|
-
* See 14.5.5.1. Cluster Requirements on Composing Device Types
|
|
1239
|
-
*/
|
|
1240
620
|
export const heatPump = DeviceTypeDefinition({
|
|
1241
621
|
name: 'MA-heatpump',
|
|
1242
622
|
code: 0x0309,
|
|
1243
623
|
deviceClass: DeviceClasses.Simple,
|
|
1244
624
|
revision: 1,
|
|
1245
|
-
requiredServerClusters: [],
|
|
625
|
+
requiredServerClusters: [],
|
|
1246
626
|
optionalServerClusters: [Identify.Cluster.id, Thermostat.Cluster.id],
|
|
1247
627
|
});
|
|
1248
|
-
//# sourceMappingURL=matterbridgeDeviceTypes.js.map
|