matterbridge 1.5.3 → 1.5.5

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.
Files changed (115) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README-DEV.md +13 -4
  3. package/README.md +32 -11
  4. package/dist/cluster/export.d.ts +1 -21
  5. package/dist/cluster/export.d.ts.map +1 -1
  6. package/dist/cluster/export.js +2 -21
  7. package/dist/cluster/export.js.map +1 -1
  8. package/dist/matterbridge.js +20 -20
  9. package/dist/matterbridge.js.map +1 -1
  10. package/dist/matterbridgeDevice.d.ts +105 -210
  11. package/dist/matterbridgeDevice.d.ts.map +1 -1
  12. package/dist/matterbridgeDevice.js +31 -48
  13. package/dist/matterbridgeDevice.js.map +1 -1
  14. package/dist/matterbridgePlatform.d.ts +6 -0
  15. package/dist/matterbridgePlatform.d.ts.map +1 -1
  16. package/dist/matterbridgePlatform.js +26 -0
  17. package/dist/matterbridgePlatform.js.map +1 -1
  18. package/dist/pluginManager.d.ts.map +1 -1
  19. package/dist/pluginManager.js +72 -5
  20. package/dist/pluginManager.js.map +1 -1
  21. package/frontend/build/asset-manifest.json +3 -3
  22. package/frontend/build/index.html +1 -1
  23. package/frontend/build/static/js/{main.6725e5ab.js → main.f86befcf.js} +3 -3
  24. package/frontend/build/static/js/{main.6725e5ab.js.map → main.f86befcf.js.map} +1 -1
  25. package/npm-shrinkwrap.json +7334 -0
  26. package/package.json +13 -12
  27. package/dist/cluster/AirQualityCluster.d.ts +0 -188
  28. package/dist/cluster/AirQualityCluster.d.ts.map +0 -1
  29. package/dist/cluster/AirQualityCluster.js +0 -98
  30. package/dist/cluster/AirQualityCluster.js.map +0 -1
  31. package/dist/cluster/CarbonDioxideConcentrationMeasurementCluster.d.ts +0 -396
  32. package/dist/cluster/CarbonDioxideConcentrationMeasurementCluster.d.ts.map +0 -1
  33. package/dist/cluster/CarbonDioxideConcentrationMeasurementCluster.js +0 -30
  34. package/dist/cluster/CarbonDioxideConcentrationMeasurementCluster.js.map +0 -1
  35. package/dist/cluster/CarbonMonoxideConcentrationMeasurementCluster.d.ts +0 -396
  36. package/dist/cluster/CarbonMonoxideConcentrationMeasurementCluster.d.ts.map +0 -1
  37. package/dist/cluster/CarbonMonoxideConcentrationMeasurementCluster.js +0 -30
  38. package/dist/cluster/CarbonMonoxideConcentrationMeasurementCluster.js.map +0 -1
  39. package/dist/cluster/ConcentrationMeasurementCluster.d.ts +0 -524
  40. package/dist/cluster/ConcentrationMeasurementCluster.d.ts.map +0 -1
  41. package/dist/cluster/ConcentrationMeasurementCluster.js +0 -282
  42. package/dist/cluster/ConcentrationMeasurementCluster.js.map +0 -1
  43. package/dist/cluster/DeviceEnergyManagementCluster.d.ts +0 -7851
  44. package/dist/cluster/DeviceEnergyManagementCluster.d.ts.map +0 -1
  45. package/dist/cluster/DeviceEnergyManagementCluster.js +0 -1634
  46. package/dist/cluster/DeviceEnergyManagementCluster.js.map +0 -1
  47. package/dist/cluster/DeviceEnergyManagementModeCluster.d.ts +0 -68
  48. package/dist/cluster/DeviceEnergyManagementModeCluster.d.ts.map +0 -1
  49. package/dist/cluster/DeviceEnergyManagementModeCluster.js +0 -49
  50. package/dist/cluster/DeviceEnergyManagementModeCluster.js.map +0 -1
  51. package/dist/cluster/ElectricalEnergyMeasurementCluster.d.ts +0 -4978
  52. package/dist/cluster/ElectricalEnergyMeasurementCluster.d.ts.map +0 -1
  53. package/dist/cluster/ElectricalEnergyMeasurementCluster.js +0 -510
  54. package/dist/cluster/ElectricalEnergyMeasurementCluster.js.map +0 -1
  55. package/dist/cluster/ElectricalPowerMeasurementCluster.d.ts +0 -3250
  56. package/dist/cluster/ElectricalPowerMeasurementCluster.d.ts.map +0 -1
  57. package/dist/cluster/ElectricalPowerMeasurementCluster.js +0 -675
  58. package/dist/cluster/ElectricalPowerMeasurementCluster.js.map +0 -1
  59. package/dist/cluster/FormaldehydeConcentrationMeasurementCluster.d.ts +0 -396
  60. package/dist/cluster/FormaldehydeConcentrationMeasurementCluster.d.ts.map +0 -1
  61. package/dist/cluster/FormaldehydeConcentrationMeasurementCluster.js +0 -30
  62. package/dist/cluster/FormaldehydeConcentrationMeasurementCluster.js.map +0 -1
  63. package/dist/cluster/MeasurementAccuracy.d.ts +0 -63
  64. package/dist/cluster/MeasurementAccuracy.d.ts.map +0 -1
  65. package/dist/cluster/MeasurementAccuracy.js +0 -47
  66. package/dist/cluster/MeasurementAccuracy.js.map +0 -1
  67. package/dist/cluster/MeasurementAccuracyRange.d.ts +0 -134
  68. package/dist/cluster/MeasurementAccuracyRange.d.ts.map +0 -1
  69. package/dist/cluster/MeasurementAccuracyRange.js +0 -103
  70. package/dist/cluster/MeasurementAccuracyRange.js.map +0 -1
  71. package/dist/cluster/MeasurementType.d.ts +0 -68
  72. package/dist/cluster/MeasurementType.d.ts.map +0 -1
  73. package/dist/cluster/MeasurementType.js +0 -69
  74. package/dist/cluster/MeasurementType.js.map +0 -1
  75. package/dist/cluster/NitrogenDioxideConcentrationMeasurementCluster.d.ts +0 -396
  76. package/dist/cluster/NitrogenDioxideConcentrationMeasurementCluster.d.ts.map +0 -1
  77. package/dist/cluster/NitrogenDioxideConcentrationMeasurementCluster.js +0 -34
  78. package/dist/cluster/NitrogenDioxideConcentrationMeasurementCluster.js.map +0 -1
  79. package/dist/cluster/OzoneConcentrationMeasurementCluster.d.ts +0 -395
  80. package/dist/cluster/OzoneConcentrationMeasurementCluster.d.ts.map +0 -1
  81. package/dist/cluster/OzoneConcentrationMeasurementCluster.js +0 -29
  82. package/dist/cluster/OzoneConcentrationMeasurementCluster.js.map +0 -1
  83. package/dist/cluster/Pm10ConcentrationMeasurementCluster.d.ts +0 -395
  84. package/dist/cluster/Pm10ConcentrationMeasurementCluster.d.ts.map +0 -1
  85. package/dist/cluster/Pm10ConcentrationMeasurementCluster.js +0 -29
  86. package/dist/cluster/Pm10ConcentrationMeasurementCluster.js.map +0 -1
  87. package/dist/cluster/Pm1ConcentrationMeasurementCluster.d.ts +0 -395
  88. package/dist/cluster/Pm1ConcentrationMeasurementCluster.d.ts.map +0 -1
  89. package/dist/cluster/Pm1ConcentrationMeasurementCluster.js +0 -29
  90. package/dist/cluster/Pm1ConcentrationMeasurementCluster.js.map +0 -1
  91. package/dist/cluster/Pm25ConcentrationMeasurementCluster.d.ts +0 -395
  92. package/dist/cluster/Pm25ConcentrationMeasurementCluster.d.ts.map +0 -1
  93. package/dist/cluster/Pm25ConcentrationMeasurementCluster.js +0 -29
  94. package/dist/cluster/Pm25ConcentrationMeasurementCluster.js.map +0 -1
  95. package/dist/cluster/PowerTopologyCluster.d.ts +0 -345
  96. package/dist/cluster/PowerTopologyCluster.d.ts.map +0 -1
  97. package/dist/cluster/PowerTopologyCluster.js +0 -138
  98. package/dist/cluster/PowerTopologyCluster.js.map +0 -1
  99. package/dist/cluster/RadonConcentrationMeasurementCluster.d.ts +0 -395
  100. package/dist/cluster/RadonConcentrationMeasurementCluster.d.ts.map +0 -1
  101. package/dist/cluster/RadonConcentrationMeasurementCluster.js +0 -29
  102. package/dist/cluster/RadonConcentrationMeasurementCluster.js.map +0 -1
  103. package/dist/cluster/ScenesCluster.d.ts +0 -1249
  104. package/dist/cluster/ScenesCluster.d.ts.map +0 -1
  105. package/dist/cluster/ScenesCluster.js +0 -436
  106. package/dist/cluster/ScenesCluster.js.map +0 -1
  107. package/dist/cluster/SmokeCoAlarmCluster.d.ts +0 -1575
  108. package/dist/cluster/SmokeCoAlarmCluster.d.ts.map +0 -1
  109. package/dist/cluster/SmokeCoAlarmCluster.js +0 -603
  110. package/dist/cluster/SmokeCoAlarmCluster.js.map +0 -1
  111. package/dist/cluster/TvocCluster.d.ts +0 -465
  112. package/dist/cluster/TvocCluster.d.ts.map +0 -1
  113. package/dist/cluster/TvocCluster.js +0 -197
  114. package/dist/cluster/TvocCluster.js.map +0 -1
  115. /package/frontend/build/static/js/{main.6725e5ab.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",
3
+ "version": "1.5.5",
4
4
  "description": "Matterbridge plugin manager for Matter",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",
@@ -77,6 +77,7 @@
77
77
  "scripts": {
78
78
  "build": "tsc",
79
79
  "watch": "tsc --watch",
80
+ "start": "node ./dist/cli.js",
80
81
  "start:test": "node ./dist/cli.js -test",
81
82
  "start:bridge": "node ./dist/cli.js -bridge",
82
83
  "start:childbridge": "node ./dist/cli.js -childbridge",
@@ -100,9 +101,9 @@
100
101
  "format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,json,css,md}\"",
101
102
  "clean": "rimraf tsconfig.tsbuildinfo ./dist",
102
103
  "cleanBuild": "npm run clean && npm run build",
103
- "deepClean": "rimraf tsconfig.tsbuildinfo package-lock.json ./dist ./node_modules",
104
+ "deepClean": "rimraf tsconfig.tsbuildinfo package-lock.json npm-shrinkwrap.json ./dist ./node_modules",
104
105
  "deepCleanRebuild": "npm run deepClean && npm install && npm run build",
105
- "prepublishOnly": "npm run lint && npm run cleanBuild",
106
+ "prepublishOnly": "npm run lint && npm run cleanBuild && npm shrinkwrap",
106
107
  "checkDependencies": "npx npm-check-updates",
107
108
  "updateDependencies": "npx npm-check-updates -u && npm install & npm run cleanBuild",
108
109
  "updateMatter:latest": "npm run deepClean && npm install @project-chip/matter-node.js@latest @project-chip/matter.js@latest && npm install && npm run build",
@@ -125,34 +126,34 @@
125
126
  "install:jest": "npm install --save-dev jest ts-jest @types/jest eslint-plugin-jest"
126
127
  },
127
128
  "dependencies": {
128
- "@project-chip/matter-node.js": "0.10.0",
129
- "@project-chip/matter.js": "0.10.0",
129
+ "@project-chip/matter-node.js": "0.10.1",
130
+ "@project-chip/matter.js": "0.10.1",
130
131
  "archiver": "7.0.1",
131
132
  "express": "4.19.2",
132
133
  "glob": "11.0.0",
133
134
  "https": "1.0.0",
134
- "matter-history": "^1.1.8",
135
+ "matter-history": "1.1.11",
135
136
  "node-ansi-logger": "3.0.0",
136
137
  "node-persist-manager": "1.0.8",
137
138
  "ws": "8.18.0"
138
139
  },
139
140
  "devDependencies": {
140
- "@eslint/js": "9.9.1",
141
+ "@eslint/js": "9.10.0",
141
142
  "@types/archiver": "6.0.2",
142
143
  "@types/eslint__js": "8.42.3",
143
144
  "@types/express": "4.17.21",
144
145
  "@types/jest": "29.5.12",
145
- "@types/node": "22.5.1",
146
+ "@types/node": "22.5.4",
146
147
  "@types/ws": "8.5.12",
147
- "eslint": "9.9.1",
148
+ "eslint": "9.10.0",
148
149
  "eslint-config-prettier": "9.1.0",
149
- "eslint-plugin-jest": "28.8.1",
150
+ "eslint-plugin-jest": "28.8.3",
150
151
  "eslint-plugin-prettier": "5.2.1",
151
152
  "jest": "29.7.0",
152
153
  "prettier": "3.3.3",
153
154
  "rimraf": "6.0.1",
154
155
  "ts-jest": "29.2.5",
155
156
  "typescript": "5.5.4",
156
- "typescript-eslint": "8.3.0"
157
+ "typescript-eslint": "8.4.0"
157
158
  }
158
- }
159
+ }
@@ -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;;;;;;;;;;;;;UAS3B,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,yBAAc,KAAd,yBAAc,QAQzB;IAEY,kCAAuB,GAAG,cAAc,CAAC,SAAS,CAAC;QAC9D,UAAU,EAAE;YACV,UAAU,EAAE,SAAS,CAAC,GAAG,EAAE,OAAO,EAAkB,CAAC;SACt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