matterbridge 1.5.2 → 1.5.4
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 +31 -2
- package/README-DEV.md +4 -2
- package/dist/cluster/export.d.ts +1 -22
- package/dist/cluster/export.d.ts.map +1 -1
- package/dist/cluster/export.js +2 -22
- package/dist/cluster/export.js.map +1 -1
- package/dist/index.d.ts +3 -25
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -32
- package/dist/index.js.map +1 -1
- package/dist/matterbridge.d.ts +3 -1
- package/dist/matterbridge.d.ts.map +1 -1
- package/dist/matterbridge.js +127 -20
- package/dist/matterbridge.js.map +1 -1
- package/dist/matterbridgeDevice.d.ts +4608 -2298
- package/dist/matterbridgeDevice.d.ts.map +1 -1
- package/dist/matterbridgeDevice.js +170 -582
- package/dist/matterbridgeDevice.js.map +1 -1
- package/dist/matterbridgeTypes.d.ts +3 -0
- package/dist/matterbridgeTypes.d.ts.map +1 -1
- package/dist/pluginManager.d.ts.map +1 -1
- package/dist/pluginManager.js +20 -4
- package/dist/pluginManager.js.map +1 -1
- package/frontend/build/asset-manifest.json +3 -3
- package/frontend/build/index.html +1 -1
- package/frontend/build/static/js/{main.cfcfbb06.js → main.f86befcf.js} +3 -3
- package/frontend/build/static/js/main.f86befcf.js.map +1 -0
- package/package.json +13 -8
- package/dist/cluster/AirQualityCluster.d.ts +0 -188
- package/dist/cluster/AirQualityCluster.d.ts.map +0 -1
- package/dist/cluster/AirQualityCluster.js +0 -98
- package/dist/cluster/AirQualityCluster.js.map +0 -1
- package/dist/cluster/BooleanStateConfigurationCluster.d.ts +0 -2200
- package/dist/cluster/BooleanStateConfigurationCluster.d.ts.map +0 -1
- package/dist/cluster/BooleanStateConfigurationCluster.js +0 -388
- package/dist/cluster/BooleanStateConfigurationCluster.js.map +0 -1
- package/dist/cluster/BridgedDeviceBasicInformationCluster.d.ts +0 -223
- package/dist/cluster/BridgedDeviceBasicInformationCluster.d.ts.map +0 -1
- package/dist/cluster/BridgedDeviceBasicInformationCluster.js +0 -177
- package/dist/cluster/BridgedDeviceBasicInformationCluster.js.map +0 -1
- package/dist/cluster/CarbonDioxideConcentrationMeasurementCluster.d.ts +0 -396
- package/dist/cluster/CarbonDioxideConcentrationMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/CarbonDioxideConcentrationMeasurementCluster.js +0 -30
- package/dist/cluster/CarbonDioxideConcentrationMeasurementCluster.js.map +0 -1
- package/dist/cluster/CarbonMonoxideConcentrationMeasurementCluster.d.ts +0 -396
- package/dist/cluster/CarbonMonoxideConcentrationMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/CarbonMonoxideConcentrationMeasurementCluster.js +0 -30
- package/dist/cluster/CarbonMonoxideConcentrationMeasurementCluster.js.map +0 -1
- package/dist/cluster/ConcentrationMeasurementCluster.d.ts +0 -524
- package/dist/cluster/ConcentrationMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/ConcentrationMeasurementCluster.js +0 -282
- package/dist/cluster/ConcentrationMeasurementCluster.js.map +0 -1
- package/dist/cluster/DeviceEnergyManagementCluster.d.ts +0 -7851
- package/dist/cluster/DeviceEnergyManagementCluster.d.ts.map +0 -1
- package/dist/cluster/DeviceEnergyManagementCluster.js +0 -1634
- package/dist/cluster/DeviceEnergyManagementCluster.js.map +0 -1
- package/dist/cluster/DeviceEnergyManagementModeCluster.d.ts +0 -68
- package/dist/cluster/DeviceEnergyManagementModeCluster.d.ts.map +0 -1
- package/dist/cluster/DeviceEnergyManagementModeCluster.js +0 -49
- package/dist/cluster/DeviceEnergyManagementModeCluster.js.map +0 -1
- package/dist/cluster/ElectricalEnergyMeasurementCluster.d.ts +0 -4978
- package/dist/cluster/ElectricalEnergyMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/ElectricalEnergyMeasurementCluster.js +0 -510
- package/dist/cluster/ElectricalEnergyMeasurementCluster.js.map +0 -1
- package/dist/cluster/ElectricalPowerMeasurementCluster.d.ts +0 -3250
- package/dist/cluster/ElectricalPowerMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/ElectricalPowerMeasurementCluster.js +0 -675
- package/dist/cluster/ElectricalPowerMeasurementCluster.js.map +0 -1
- package/dist/cluster/FanControlCluster.d.ts +0 -1583
- package/dist/cluster/FanControlCluster.d.ts.map +0 -1
- package/dist/cluster/FanControlCluster.js +0 -492
- package/dist/cluster/FanControlCluster.js.map +0 -1
- package/dist/cluster/FormaldehydeConcentrationMeasurementCluster.d.ts +0 -396
- package/dist/cluster/FormaldehydeConcentrationMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/FormaldehydeConcentrationMeasurementCluster.js +0 -30
- package/dist/cluster/FormaldehydeConcentrationMeasurementCluster.js.map +0 -1
- package/dist/cluster/MeasurementAccuracy.d.ts +0 -63
- package/dist/cluster/MeasurementAccuracy.d.ts.map +0 -1
- package/dist/cluster/MeasurementAccuracy.js +0 -47
- package/dist/cluster/MeasurementAccuracy.js.map +0 -1
- package/dist/cluster/MeasurementAccuracyRange.d.ts +0 -134
- package/dist/cluster/MeasurementAccuracyRange.d.ts.map +0 -1
- package/dist/cluster/MeasurementAccuracyRange.js +0 -103
- package/dist/cluster/MeasurementAccuracyRange.js.map +0 -1
- package/dist/cluster/MeasurementType.d.ts +0 -68
- package/dist/cluster/MeasurementType.d.ts.map +0 -1
- package/dist/cluster/MeasurementType.js +0 -69
- package/dist/cluster/MeasurementType.js.map +0 -1
- package/dist/cluster/NitrogenDioxideConcentrationMeasurementCluster.d.ts +0 -396
- package/dist/cluster/NitrogenDioxideConcentrationMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/NitrogenDioxideConcentrationMeasurementCluster.js +0 -34
- package/dist/cluster/NitrogenDioxideConcentrationMeasurementCluster.js.map +0 -1
- package/dist/cluster/OzoneConcentrationMeasurementCluster.d.ts +0 -395
- package/dist/cluster/OzoneConcentrationMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/OzoneConcentrationMeasurementCluster.js +0 -29
- package/dist/cluster/OzoneConcentrationMeasurementCluster.js.map +0 -1
- package/dist/cluster/Pm10ConcentrationMeasurementCluster.d.ts +0 -395
- package/dist/cluster/Pm10ConcentrationMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/Pm10ConcentrationMeasurementCluster.js +0 -29
- package/dist/cluster/Pm10ConcentrationMeasurementCluster.js.map +0 -1
- package/dist/cluster/Pm1ConcentrationMeasurementCluster.d.ts +0 -395
- package/dist/cluster/Pm1ConcentrationMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/Pm1ConcentrationMeasurementCluster.js +0 -29
- package/dist/cluster/Pm1ConcentrationMeasurementCluster.js.map +0 -1
- package/dist/cluster/Pm25ConcentrationMeasurementCluster.d.ts +0 -395
- package/dist/cluster/Pm25ConcentrationMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/Pm25ConcentrationMeasurementCluster.js +0 -29
- package/dist/cluster/Pm25ConcentrationMeasurementCluster.js.map +0 -1
- package/dist/cluster/PowerTopologyCluster.d.ts +0 -345
- package/dist/cluster/PowerTopologyCluster.d.ts.map +0 -1
- package/dist/cluster/PowerTopologyCluster.js +0 -138
- package/dist/cluster/PowerTopologyCluster.js.map +0 -1
- package/dist/cluster/RadonConcentrationMeasurementCluster.d.ts +0 -395
- package/dist/cluster/RadonConcentrationMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/RadonConcentrationMeasurementCluster.js +0 -29
- package/dist/cluster/RadonConcentrationMeasurementCluster.js.map +0 -1
- package/dist/cluster/SmokeCoAlarmCluster.d.ts +0 -1575
- package/dist/cluster/SmokeCoAlarmCluster.d.ts.map +0 -1
- package/dist/cluster/SmokeCoAlarmCluster.js +0 -603
- package/dist/cluster/SmokeCoAlarmCluster.js.map +0 -1
- package/dist/cluster/TvocCluster.d.ts +0 -465
- package/dist/cluster/TvocCluster.d.ts.map +0 -1
- package/dist/cluster/TvocCluster.js +0 -197
- package/dist/cluster/TvocCluster.js.map +0 -1
- package/frontend/build/static/js/main.cfcfbb06.js.map +0 -1
- /package/frontend/build/static/js/{main.cfcfbb06.js.LICENSE.txt → main.f86befcf.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.4",
|
|
4
4
|
"description": "Matterbridge plugin manager for Matter",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -105,8 +105,12 @@
|
|
|
105
105
|
"prepublishOnly": "npm run lint && npm run cleanBuild",
|
|
106
106
|
"checkDependencies": "npx npm-check-updates",
|
|
107
107
|
"updateDependencies": "npx npm-check-updates -u && npm install & npm run cleanBuild",
|
|
108
|
-
"updateMatter:latest": "npm run deepClean && npm install @project-chip/matter-node.js@latest && npm install && npm run build",
|
|
109
|
-
"updateMatter:dev": "npm run deepClean && npm install @project-chip/matter-node.js@dev && npm install && npm run build",
|
|
108
|
+
"updateMatter:latest": "npm run deepClean && npm install @project-chip/matter-node.js@latest @project-chip/matter.js@latest && npm install && npm run build",
|
|
109
|
+
"updateMatter:dev": "npm run deepClean && npm install @project-chip/matter-node.js@dev @project-chip/matter.js@dev && npm install && npm run build",
|
|
110
|
+
"updateMatter:loc": "npm run deepClean && npm install ../matter.js/packages/matter-node.js ../matter.js/packages/matter.js && npm install && npm run build",
|
|
111
|
+
"updateHistory:latest": "npm run deepClean && npm install matter-history@latest && npm install && npm run build",
|
|
112
|
+
"updateHistory:dev": "npm run deepClean && npm install matter-history@dev && npm install && npm run build",
|
|
113
|
+
"updateHistory:loc": "npm run deepClean && npm install ../matter-history && npm install && npm run build",
|
|
110
114
|
"wtf:install": "npm install wtfnode && npm install --save-dev @types/wtfnode",
|
|
111
115
|
"wtf:uninstall": "npm uninstall wtfnode @types/wtfnode",
|
|
112
116
|
"preversion": "npm run build && npm run lint",
|
|
@@ -121,12 +125,13 @@
|
|
|
121
125
|
"install:jest": "npm install --save-dev jest ts-jest @types/jest eslint-plugin-jest"
|
|
122
126
|
},
|
|
123
127
|
"dependencies": {
|
|
124
|
-
"@project-chip/matter-node.js": "0.
|
|
128
|
+
"@project-chip/matter-node.js": "0.10.0",
|
|
129
|
+
"@project-chip/matter.js": "0.10.0",
|
|
125
130
|
"archiver": "7.0.1",
|
|
126
131
|
"express": "4.19.2",
|
|
127
|
-
"glob": "
|
|
132
|
+
"glob": "11.0.0",
|
|
128
133
|
"https": "1.0.0",
|
|
129
|
-
"matter-history": "1.1.
|
|
134
|
+
"matter-history": "^1.1.8",
|
|
130
135
|
"node-ansi-logger": "3.0.0",
|
|
131
136
|
"node-persist-manager": "1.0.8",
|
|
132
137
|
"ws": "8.18.0"
|
|
@@ -139,9 +144,9 @@
|
|
|
139
144
|
"@types/jest": "29.5.12",
|
|
140
145
|
"@types/node": "22.5.1",
|
|
141
146
|
"@types/ws": "8.5.12",
|
|
142
|
-
"eslint": "
|
|
147
|
+
"eslint": "9.9.1",
|
|
143
148
|
"eslint-config-prettier": "9.1.0",
|
|
144
|
-
"eslint-plugin-jest": "28.8.
|
|
149
|
+
"eslint-plugin-jest": "28.8.1",
|
|
145
150
|
"eslint-plugin-prettier": "5.2.1",
|
|
146
151
|
"jest": "29.7.0",
|
|
147
152
|
"prettier": "3.3.3",
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the AirQuality cluster.
|
|
3
|
-
*
|
|
4
|
-
* @file AirQualityCluster.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @date 2023-12-29
|
|
7
|
-
* @version 1.0.1
|
|
8
|
-
*
|
|
9
|
-
* Copyright 2023, 2024 Luca Liguori.
|
|
10
|
-
*
|
|
11
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
12
|
-
* you may not use this file except in compliance with the License.
|
|
13
|
-
* You may obtain a copy of the License at
|
|
14
|
-
*
|
|
15
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
-
*
|
|
17
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
-
* See the License for the specific language governing permissions and
|
|
21
|
-
* limitations under the License. *
|
|
22
|
-
*/
|
|
23
|
-
import { MutableCluster } from '@project-chip/matter-node.js/cluster';
|
|
24
|
-
import { Attribute } from '@project-chip/matter-node.js/cluster';
|
|
25
|
-
import { BitFlag } from '@project-chip/matter-node.js/schema';
|
|
26
|
-
import { Identity } from '@project-chip/matter-node.js/util';
|
|
27
|
-
export declare namespace AirQuality {
|
|
28
|
-
enum AirQualityType {
|
|
29
|
-
Unknown = 0,
|
|
30
|
-
Good = 1,
|
|
31
|
-
Fair = 2,
|
|
32
|
-
Moderate = 3,
|
|
33
|
-
Poor = 4,
|
|
34
|
-
VeryPoor = 5,
|
|
35
|
-
ExtremelyPoor = 6
|
|
36
|
-
}
|
|
37
|
-
const FairAirQualityComponent: {
|
|
38
|
-
readonly attributes: {
|
|
39
|
-
readonly airQuality: Attribute<AirQualityType, any>;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
const ModerateAirQualityComponent: {
|
|
43
|
-
readonly attributes: {
|
|
44
|
-
readonly airQuality: Attribute<AirQualityType, any>;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
const VeryPoorAirQualityComponent: {
|
|
48
|
-
readonly attributes: {
|
|
49
|
-
readonly airQuality: Attribute<AirQualityType, any>;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
const ExtremelyPoorAirQualityComponent: {
|
|
53
|
-
readonly attributes: {
|
|
54
|
-
readonly airQuality: Attribute<AirQualityType, any>;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
enum Feature {
|
|
58
|
-
FairAirQuality = "FairAirQuality",
|
|
59
|
-
ModerateAirQuality = "ModerateAirQuality",
|
|
60
|
-
VeryPoorAirQuality = "VeryPoorAirQuality",
|
|
61
|
-
ExtremelyPoorAirQuality = "ExtremelyPoorAirQuality"
|
|
62
|
-
}
|
|
63
|
-
const Base: {
|
|
64
|
-
readonly id: 91;
|
|
65
|
-
readonly name: "AirQuality";
|
|
66
|
-
readonly revision: 1;
|
|
67
|
-
readonly features: {
|
|
68
|
-
readonly fairAirQuality: BitFlag;
|
|
69
|
-
readonly moderateAirQuality: BitFlag;
|
|
70
|
-
readonly veryPoorAirQuality: BitFlag;
|
|
71
|
-
readonly extremelyPoorAirQuality: BitFlag;
|
|
72
|
-
};
|
|
73
|
-
readonly attributes: {
|
|
74
|
-
readonly airQuality: Attribute<AirQualityType, any>;
|
|
75
|
-
};
|
|
76
|
-
readonly extensions: readonly [{
|
|
77
|
-
readonly flags: {
|
|
78
|
-
readonly fairAirQuality: true;
|
|
79
|
-
};
|
|
80
|
-
readonly component: {
|
|
81
|
-
readonly attributes: {
|
|
82
|
-
readonly airQuality: Attribute<AirQualityType, any>;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
}, {
|
|
86
|
-
readonly flags: {
|
|
87
|
-
readonly ModerateAirQuality: true;
|
|
88
|
-
};
|
|
89
|
-
readonly component: {
|
|
90
|
-
readonly attributes: {
|
|
91
|
-
readonly airQuality: Attribute<AirQualityType, any>;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
}, {
|
|
95
|
-
readonly flags: {
|
|
96
|
-
readonly VeryPoorAirQuality: true;
|
|
97
|
-
};
|
|
98
|
-
readonly component: {
|
|
99
|
-
readonly attributes: {
|
|
100
|
-
readonly airQuality: Attribute<AirQualityType, any>;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
}, {
|
|
104
|
-
readonly flags: {
|
|
105
|
-
readonly ExtremelyPoorAirQuality: true;
|
|
106
|
-
};
|
|
107
|
-
readonly component: {
|
|
108
|
-
readonly attributes: {
|
|
109
|
-
readonly airQuality: Attribute<AirQualityType, any>;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
}];
|
|
113
|
-
};
|
|
114
|
-
const ClusterInstance: MutableCluster.ExtensibleOnly<{
|
|
115
|
-
readonly id: 91;
|
|
116
|
-
readonly name: "AirQuality";
|
|
117
|
-
readonly revision: 1;
|
|
118
|
-
readonly features: {
|
|
119
|
-
readonly fairAirQuality: BitFlag;
|
|
120
|
-
readonly moderateAirQuality: BitFlag;
|
|
121
|
-
readonly veryPoorAirQuality: BitFlag;
|
|
122
|
-
readonly extremelyPoorAirQuality: BitFlag;
|
|
123
|
-
};
|
|
124
|
-
readonly attributes: {
|
|
125
|
-
readonly airQuality: Attribute<AirQualityType, any>;
|
|
126
|
-
};
|
|
127
|
-
readonly extensions: readonly [{
|
|
128
|
-
readonly flags: {
|
|
129
|
-
readonly fairAirQuality: true;
|
|
130
|
-
};
|
|
131
|
-
readonly component: {
|
|
132
|
-
readonly attributes: {
|
|
133
|
-
readonly airQuality: Attribute<AirQualityType, any>;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
}, {
|
|
137
|
-
readonly flags: {
|
|
138
|
-
readonly ModerateAirQuality: true;
|
|
139
|
-
};
|
|
140
|
-
readonly component: {
|
|
141
|
-
readonly attributes: {
|
|
142
|
-
readonly airQuality: Attribute<AirQualityType, any>;
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
}, {
|
|
146
|
-
readonly flags: {
|
|
147
|
-
readonly VeryPoorAirQuality: true;
|
|
148
|
-
};
|
|
149
|
-
readonly component: {
|
|
150
|
-
readonly attributes: {
|
|
151
|
-
readonly airQuality: Attribute<AirQualityType, any>;
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
}, {
|
|
155
|
-
readonly flags: {
|
|
156
|
-
readonly ExtremelyPoorAirQuality: true;
|
|
157
|
-
};
|
|
158
|
-
readonly component: {
|
|
159
|
-
readonly attributes: {
|
|
160
|
-
readonly airQuality: Attribute<AirQualityType, any>;
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
}];
|
|
164
|
-
}>;
|
|
165
|
-
interface Cluster extends Identity<typeof ClusterInstance> {
|
|
166
|
-
}
|
|
167
|
-
const Cluster: Cluster;
|
|
168
|
-
const CompleteInstance: MutableCluster<{
|
|
169
|
-
readonly id: 91;
|
|
170
|
-
readonly name: "AirQuality";
|
|
171
|
-
readonly revision: 1;
|
|
172
|
-
readonly features: {
|
|
173
|
-
readonly fairAirQuality: BitFlag;
|
|
174
|
-
readonly moderateAirQuality: BitFlag;
|
|
175
|
-
readonly veryPoorAirQuality: BitFlag;
|
|
176
|
-
readonly extremelyPoorAirQuality: BitFlag;
|
|
177
|
-
};
|
|
178
|
-
readonly attributes: {
|
|
179
|
-
readonly airQuality: Attribute<AirQualityType, any>;
|
|
180
|
-
};
|
|
181
|
-
}>;
|
|
182
|
-
interface Complete extends Identity<typeof CompleteInstance> {
|
|
183
|
-
}
|
|
184
|
-
const Complete: Complete;
|
|
185
|
-
}
|
|
186
|
-
export type AirQualityCluster = AirQuality.Cluster;
|
|
187
|
-
export declare const AirQualityCluster: AirQuality.Cluster;
|
|
188
|
-
//# sourceMappingURL=AirQualityCluster.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AirQualityCluster.d.ts","sourceRoot":"","sources":["../../src/cluster/AirQualityCluster.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,EAAmB,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAE9D,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAE7D,yBAAiB,UAAU,CAAC;IAC1B,KAAY,cAAc;QACxB,OAAO,IAAI;QACX,IAAI,IAAI;QACR,IAAI,IAAI;QACR,QAAQ,IAAI;QACZ,IAAI,IAAI;QACR,QAAQ,IAAI;QACZ,aAAa,IAAI;KAClB;IAEM,MAAM,uBAAuB;;;;KAIlC,CAAC;IACI,MAAM,2BAA2B;;;;KAItC,CAAC;IACI,MAAM,2BAA2B;;;;KAItC,CAAC;IACI,MAAM,gCAAgC;;;;KAI3C,CAAC;IAEH,KAAY,OAAO;QACjB,cAAc,mBAAmB;QACjC,kBAAkB,uBAAuB;QACzC,kBAAkB,uBAAuB;QACzC,uBAAuB,4BAA4B;KACpD;IAEM,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsBf,CAAC;IAEI,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAsC,CAAC;IAEnE,UAAiB,OAAQ,SAAQ,QAAQ,CAAC,OAAO,eAAe,CAAC;KAAG;IAE7D,MAAM,OAAO,EAAE,OAAyB,CAAC;IAEzC,MAAM,gBAAgB;;;;;;;;;;;;;MAS3B,CAAC;IAEH,UAAiB,QAAS,SAAQ,QAAQ,CAAC,OAAO,gBAAgB,CAAC;KAAG;IAE/D,MAAM,QAAQ,EAAE,QAA2B,CAAC;CACpD;AAED,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,CAAC;AACnD,eAAO,MAAM,iBAAiB,oBAAqB,CAAC"}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-empty-object-type */
|
|
2
|
-
/**
|
|
3
|
-
* This file contains the AirQuality cluster.
|
|
4
|
-
*
|
|
5
|
-
* @file AirQualityCluster.ts
|
|
6
|
-
* @author Luca Liguori
|
|
7
|
-
* @date 2023-12-29
|
|
8
|
-
* @version 1.0.1
|
|
9
|
-
*
|
|
10
|
-
* Copyright 2023, 2024 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 @typescript-eslint/no-namespace */
|
|
25
|
-
import { ClusterRegistry, MutableCluster } from '@project-chip/matter-node.js/cluster';
|
|
26
|
-
import { Attribute } from '@project-chip/matter-node.js/cluster';
|
|
27
|
-
import { BitFlag } from '@project-chip/matter-node.js/schema';
|
|
28
|
-
import { TlvEnum } from '@project-chip/matter-node.js/tlv';
|
|
29
|
-
export var AirQuality;
|
|
30
|
-
(function (AirQuality) {
|
|
31
|
-
let AirQualityType;
|
|
32
|
-
(function (AirQualityType) {
|
|
33
|
-
AirQualityType[AirQualityType["Unknown"] = 0] = "Unknown";
|
|
34
|
-
AirQualityType[AirQualityType["Good"] = 1] = "Good";
|
|
35
|
-
AirQualityType[AirQualityType["Fair"] = 2] = "Fair";
|
|
36
|
-
AirQualityType[AirQualityType["Moderate"] = 3] = "Moderate";
|
|
37
|
-
AirQualityType[AirQualityType["Poor"] = 4] = "Poor";
|
|
38
|
-
AirQualityType[AirQualityType["VeryPoor"] = 5] = "VeryPoor";
|
|
39
|
-
AirQualityType[AirQualityType["ExtremelyPoor"] = 6] = "ExtremelyPoor";
|
|
40
|
-
})(AirQualityType = AirQuality.AirQualityType || (AirQuality.AirQualityType = {}));
|
|
41
|
-
AirQuality.FairAirQualityComponent = MutableCluster.Component({
|
|
42
|
-
attributes: {
|
|
43
|
-
airQuality: Attribute(0x0, TlvEnum()),
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
AirQuality.ModerateAirQualityComponent = MutableCluster.Component({
|
|
47
|
-
attributes: {
|
|
48
|
-
airQuality: Attribute(0x0, TlvEnum()),
|
|
49
|
-
},
|
|
50
|
-
});
|
|
51
|
-
AirQuality.VeryPoorAirQualityComponent = MutableCluster.Component({
|
|
52
|
-
attributes: {
|
|
53
|
-
airQuality: Attribute(0x0, TlvEnum()),
|
|
54
|
-
},
|
|
55
|
-
});
|
|
56
|
-
AirQuality.ExtremelyPoorAirQualityComponent = MutableCluster.Component({
|
|
57
|
-
attributes: {
|
|
58
|
-
airQuality: Attribute(0x0, TlvEnum()),
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
let Feature;
|
|
62
|
-
(function (Feature) {
|
|
63
|
-
Feature["FairAirQuality"] = "FairAirQuality";
|
|
64
|
-
Feature["ModerateAirQuality"] = "ModerateAirQuality";
|
|
65
|
-
Feature["VeryPoorAirQuality"] = "VeryPoorAirQuality";
|
|
66
|
-
Feature["ExtremelyPoorAirQuality"] = "ExtremelyPoorAirQuality";
|
|
67
|
-
})(Feature = AirQuality.Feature || (AirQuality.Feature = {}));
|
|
68
|
-
AirQuality.Base = MutableCluster.Component({
|
|
69
|
-
id: 0x005b,
|
|
70
|
-
name: 'AirQuality',
|
|
71
|
-
revision: 1,
|
|
72
|
-
features: {
|
|
73
|
-
fairAirQuality: BitFlag(0),
|
|
74
|
-
moderateAirQuality: BitFlag(1),
|
|
75
|
-
veryPoorAirQuality: BitFlag(2),
|
|
76
|
-
extremelyPoorAirQuality: BitFlag(3),
|
|
77
|
-
},
|
|
78
|
-
attributes: {
|
|
79
|
-
airQuality: Attribute(0x0, TlvEnum()),
|
|
80
|
-
},
|
|
81
|
-
extensions: MutableCluster.Extensions({ flags: { fairAirQuality: true }, component: AirQuality.FairAirQualityComponent }, { flags: { ModerateAirQuality: true }, component: AirQuality.ModerateAirQualityComponent }, { flags: { VeryPoorAirQuality: true }, component: AirQuality.VeryPoorAirQualityComponent }, { flags: { ExtremelyPoorAirQuality: true }, component: AirQuality.ExtremelyPoorAirQualityComponent }),
|
|
82
|
-
});
|
|
83
|
-
AirQuality.ClusterInstance = MutableCluster.ExtensibleOnly(AirQuality.Base);
|
|
84
|
-
AirQuality.Cluster = AirQuality.ClusterInstance;
|
|
85
|
-
AirQuality.CompleteInstance = MutableCluster({
|
|
86
|
-
id: AirQuality.Base.id,
|
|
87
|
-
name: AirQuality.Base.name,
|
|
88
|
-
revision: AirQuality.Base.revision,
|
|
89
|
-
features: AirQuality.Base.features,
|
|
90
|
-
attributes: {
|
|
91
|
-
...AirQuality.Base.attributes,
|
|
92
|
-
},
|
|
93
|
-
});
|
|
94
|
-
AirQuality.Complete = AirQuality.CompleteInstance;
|
|
95
|
-
})(AirQuality || (AirQuality = {}));
|
|
96
|
-
export const AirQualityCluster = AirQuality.Cluster;
|
|
97
|
-
ClusterRegistry.register(AirQuality.Complete);
|
|
98
|
-
//# sourceMappingURL=AirQualityCluster.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AirQualityCluster.js","sourceRoot":"","sources":["../../src/cluster/AirQualityCluster.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,oDAAoD;AACpD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAG3D,MAAM,KAAW,UAAU,CAmF1B;AAnFD,WAAiB,UAAU;IACzB,IAAY,cAQX;IARD,WAAY,cAAc;QACxB,yDAAW,CAAA;QACX,mDAAQ,CAAA;QACR,mDAAQ,CAAA;QACR,2DAAY,CAAA;QACZ,mDAAQ,CAAA;QACR,2DAAY,CAAA;QACZ,qEAAiB,CAAA;IACnB,CAAC,EARW,cAAc,GAAd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