matterbridge 1.6.7 → 1.6.8-dev.10
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 +23 -3
- package/README-SERVICE.md +12 -3
- package/README.md +3 -1
- package/dist/cli.js +0 -26
- package/dist/cluster/export.js +0 -2
- package/dist/defaultConfigSchema.js +3 -24
- package/dist/deviceManager.js +1 -26
- package/dist/index.js +0 -30
- package/dist/logger/export.js +0 -1
- package/dist/matter/export.js +5 -1
- package/dist/matterbridge.js +239 -661
- package/dist/matterbridgeAccessoryPlatform.js +0 -33
- package/dist/matterbridgeBehaviors.js +1 -29
- package/dist/matterbridgeDevice.js +24 -986
- package/dist/matterbridgeDeviceTypes.js +11 -82
- package/dist/matterbridgeDynamicPlatform.js +0 -33
- package/dist/matterbridgeEdge.js +3 -534
- package/dist/matterbridgeEndpoint.js +26 -1111
- package/dist/matterbridgePlatform.js +65 -95
- package/dist/matterbridgeTypes.js +0 -24
- package/dist/matterbridgeWebsocket.js +0 -45
- package/dist/pluginManager.js +3 -238
- package/dist/storage/export.js +0 -1
- package/dist/utils/colorUtils.js +2 -205
- package/dist/utils/export.js +0 -1
- package/dist/utils/utils.js +7 -252
- package/npm-shrinkwrap.json +17 -81
- package/package.json +1 -2
- package/dist/cli.d.ts +0 -25
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/cluster/export.d.ts +0 -2
- package/dist/cluster/export.d.ts.map +0 -1
- package/dist/cluster/export.js.map +0 -1
- package/dist/defaultConfigSchema.d.ts +0 -27
- package/dist/defaultConfigSchema.d.ts.map +0 -1
- package/dist/defaultConfigSchema.js.map +0 -1
- package/dist/deviceManager.d.ts +0 -46
- package/dist/deviceManager.d.ts.map +0 -1
- package/dist/deviceManager.js.map +0 -1
- package/dist/index.d.ts +0 -40
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/logger/export.d.ts +0 -2
- package/dist/logger/export.d.ts.map +0 -1
- package/dist/logger/export.js.map +0 -1
- package/dist/matter/export.d.ts +0 -6
- package/dist/matter/export.d.ts.map +0 -1
- package/dist/matter/export.js.map +0 -1
- package/dist/matterbridge.d.ts +0 -466
- package/dist/matterbridge.d.ts.map +0 -1
- package/dist/matterbridge.js.map +0 -1
- package/dist/matterbridgeAccessoryPlatform.d.ts +0 -39
- package/dist/matterbridgeAccessoryPlatform.d.ts.map +0 -1
- package/dist/matterbridgeAccessoryPlatform.js.map +0 -1
- package/dist/matterbridgeBehaviors.d.ts +0 -942
- package/dist/matterbridgeBehaviors.d.ts.map +0 -1
- package/dist/matterbridgeBehaviors.js.map +0 -1
- package/dist/matterbridgeDevice.d.ts +0 -7063
- package/dist/matterbridgeDevice.d.ts.map +0 -1
- package/dist/matterbridgeDevice.js.map +0 -1
- package/dist/matterbridgeDeviceTypes.d.ts +0 -109
- package/dist/matterbridgeDeviceTypes.d.ts.map +0 -1
- package/dist/matterbridgeDeviceTypes.js.map +0 -1
- package/dist/matterbridgeDynamicPlatform.d.ts +0 -39
- package/dist/matterbridgeDynamicPlatform.d.ts.map +0 -1
- package/dist/matterbridgeDynamicPlatform.js.map +0 -1
- package/dist/matterbridgeEdge.d.ts +0 -92
- package/dist/matterbridgeEdge.d.ts.map +0 -1
- package/dist/matterbridgeEdge.js.map +0 -1
- package/dist/matterbridgeEndpoint.d.ts +0 -10164
- package/dist/matterbridgeEndpoint.d.ts.map +0 -1
- package/dist/matterbridgeEndpoint.js.map +0 -1
- package/dist/matterbridgePlatform.d.ts +0 -114
- package/dist/matterbridgePlatform.d.ts.map +0 -1
- package/dist/matterbridgePlatform.js.map +0 -1
- package/dist/matterbridgeTypes.d.ts +0 -162
- package/dist/matterbridgeTypes.d.ts.map +0 -1
- package/dist/matterbridgeTypes.js.map +0 -1
- package/dist/matterbridgeWebsocket.d.ts +0 -49
- package/dist/matterbridgeWebsocket.d.ts.map +0 -1
- package/dist/matterbridgeWebsocket.js.map +0 -1
- package/dist/pluginManager.d.ts +0 -238
- package/dist/pluginManager.d.ts.map +0 -1
- package/dist/pluginManager.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/utils/colorUtils.d.ts +0 -61
- package/dist/utils/colorUtils.d.ts.map +0 -1
- package/dist/utils/colorUtils.js.map +0 -1
- package/dist/utils/export.d.ts +0 -3
- package/dist/utils/export.d.ts.map +0 -1
- package/dist/utils/export.js.map +0 -1
- package/dist/utils/utils.d.ts +0 -221
- package/dist/utils/utils.d.ts.map +0 -1
- package/dist/utils/utils.js.map +0 -1
|
@@ -1,29 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the class MatterbridgeDevice.
|
|
3
|
-
*
|
|
4
|
-
* @file matterbridgeDeviceTypes.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @date 2024-11-08
|
|
7
|
-
* @version 1.0.0
|
|
8
|
-
*
|
|
9
|
-
* Copyright 2024, 2025, 2026 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
1
|
import { AirQuality, BooleanState, BooleanStateConfiguration, BridgedDeviceBasicInformation, CarbonDioxideConcentrationMeasurement, CarbonMonoxideConcentrationMeasurement, ColorControl, DeviceEnergyManagement, DeviceEnergyManagementMode, DoorLock, ElectricalEnergyMeasurement, ElectricalPowerMeasurement, EnergyPreference, FanControl, FlowMeasurement, FormaldehydeConcentrationMeasurement, Groups, Identify, IlluminanceMeasurement, LevelControl, ModeSelect, NitrogenDioxideConcentrationMeasurement, OccupancySensing, OnOff, OzoneConcentrationMeasurement, Pm10ConcentrationMeasurement, Pm1ConcentrationMeasurement, Pm25ConcentrationMeasurement, PowerSource, PowerTopology, PressureMeasurement, RadonConcentrationMeasurement, RelativeHumidityMeasurement, SmokeCoAlarm, SwitchCluster, TemperatureMeasurement, Thermostat, ThermostatUserInterfaceConfiguration, TimeSynchronization, TotalVolatileOrganicCompoundsConcentrationMeasurement, WindowCovering, ValveConfigurationAndControl, HepaFilterMonitoring, ActivatedCarbonFilterMonitoring, Actions, FixedLabel, RvcRunMode, RvcOperationalState, RvcCleanMode, ScenesManagement, PumpConfigurationAndControl, } from '@matter/main/clusters';
|
|
24
|
-
// @project-chip
|
|
25
2
|
import { DeviceClasses, DeviceTypeDefinition } from '@project-chip/matter.js/device';
|
|
26
|
-
// Matter 1.0 and 1.1 device types
|
|
27
3
|
export const bridge = DeviceTypeDefinition({
|
|
28
4
|
name: 'MA-aggregator',
|
|
29
5
|
code: 0x000e,
|
|
@@ -46,22 +22,6 @@ export const powerSource = DeviceTypeDefinition({
|
|
|
46
22
|
requiredServerClusters: [PowerSource.Cluster.id],
|
|
47
23
|
optionalServerClusters: [],
|
|
48
24
|
});
|
|
49
|
-
/**
|
|
50
|
-
2.5.3. Conditions
|
|
51
|
-
Please see the Base Device Type definition for conformance tags.
|
|
52
|
-
This device type SHALL only be used for Nodes which have a device type of Bridge.
|
|
53
|
-
|
|
54
|
-
2.5.6. Endpoint Composition
|
|
55
|
-
• A Bridged Node endpoint SHALL support one of the following composition patterns:
|
|
56
|
-
◦ Separate Endpoints: All application device types are supported on separate endpoints, and
|
|
57
|
-
not on the Bridged Node endpoint. The Bridged Node endpoint’s Descriptor cluster PartsList
|
|
58
|
-
attribute SHALL indicate a list of all endpoints representing the functionality of the bridged
|
|
59
|
-
device, including the endpoints supporting the application device types, i.e. the full-family
|
|
60
|
-
pattern defined in the System Model specification.
|
|
61
|
-
◦ One Endpoint: Both the Bridged Node and one or more application device types are sup
|
|
62
|
-
ported on the same endpoint (following application device type rules). Endpoint composi
|
|
63
|
-
tion SHALL conform to the application device type(s) definition
|
|
64
|
-
*/
|
|
65
25
|
export const bridgedNode = DeviceTypeDefinition({
|
|
66
26
|
name: 'MA-bridgedNode',
|
|
67
27
|
code: 0x0013,
|
|
@@ -83,7 +43,7 @@ export const onOffLight = DeviceTypeDefinition({
|
|
|
83
43
|
code: 0x0100,
|
|
84
44
|
deviceClass: DeviceClasses.Simple,
|
|
85
45
|
revision: 3,
|
|
86
|
-
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id,
|
|
46
|
+
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id],
|
|
87
47
|
optionalServerClusters: [LevelControl.Cluster.id, ColorControl.Cluster.id],
|
|
88
48
|
});
|
|
89
49
|
export const dimmableLight = DeviceTypeDefinition({
|
|
@@ -91,7 +51,7 @@ export const dimmableLight = DeviceTypeDefinition({
|
|
|
91
51
|
code: 0x0101,
|
|
92
52
|
deviceClass: DeviceClasses.Simple,
|
|
93
53
|
revision: 3,
|
|
94
|
-
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id,
|
|
54
|
+
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id],
|
|
95
55
|
optionalServerClusters: [ColorControl.Cluster.id],
|
|
96
56
|
});
|
|
97
57
|
export const colorTemperatureLight = DeviceTypeDefinition({
|
|
@@ -99,7 +59,7 @@ export const colorTemperatureLight = DeviceTypeDefinition({
|
|
|
99
59
|
code: 0x010c,
|
|
100
60
|
deviceClass: DeviceClasses.Simple,
|
|
101
61
|
revision: 4,
|
|
102
|
-
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id,
|
|
62
|
+
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id, ColorControl.Cluster.id],
|
|
103
63
|
optionalServerClusters: [],
|
|
104
64
|
});
|
|
105
65
|
export const onOffOutlet = DeviceTypeDefinition({
|
|
@@ -107,7 +67,7 @@ export const onOffOutlet = DeviceTypeDefinition({
|
|
|
107
67
|
code: 0x010a,
|
|
108
68
|
deviceClass: DeviceClasses.Simple,
|
|
109
69
|
revision: 3,
|
|
110
|
-
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id,
|
|
70
|
+
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id],
|
|
111
71
|
optionalServerClusters: [LevelControl.Cluster.id],
|
|
112
72
|
});
|
|
113
73
|
export const dimmableOutlet = DeviceTypeDefinition({
|
|
@@ -115,7 +75,7 @@ export const dimmableOutlet = DeviceTypeDefinition({
|
|
|
115
75
|
code: 0x010b,
|
|
116
76
|
deviceClass: DeviceClasses.Simple,
|
|
117
77
|
revision: 3,
|
|
118
|
-
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id,
|
|
78
|
+
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id],
|
|
119
79
|
optionalServerClusters: [],
|
|
120
80
|
});
|
|
121
81
|
export const doorLockDevice = DeviceTypeDefinition({
|
|
@@ -124,7 +84,7 @@ export const doorLockDevice = DeviceTypeDefinition({
|
|
|
124
84
|
deviceClass: DeviceClasses.Simple,
|
|
125
85
|
revision: 3,
|
|
126
86
|
requiredServerClusters: [Identify.Cluster.id, DoorLock.Cluster.id],
|
|
127
|
-
optionalServerClusters: [Groups.Cluster.id
|
|
87
|
+
optionalServerClusters: [Groups.Cluster.id],
|
|
128
88
|
});
|
|
129
89
|
export const coverDevice = DeviceTypeDefinition({
|
|
130
90
|
name: 'MA-windowCovering',
|
|
@@ -132,13 +92,8 @@ export const coverDevice = DeviceTypeDefinition({
|
|
|
132
92
|
deviceClass: DeviceClasses.Simple,
|
|
133
93
|
revision: 3,
|
|
134
94
|
requiredServerClusters: [Identify.Cluster.id, WindowCovering.Cluster.id],
|
|
135
|
-
optionalServerClusters: [Groups.Cluster.id
|
|
95
|
+
optionalServerClusters: [Groups.Cluster.id],
|
|
136
96
|
});
|
|
137
|
-
/**
|
|
138
|
-
* Remark: it may have a thermostat device type.
|
|
139
|
-
* Additional device types MAY also be included in device compositions.
|
|
140
|
-
* The FanControl cluster must have the FanModeSequence attribute.
|
|
141
|
-
*/
|
|
142
97
|
export const fanDevice = DeviceTypeDefinition({
|
|
143
98
|
name: 'MA-fan',
|
|
144
99
|
code: 0x2b,
|
|
@@ -153,7 +108,7 @@ export const thermostatDevice = DeviceTypeDefinition({
|
|
|
153
108
|
deviceClass: DeviceClasses.Simple,
|
|
154
109
|
revision: 3,
|
|
155
110
|
requiredServerClusters: [Identify.Cluster.id, Thermostat.Cluster.id],
|
|
156
|
-
optionalServerClusters: [Groups.Cluster.id
|
|
111
|
+
optionalServerClusters: [Groups.Cluster.id, ThermostatUserInterfaceConfiguration.Cluster.id, EnergyPreference.Cluster.id, TimeSynchronization.Cluster.id],
|
|
157
112
|
});
|
|
158
113
|
export const contactSensor = DeviceTypeDefinition({
|
|
159
114
|
name: 'MA-contactsensor',
|
|
@@ -219,34 +174,30 @@ export const roboticVacuumCleaner = DeviceTypeDefinition({
|
|
|
219
174
|
requiredServerClusters: [Identify.Cluster.id, RvcRunMode.Cluster.id, RvcOperationalState.Cluster.id],
|
|
220
175
|
optionalServerClusters: [RvcCleanMode.Cluster.id],
|
|
221
176
|
});
|
|
222
|
-
// Custom device types without client clusters (not working in Alexa)
|
|
223
177
|
export const onOffSwitch = DeviceTypeDefinition({
|
|
224
178
|
name: 'MA-onoffswitch',
|
|
225
179
|
code: 0x0103,
|
|
226
180
|
deviceClass: DeviceClasses.Simple,
|
|
227
181
|
revision: 3,
|
|
228
|
-
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id,
|
|
182
|
+
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id],
|
|
229
183
|
optionalServerClusters: [LevelControl.Cluster.id, ColorControl.Cluster.id],
|
|
230
184
|
});
|
|
231
|
-
// Custom device types without client clusters (not working in Alexa)
|
|
232
185
|
export const dimmableSwitch = DeviceTypeDefinition({
|
|
233
186
|
name: 'MA-dimmableswitch',
|
|
234
187
|
code: 0x0104,
|
|
235
188
|
deviceClass: DeviceClasses.Simple,
|
|
236
189
|
revision: 3,
|
|
237
|
-
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id,
|
|
190
|
+
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id],
|
|
238
191
|
optionalServerClusters: [ColorControl.Cluster.id],
|
|
239
192
|
});
|
|
240
|
-
// Custom device types without client clusters (not working in Alexa)
|
|
241
193
|
export const colorTemperatureSwitch = DeviceTypeDefinition({
|
|
242
194
|
name: 'MA-colortemperatureswitch',
|
|
243
195
|
code: 0x0105,
|
|
244
196
|
deviceClass: DeviceClasses.Simple,
|
|
245
197
|
revision: 3,
|
|
246
|
-
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id,
|
|
198
|
+
requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id, ColorControl.Cluster.id],
|
|
247
199
|
optionalServerClusters: [],
|
|
248
200
|
});
|
|
249
|
-
// Matter 1.2 and 1.3 device types
|
|
250
201
|
export const airQualitySensor = DeviceTypeDefinition({
|
|
251
202
|
name: 'MA-airQualitySensor',
|
|
252
203
|
code: 0x002c,
|
|
@@ -292,7 +243,6 @@ export const rainSensor = DeviceTypeDefinition({
|
|
|
292
243
|
requiredServerClusters: [Identify.Cluster.id, BooleanState.Cluster.id],
|
|
293
244
|
optionalServerClusters: [BooleanStateConfiguration.Cluster.id],
|
|
294
245
|
});
|
|
295
|
-
// Remark: A Smoke CO Alarm device type SHALL support an instance of a Power Source device type on some endpoint.
|
|
296
246
|
export const smokeCoAlarm = DeviceTypeDefinition({
|
|
297
247
|
name: 'MA-smokeCoAlarm',
|
|
298
248
|
code: 0x0076,
|
|
@@ -301,12 +251,6 @@ export const smokeCoAlarm = DeviceTypeDefinition({
|
|
|
301
251
|
requiredServerClusters: [Identify.Cluster.id, SmokeCoAlarm.Cluster.id],
|
|
302
252
|
optionalServerClusters: [Groups.Cluster.id, TemperatureMeasurement.Cluster.id, RelativeHumidityMeasurement.Cluster.id, CarbonMonoxideConcentrationMeasurement.Cluster.id],
|
|
303
253
|
});
|
|
304
|
-
/**
|
|
305
|
-
* Remark: LevelControl cluster:
|
|
306
|
-
* 0 N/A Pump is stopped,
|
|
307
|
-
* 1–200 Level / 2 (0.5–100.0%) Pump setpoint in percent
|
|
308
|
-
* 201–255 100.0% Pump setpoint is 100.0%
|
|
309
|
-
*/
|
|
310
254
|
export const pumpDevice = DeviceTypeDefinition({
|
|
311
255
|
name: 'MA-pump',
|
|
312
256
|
code: 0x303,
|
|
@@ -323,10 +267,6 @@ export const waterValve = DeviceTypeDefinition({
|
|
|
323
267
|
requiredServerClusters: [Identify.Cluster.id, ValveConfigurationAndControl.Cluster.id],
|
|
324
268
|
optionalServerClusters: [FlowMeasurement.Cluster.id],
|
|
325
269
|
});
|
|
326
|
-
/**
|
|
327
|
-
* Remark: it may have a Thermostat, Temperature Sensor, Humidity Sensor and an Air Quality Sensor device type.
|
|
328
|
-
* Additional device types MAY also be included in device compositions.
|
|
329
|
-
*/
|
|
330
270
|
export const airPurifier = DeviceTypeDefinition({
|
|
331
271
|
name: 'MA-airPurifier',
|
|
332
272
|
code: 0x2d,
|
|
@@ -335,16 +275,6 @@ export const airPurifier = DeviceTypeDefinition({
|
|
|
335
275
|
requiredServerClusters: [Identify.Cluster.id, FanControl.Cluster.id],
|
|
336
276
|
optionalServerClusters: [Groups.Cluster.id, HepaFilterMonitoring.Cluster.id, ActivatedCarbonFilterMonitoring.Cluster.id],
|
|
337
277
|
});
|
|
338
|
-
/**
|
|
339
|
-
* Remark: it may have a temperature sensor and a humidity sensor device.
|
|
340
|
-
* Additional device types MAY also be included in device compositions.
|
|
341
|
-
* The DF (Dead Front) feature is required for the On/Off cluster in this device type:
|
|
342
|
-
* - Thermostat LocalTemperature null
|
|
343
|
-
* - Temperature Measurement MeasuredValue null
|
|
344
|
-
* - Relative Humidity Measurement MeasuredValue null
|
|
345
|
-
* - Fan Control SpeedSetting null
|
|
346
|
-
* - Fan Control PercentSetting null
|
|
347
|
-
*/
|
|
348
278
|
export const airConditioner = DeviceTypeDefinition({
|
|
349
279
|
name: 'MA-airConditioner',
|
|
350
280
|
code: 0x72,
|
|
@@ -369,4 +299,3 @@ export const deviceEnergyManagement = DeviceTypeDefinition({
|
|
|
369
299
|
requiredServerClusters: [DeviceEnergyManagement.Cluster.id, DeviceEnergyManagementMode.Cluster.id],
|
|
370
300
|
optionalServerClusters: [],
|
|
371
301
|
});
|
|
372
|
-
//# sourceMappingURL=matterbridgeDeviceTypes.js.map
|
|
@@ -1,37 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the class MatterbridgeDynamicPlatform.
|
|
3
|
-
*
|
|
4
|
-
* @file matterbridgeDynamicPlatform.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @date 2023-12-29
|
|
7
|
-
* @version 1.0.5
|
|
8
|
-
*
|
|
9
|
-
* Copyright 2023, 2024, 2025 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
1
|
import { MatterbridgePlatform } from './matterbridgePlatform.js';
|
|
24
|
-
/**
|
|
25
|
-
* Represents a dynamic platform for Matterbridge.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
2
|
export class MatterbridgeDynamicPlatform extends MatterbridgePlatform {
|
|
29
|
-
/**
|
|
30
|
-
* Creates an instance of MatterbridgeDynamicPlatform.
|
|
31
|
-
* @param {Matterbridge} matterbridge - The Matterbridge instance.
|
|
32
|
-
* @param {AnsiLogger} log - The logger instance.
|
|
33
|
-
* @param {PlatformConfig} config - The platform configuration.
|
|
34
|
-
*/
|
|
35
3
|
constructor(matterbridge, log, config) {
|
|
36
4
|
super(matterbridge, log, config);
|
|
37
5
|
this.type = 'DynamicPlatform';
|
|
@@ -39,4 +7,3 @@ export class MatterbridgeDynamicPlatform extends MatterbridgePlatform {
|
|
|
39
7
|
this.log.debug(`Matterbridge${this.type} loaded`);
|
|
40
8
|
}
|
|
41
9
|
}
|
|
42
|
-
//# sourceMappingURL=matterbridgeDynamicPlatform.js.map
|