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