matterbridge 3.1.0 → 3.1.1-dev-20250629-f14b886
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 +17 -4
- package/README-DEV.md +14 -2
- package/dist/cli.js +2 -91
- package/dist/clusters/export.js +0 -2
- package/dist/defaultConfigSchema.js +0 -24
- package/dist/deviceManager.js +1 -94
- package/dist/devices/export.js +0 -2
- package/dist/evse.js +9 -70
- package/dist/frontend.js +16 -413
- package/dist/globalMatterbridge.js +0 -47
- package/dist/helpers.js +0 -53
- package/dist/index.js +1 -32
- package/dist/laundryWasher.js +7 -92
- package/dist/logger/export.js +0 -1
- package/dist/matter/behaviors.js +0 -2
- package/dist/matter/clusters.js +0 -2
- package/dist/matter/devices.js +0 -2
- package/dist/matter/endpoints.js +0 -2
- package/dist/matter/export.js +0 -3
- package/dist/matter/types.js +0 -3
- package/dist/matterbridge.js +50 -797
- package/dist/matterbridgeAccessoryPlatform.js +0 -36
- package/dist/matterbridgeBehaviors.js +1 -55
- package/dist/matterbridgeDeviceTypes.js +15 -579
- package/dist/matterbridgeDynamicPlatform.js +0 -36
- package/dist/matterbridgeEndpoint.js +40 -1022
- package/dist/matterbridgeEndpointHelpers.js +12 -322
- package/dist/matterbridgePlatform.js +0 -233
- package/dist/matterbridgeTypes.js +0 -25
- package/dist/pluginManager.js +3 -269
- package/dist/roboticVacuumCleaner.js +6 -83
- package/dist/shelly.js +7 -168
- package/dist/storage/export.js +0 -1
- package/dist/update.js +0 -54
- package/dist/utils/colorUtils.js +2 -263
- package/dist/utils/commandLine.js +0 -54
- package/dist/utils/copyDirectory.js +1 -38
- package/dist/utils/createDirectory.js +0 -33
- package/dist/utils/createZip.js +2 -47
- package/dist/utils/deepCopy.js +0 -39
- package/dist/utils/deepEqual.js +1 -72
- package/dist/utils/export.js +0 -1
- package/dist/utils/hex.js +0 -58
- package/dist/utils/isvalid.js +0 -101
- package/dist/utils/network.js +5 -83
- package/dist/utils/spawn.js +0 -18
- package/dist/utils/wait.js +9 -62
- package/dist/waterHeater.js +2 -77
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -2
- package/dist/cli.d.ts +0 -29
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.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 -112
- package/dist/deviceManager.d.ts.map +0 -1
- package/dist/deviceManager.js.map +0 -1
- package/dist/devices/export.d.ts +0 -5
- package/dist/devices/export.d.ts.map +0 -1
- package/dist/devices/export.js.map +0 -1
- package/dist/evse.d.ts +0 -72
- package/dist/evse.d.ts.map +0 -1
- package/dist/evse.js.map +0 -1
- package/dist/frontend.d.ts +0 -285
- package/dist/frontend.d.ts.map +0 -1
- package/dist/frontend.js.map +0 -1
- package/dist/globalMatterbridge.d.ts +0 -59
- package/dist/globalMatterbridge.d.ts.map +0 -1
- package/dist/globalMatterbridge.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 -38
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/laundryWasher.d.ts +0 -243
- package/dist/laundryWasher.d.ts.map +0 -1
- package/dist/laundryWasher.js.map +0 -1
- package/dist/logger/export.d.ts +0 -2
- package/dist/logger/export.d.ts.map +0 -1
- package/dist/logger/export.js.map +0 -1
- package/dist/matter/behaviors.d.ts +0 -2
- package/dist/matter/behaviors.d.ts.map +0 -1
- package/dist/matter/behaviors.js.map +0 -1
- package/dist/matter/clusters.d.ts +0 -2
- package/dist/matter/clusters.d.ts.map +0 -1
- package/dist/matter/clusters.js.map +0 -1
- package/dist/matter/devices.d.ts +0 -2
- package/dist/matter/devices.d.ts.map +0 -1
- package/dist/matter/devices.js.map +0 -1
- package/dist/matter/endpoints.d.ts +0 -2
- package/dist/matter/endpoints.d.ts.map +0 -1
- package/dist/matter/endpoints.js.map +0 -1
- package/dist/matter/export.d.ts +0 -5
- package/dist/matter/export.d.ts.map +0 -1
- package/dist/matter/export.js.map +0 -1
- package/dist/matter/types.d.ts +0 -3
- package/dist/matter/types.d.ts.map +0 -1
- package/dist/matter/types.js.map +0 -1
- package/dist/matterbridge.d.ts +0 -450
- package/dist/matterbridge.d.ts.map +0 -1
- package/dist/matterbridge.js.map +0 -1
- package/dist/matterbridgeAccessoryPlatform.d.ts +0 -42
- package/dist/matterbridgeAccessoryPlatform.d.ts.map +0 -1
- package/dist/matterbridgeAccessoryPlatform.js.map +0 -1
- package/dist/matterbridgeBehaviors.d.ts +0 -1334
- package/dist/matterbridgeBehaviors.d.ts.map +0 -1
- package/dist/matterbridgeBehaviors.js.map +0 -1
- package/dist/matterbridgeDeviceTypes.d.ts +0 -709
- package/dist/matterbridgeDeviceTypes.d.ts.map +0 -1
- package/dist/matterbridgeDeviceTypes.js.map +0 -1
- package/dist/matterbridgeDynamicPlatform.d.ts +0 -42
- package/dist/matterbridgeDynamicPlatform.d.ts.map +0 -1
- package/dist/matterbridgeDynamicPlatform.js.map +0 -1
- package/dist/matterbridgeEndpoint.d.ts +0 -1173
- package/dist/matterbridgeEndpoint.d.ts.map +0 -1
- package/dist/matterbridgeEndpoint.js.map +0 -1
- package/dist/matterbridgeEndpointHelpers.d.ts +0 -3198
- package/dist/matterbridgeEndpointHelpers.d.ts.map +0 -1
- package/dist/matterbridgeEndpointHelpers.js.map +0 -1
- package/dist/matterbridgePlatform.d.ts +0 -310
- package/dist/matterbridgePlatform.d.ts.map +0 -1
- package/dist/matterbridgePlatform.js.map +0 -1
- package/dist/matterbridgeTypes.d.ts +0 -184
- package/dist/matterbridgeTypes.d.ts.map +0 -1
- package/dist/matterbridgeTypes.js.map +0 -1
- package/dist/pluginManager.d.ts +0 -291
- package/dist/pluginManager.d.ts.map +0 -1
- package/dist/pluginManager.js.map +0 -1
- package/dist/roboticVacuumCleaner.d.ts +0 -104
- package/dist/roboticVacuumCleaner.d.ts.map +0 -1
- package/dist/roboticVacuumCleaner.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 -59
- package/dist/update.d.ts.map +0 -1
- package/dist/update.js.map +0 -1
- package/dist/utils/colorUtils.d.ts +0 -117
- package/dist/utils/colorUtils.d.ts.map +0 -1
- package/dist/utils/colorUtils.js.map +0 -1
- package/dist/utils/commandLine.d.ts +0 -59
- package/dist/utils/commandLine.d.ts.map +0 -1
- package/dist/utils/commandLine.js.map +0 -1
- package/dist/utils/copyDirectory.d.ts +0 -33
- package/dist/utils/copyDirectory.d.ts.map +0 -1
- package/dist/utils/copyDirectory.js.map +0 -1
- package/dist/utils/createDirectory.d.ts +0 -34
- package/dist/utils/createDirectory.d.ts.map +0 -1
- package/dist/utils/createDirectory.js.map +0 -1
- package/dist/utils/createZip.d.ts +0 -39
- package/dist/utils/createZip.d.ts.map +0 -1
- package/dist/utils/createZip.js.map +0 -1
- package/dist/utils/deepCopy.d.ts +0 -32
- package/dist/utils/deepCopy.d.ts.map +0 -1
- package/dist/utils/deepCopy.js.map +0 -1
- package/dist/utils/deepEqual.d.ts +0 -54
- package/dist/utils/deepEqual.d.ts.map +0 -1
- package/dist/utils/deepEqual.js.map +0 -1
- package/dist/utils/export.d.ts +0 -12
- package/dist/utils/export.d.ts.map +0 -1
- package/dist/utils/export.js.map +0 -1
- package/dist/utils/hex.d.ts +0 -49
- package/dist/utils/hex.d.ts.map +0 -1
- package/dist/utils/hex.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 -76
- package/dist/utils/network.d.ts.map +0 -1
- package/dist/utils/network.js.map +0 -1
- package/dist/utils/spawn.d.ts +0 -14
- package/dist/utils/spawn.d.ts.map +0 -1
- package/dist/utils/spawn.js.map +0 -1
- package/dist/utils/wait.d.ts +0 -56
- package/dist/utils/wait.d.ts.map +0 -1
- package/dist/utils/wait.js.map +0 -1
- package/dist/waterHeater.d.ts +0 -106
- package/dist/waterHeater.d.ts.map +0 -1
- package/dist/waterHeater.js.map +0 -1
package/dist/utils/wait.js
CHANGED
|
@@ -1,44 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the wait, waiter and withTimeout functions.
|
|
3
|
-
*
|
|
4
|
-
* @file wait.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @created 2025-02-16
|
|
7
|
-
* @version 1.0.1
|
|
8
|
-
* @license Apache-2.0
|
|
9
|
-
*
|
|
10
|
-
* Copyright 2025, 2026, 2027 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
|
-
// AnsiLogger module
|
|
25
1
|
import { AnsiLogger } from '../logger/export.js';
|
|
26
|
-
export const log = new AnsiLogger({ logName: 'MatterbridgeUtils', logTimestampFormat: 4
|
|
27
|
-
/**
|
|
28
|
-
* Asynchronous waiter function that resolves when the provided condition is met or rejects on timeout.
|
|
29
|
-
*
|
|
30
|
-
* @param {string} name - The name of the waiter.
|
|
31
|
-
* @param {() => boolean} check - A function that checks the condition. Should return a boolean.
|
|
32
|
-
* @param {boolean} [exitWithReject] - Optional. If true, the promise will be rejected on timeout. Default is false.
|
|
33
|
-
* @param {number} [resolveTimeout] - Optional. The timeout duration in milliseconds. Default is 5000ms.
|
|
34
|
-
* @param {number} [resolveInterval] - Optional. The interval duration in milliseconds between condition checks. Default is 500ms.
|
|
35
|
-
* @param {boolean} [debug] - Optional. If true, debug messages will be logged to the console. Default is false.
|
|
36
|
-
* @returns {Promise<boolean>} A promise that resolves to true when the condition is met, or false if the timeout occurs.
|
|
37
|
-
*/
|
|
2
|
+
export const log = new AnsiLogger({ logName: 'MatterbridgeUtils', logTimestampFormat: 4, logLevel: "info" });
|
|
38
3
|
export async function waiter(name, check, exitWithReject = false, resolveTimeout = 5000, resolveInterval = 500, debug = false) {
|
|
39
4
|
if (check())
|
|
40
5
|
return true;
|
|
41
|
-
log.logLevel = "debug"
|
|
6
|
+
log.logLevel = "debug";
|
|
42
7
|
log.logName = 'Waiter';
|
|
43
8
|
if (debug)
|
|
44
9
|
log.debug(`Waiter "${name}" started...`);
|
|
@@ -65,20 +30,11 @@ export async function waiter(name, check, exitWithReject = false, resolveTimeout
|
|
|
65
30
|
}, resolveInterval);
|
|
66
31
|
});
|
|
67
32
|
}
|
|
68
|
-
/**
|
|
69
|
-
* Asynchronously waits for a specified amount of time.
|
|
70
|
-
*
|
|
71
|
-
* @param {number} timeout - The duration to wait in milliseconds. Default is 1000ms.
|
|
72
|
-
* @param {string} name - The name of the wait operation. Default is undefined.
|
|
73
|
-
* @param {boolean} debug - Whether to enable debug logging. Default is false.
|
|
74
|
-
* @returns {Promise<void>} A Promise that resolves after the specified timeout.
|
|
75
|
-
*/
|
|
76
33
|
export async function wait(timeout = 1000, name, debug = false) {
|
|
77
|
-
log.logLevel = "debug"
|
|
34
|
+
log.logLevel = "debug";
|
|
78
35
|
log.logName = 'Wait';
|
|
79
36
|
if (debug)
|
|
80
37
|
log.debug(`Wait "${name}" started...`);
|
|
81
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
82
38
|
return new Promise((resolve, reject) => {
|
|
83
39
|
const timeoutId = setTimeout(() => {
|
|
84
40
|
if (debug)
|
|
@@ -88,14 +44,6 @@ export async function wait(timeout = 1000, name, debug = false) {
|
|
|
88
44
|
}, timeout);
|
|
89
45
|
});
|
|
90
46
|
}
|
|
91
|
-
/**
|
|
92
|
-
* Wraps a promise with a timeout. If the promise does not resolve or reject within the specified time, it will be rejected.
|
|
93
|
-
*
|
|
94
|
-
* @param {Promise<T>} promise - The promise to wrap.
|
|
95
|
-
* @param {number} [timeoutMillisecs] - The timeout duration in milliseconds. Default is 10000ms.
|
|
96
|
-
* @param {boolean} [reThrow] - Optional. If true, the promise will rethrow the original promise and will reject on timeout. Default is true.
|
|
97
|
-
* @returns {Promise<T>} A new promise that resolves or rejects based on the original promise and the timeout.
|
|
98
|
-
*/
|
|
99
47
|
export function withTimeout(promise, timeoutMillisecs = 10000, reThrow = true) {
|
|
100
48
|
return new Promise((resolve, reject) => {
|
|
101
49
|
const timer = setTimeout(() => {
|
|
@@ -103,24 +51,23 @@ export function withTimeout(promise, timeoutMillisecs = 10000, reThrow = true) {
|
|
|
103
51
|
reject(new Error('Operation timed out'));
|
|
104
52
|
}
|
|
105
53
|
else {
|
|
106
|
-
resolve(undefined);
|
|
54
|
+
resolve(undefined);
|
|
107
55
|
}
|
|
108
|
-
}, timeoutMillisecs).unref();
|
|
56
|
+
}, timeoutMillisecs).unref();
|
|
109
57
|
promise
|
|
110
58
|
.then((result) => {
|
|
111
|
-
clearTimeout(timer);
|
|
59
|
+
clearTimeout(timer);
|
|
112
60
|
resolve(result);
|
|
113
61
|
return result;
|
|
114
62
|
})
|
|
115
63
|
.catch((error) => {
|
|
116
|
-
clearTimeout(timer);
|
|
64
|
+
clearTimeout(timer);
|
|
117
65
|
if (reThrow) {
|
|
118
|
-
reject(error);
|
|
66
|
+
reject(error);
|
|
119
67
|
}
|
|
120
68
|
else {
|
|
121
|
-
resolve(undefined);
|
|
69
|
+
resolve(undefined);
|
|
122
70
|
}
|
|
123
71
|
});
|
|
124
72
|
});
|
|
125
73
|
}
|
|
126
|
-
//# sourceMappingURL=wait.js.map
|
package/dist/waterHeater.js
CHANGED
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the WaterHeater class.
|
|
3
|
-
*
|
|
4
|
-
* @file waterHeater.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @contributor Ludovic BOUÉ
|
|
7
|
-
* @created 2025-05-18
|
|
8
|
-
* @version 1.1.0
|
|
9
|
-
* @license Apache-2.0
|
|
10
|
-
*
|
|
11
|
-
* Copyright 2025, 2026, 2027 Luca Liguori.
|
|
12
|
-
*
|
|
13
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
14
|
-
* you may not use this file except in compliance with the License.
|
|
15
|
-
* You may obtain a copy of the License at
|
|
16
|
-
*
|
|
17
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
18
|
-
*
|
|
19
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
20
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
21
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
22
|
-
* See the License for the specific language governing permissions and
|
|
23
|
-
* limitations under the License.
|
|
24
|
-
*/
|
|
25
1
|
import { ModeBase } from '@matter/main/clusters/mode-base';
|
|
26
2
|
import { WaterHeaterManagement } from '@matter/main/clusters/water-heater-management';
|
|
27
3
|
import { WaterHeaterMode } from '@matter/main/clusters/water-heater-mode';
|
|
@@ -31,23 +7,6 @@ import { MatterbridgeServer } from './matterbridgeBehaviors.js';
|
|
|
31
7
|
import { waterHeater } from './matterbridgeDeviceTypes.js';
|
|
32
8
|
import { MatterbridgeEndpoint } from './matterbridgeEndpoint.js';
|
|
33
9
|
export class WaterHeater extends MatterbridgeEndpoint {
|
|
34
|
-
/**
|
|
35
|
-
* Creates an instance of the WaterHeater class.
|
|
36
|
-
*
|
|
37
|
-
* @param {string} name - The name of the water heater.
|
|
38
|
-
* @param {string} serial - The serial number of the water heater.
|
|
39
|
-
* @param {number} [waterTemperature] - The current water temperature. Defaults to 50.
|
|
40
|
-
* @param {number} [targetWaterTemperature] - The target water temperature. Defaults to 55.
|
|
41
|
-
* @param {number} [minHeatSetpointLimit] - The minimum heat setpoint limit. Defaults to 20.
|
|
42
|
-
* @param {number} [maxHeatSetpointLimit] - The maximum heat setpoint limit. Defaults to 80.
|
|
43
|
-
* @param {{ immersionElement1?: boolean; immersionElement2?: boolean; heatPump?: boolean; boiler?: boolean; other?: boolean }} [heaterTypes] - Indicates the heat sources that the water heater can call on for heating. Defaults to { immersionElement1: true }.
|
|
44
|
-
* @param {boolean} heaterTypes.immersionElement1 - Indicates if the water heater has an immersion element 1. Defaults to true.
|
|
45
|
-
* @param {boolean} heaterTypes.immersionElement2 - Indicates if the water heater has an immersion element 2.
|
|
46
|
-
* @param {boolean} heaterTypes.heatPump - Indicates if the water heater has a heat pump.
|
|
47
|
-
* @param {boolean} heaterTypes.boiler - Indicates if the water heater has a boiler.
|
|
48
|
-
* @param {boolean} heaterTypes.other - Indicates if the water heater has other types of heating sources.
|
|
49
|
-
* @param {number} [tankPercentage] - The current tank percentage of the WaterHeaterManagement cluster. Defaults to 90.
|
|
50
|
-
*/
|
|
51
10
|
constructor(name, serial, waterTemperature = 50, targetWaterTemperature = 55, minHeatSetpointLimit = 20, maxHeatSetpointLimit = 80, heaterTypes = { immersionElement1: true }, tankPercentage = 90) {
|
|
52
11
|
super(waterHeater, { uniqueStorageKey: `${name.replaceAll(' ', '')}-${serial.replaceAll(' ', '')}` }, true);
|
|
53
12
|
this.createDefaultIdentifyClusterServer()
|
|
@@ -57,42 +16,15 @@ export class WaterHeater extends MatterbridgeEndpoint {
|
|
|
57
16
|
.createDefaultWaterHeaterManagementClusterServer(heaterTypes, {}, tankPercentage)
|
|
58
17
|
.createDefaultWaterHeaterModeClusterServer();
|
|
59
18
|
}
|
|
60
|
-
/**
|
|
61
|
-
* Creates a default WaterHeaterManagement Cluster Server.
|
|
62
|
-
*
|
|
63
|
-
* @param {{ immersionElement1?: boolean; immersionElement2?: boolean; heatPump?: boolean; boiler?: boolean; other?: boolean }} [heaterTypes] - Indicates the heat sources that the water heater can call on for heating. Defaults to { immersionElement1: true }.
|
|
64
|
-
* @param {boolean} heaterTypes.immersionElement1 - Indicates if the water heater has an immersion element 1. Defaults to true.
|
|
65
|
-
* @param {boolean} heaterTypes.immersionElement2 - Indicates if the water heater has an immersion element 2.
|
|
66
|
-
* @param {boolean} heaterTypes.heatPump - Indicates if the water heater has a heat pump.
|
|
67
|
-
* @param {boolean} heaterTypes.boiler - Indicates if the water heater has a boiler.
|
|
68
|
-
* @param {boolean} heaterTypes.other - Indicates if the water heater has other types of heating sources.
|
|
69
|
-
* @param {{ immersionElement1?: boolean; immersionElement2?: boolean; heatPump?: boolean; boiler?: boolean; other?: boolean }} [heatDemand] - Indicates if the water heater is heating water. Defaults to all heat sources unset.
|
|
70
|
-
* @param {boolean} heatDemand.immersionElement1 - Indicates if the water heater is heating water with immersion element 1. Defaults to false.
|
|
71
|
-
* @param {boolean} heatDemand.immersionElement2 - Indicates if the water heater is heating water with immersion element 2.
|
|
72
|
-
* @param {boolean} heatDemand.heatPump - Indicates if the water heater is heating water with a heat pump.
|
|
73
|
-
* @param {boolean} heatDemand.boiler - Indicates if the water heater is heating water with a boiler.
|
|
74
|
-
* @param {boolean} heatDemand.other - Indicates if the water heater is heating water with other types of heating sources.
|
|
75
|
-
* @param {number} [tankPercentage] - The current tank percentage of the WaterHeaterManagement cluster. Defaults to 100.
|
|
76
|
-
* @param {WaterHeaterManagement.BoostState} [boostState] - The current boost state of the WaterHeaterManagement cluster. Defaults to Inactive.
|
|
77
|
-
* @returns {this} The current MatterbridgeEndpoint instance for chaining.
|
|
78
|
-
*/
|
|
79
19
|
createDefaultWaterHeaterManagementClusterServer(heaterTypes, heatDemand, tankPercentage, boostState) {
|
|
80
20
|
this.behaviors.require(MatterbridgeWaterHeaterManagementServer.with(WaterHeaterManagement.Feature.TankPercent), {
|
|
81
|
-
heaterTypes: heaterTypes ?? { immersionElement1: true },
|
|
21
|
+
heaterTypes: heaterTypes ?? { immersionElement1: true },
|
|
82
22
|
heatDemand: heatDemand ?? {},
|
|
83
23
|
tankPercentage: tankPercentage ?? 100,
|
|
84
24
|
boostState: boostState ?? WaterHeaterManagement.BoostState.Inactive,
|
|
85
25
|
});
|
|
86
26
|
return this;
|
|
87
27
|
}
|
|
88
|
-
/**
|
|
89
|
-
* Creates a default WaterHeaterMode Cluster Server.
|
|
90
|
-
*
|
|
91
|
-
* @param {number} [currentMode] - The current mode of the WaterHeaterMode cluster. Defaults to mode 1 (WaterHeaterMode.ModeTag.Auto).
|
|
92
|
-
* @param {WaterHeaterMode.ModeOption[]} [supportedModes] - The supported modes for the WaterHeaterMode cluster. Defaults all cluster modes.
|
|
93
|
-
*
|
|
94
|
-
* @returns {this} The current MatterbridgeEndpoint instance for chaining.
|
|
95
|
-
*/
|
|
96
28
|
createDefaultWaterHeaterModeClusterServer(currentMode, supportedModes) {
|
|
97
29
|
this.behaviors.require(MatterbridgeWaterHeaterModeServer, {
|
|
98
30
|
supportedModes: supportedModes ?? [
|
|
@@ -109,7 +41,7 @@ export class WaterHeater extends MatterbridgeEndpoint {
|
|
|
109
41
|
{ label: 'Off', mode: 11, modeTags: [{ value: WaterHeaterMode.ModeTag.Off }] },
|
|
110
42
|
{ label: 'Manual', mode: 12, modeTags: [{ value: WaterHeaterMode.ModeTag.Manual }] },
|
|
111
43
|
{ label: 'Timed', mode: 13, modeTags: [{ value: WaterHeaterMode.ModeTag.Timed }] },
|
|
112
|
-
],
|
|
44
|
+
],
|
|
113
45
|
currentMode: currentMode ?? 1,
|
|
114
46
|
});
|
|
115
47
|
return this;
|
|
@@ -122,9 +54,6 @@ export class MatterbridgeWaterHeaterManagementServer extends WaterHeaterManageme
|
|
|
122
54
|
device.commandHandler.executeHandler('boost', { request, cluster: WaterHeaterManagementServer.id, attributes: this.state, endpoint: this.endpoint });
|
|
123
55
|
device.log.debug(`MatterbridgeWaterHeaterManagementServer boost called with: ${JSON.stringify(request)}`);
|
|
124
56
|
this.state.boostState = WaterHeaterManagement.BoostState.Active;
|
|
125
|
-
// The implementation is responsible for setting the device accordingly with the boostInfo of the boost command
|
|
126
|
-
// super.boost({ boostInfo });
|
|
127
|
-
// boost is not implemented in matter.js
|
|
128
57
|
}
|
|
129
58
|
cancelBoost() {
|
|
130
59
|
const device = this.endpoint.stateOf(MatterbridgeServer);
|
|
@@ -132,9 +61,6 @@ export class MatterbridgeWaterHeaterManagementServer extends WaterHeaterManageme
|
|
|
132
61
|
device.commandHandler.executeHandler('cancelBoost', { request: {}, cluster: WaterHeaterManagementServer.id, attributes: this.state, endpoint: this.endpoint });
|
|
133
62
|
device.log.debug(`MatterbridgeWaterHeaterManagementServer cancelBoost called`);
|
|
134
63
|
this.state.boostState = WaterHeaterManagement.BoostState.Inactive;
|
|
135
|
-
// The implementation is responsible for setting the device accordingly with the cancelBoost command
|
|
136
|
-
// super.cancelBoost();
|
|
137
|
-
// cancelBoost is not implemented in matter.js
|
|
138
64
|
}
|
|
139
65
|
}
|
|
140
66
|
export class MatterbridgeWaterHeaterModeServer extends WaterHeaterModeServer {
|
|
@@ -152,4 +78,3 @@ export class MatterbridgeWaterHeaterModeServer extends WaterHeaterModeServer {
|
|
|
152
78
|
return { status: ModeBase.ModeChangeStatus.Success, statusText: 'Success' };
|
|
153
79
|
}
|
|
154
80
|
}
|
|
155
|
-
//# sourceMappingURL=waterHeater.js.map
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1-dev-20250629-f14b886",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge",
|
|
9
|
-
"version": "3.1.
|
|
9
|
+
"version": "3.1.1-dev-20250629-f14b886",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@matter/main": "0.15.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1-dev-20250629-f14b886",
|
|
4
4
|
"description": "Matterbridge plugin manager for Matter",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
],
|
|
42
42
|
"type": "module",
|
|
43
43
|
"main": "dist/index.js",
|
|
44
|
-
"types": "dist/index.d.ts",
|
|
45
44
|
"bin": {
|
|
46
45
|
"matterbridge": "bin/matterbridge"
|
|
47
46
|
},
|
package/dist/cli.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the CLI entry point of Matterbridge.
|
|
3
|
-
*
|
|
4
|
-
* @file cli.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @created 2023-12-29
|
|
7
|
-
* @version 2.0.1
|
|
8
|
-
* @license Apache-2.0
|
|
9
|
-
*
|
|
10
|
-
* Copyright 2023, 2024, 2025 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
|
-
import { EventEmitter } from 'node:events';
|
|
25
|
-
import { Matterbridge } from './matterbridge.js';
|
|
26
|
-
export declare const cliEmitter: EventEmitter<[never]>;
|
|
27
|
-
export declare let instance: Matterbridge | undefined;
|
|
28
|
-
export declare let lastCpuUsage: number;
|
|
29
|
-
//# sourceMappingURL=cli.d.ts.map
|
package/dist/cli.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAKH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAQ3C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,UAAU,uBAAqB,CAAC;AAE7C,eAAO,IAAI,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAC;AAS9C,eAAO,IAAI,YAAY,QAAI,CAAC"}
|
package/dist/cli.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAIH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,oBAAoB;AACpB,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAA6B,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAEnG,eAAe;AACf,OAAO,EAAE,eAAe,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CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;IACpE,MAAM,YAAY,GAAG,OAAO,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACnD,GAAG,CAAC,KAAK,CAAC,kDAAkD,YAAY,YAAY,YAAY,EAAE,CAAC,CAAC;AACtG,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/clusters/export.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"export.js","sourceRoot":"","sources":["../../src/clusters/export.ts"],"names":[],"mappings":";AAAA,oGAAoG"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the default config for the plugins.
|
|
3
|
-
*
|
|
4
|
-
* @file defaultConfigSchema.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @created 2024-05-07
|
|
7
|
-
* @version 1.0.1
|
|
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
|
-
import { PlatformConfig } from './matterbridgePlatform.js';
|
|
25
|
-
export declare const zigbee2mqtt_config: PlatformConfig;
|
|
26
|
-
export declare const somfytahoma_config: PlatformConfig;
|
|
27
|
-
export declare const shelly_config: PlatformConfig;
|
|
28
|
-
//# sourceMappingURL=defaultConfigSchema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaultConfigSchema.d.ts","sourceRoot":"","sources":["../src/defaultConfigSchema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,eAAO,MAAM,kBAAkB,EAAE,cAiBhC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,cAWhC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,cA2B3B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaultConfigSchema.js","sourceRoot":"","sources":["../src/defaultConfigSchema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAIH,MAAM,CAAC,MAAM,kBAAkB,GAAmB;IAChD,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,WAAW;IACjB,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,aAAa;IACpB,SAAS,EAAE,EAAE;IACb,SAAS,EAAE,EAAE;IACb,UAAU,EAAE,EAAE;IACd,SAAS,EAAE,EAAE;IACb,UAAU,EAAE,EAAE;IACd,gBAAgB,EAAE,EAAE;IACpB,sBAAsB,EAAE,EAAE;IAC1B,KAAK,EAAE,KAAK;IACZ,oBAAoB,EAAE,KAAK;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAmB;IAChD,IAAI,EAAE,2BAA2B;IACjC,IAAI,EAAE,iBAAiB;IACvB,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAE,cAAc;IACvB,SAAS,EAAE,EAAE;IACb,SAAS,EAAE,EAAE;IACb,gBAAgB,EAAE,EAAE;IACpB,KAAK,EAAE,KAAK;IACZ,oBAAoB,EAAE,KAAK;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAmB;IAC3C,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,iBAAiB;IACvB,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,SAAS,EAAE,EAAE;IACb,gBAAgB,EAAE,EAAE;IACpB,kBAAkB,EAAE,EAAE;IACtB,iBAAiB,EAAE,EAAE;IACrB,SAAS,EAAE,EAAE;IACb,SAAS,EAAE,EAAE;IACb,eAAe,EAAE,EAAE;IACnB,qBAAqB,EAAE,EAAE;IACzB,WAAW,EAAE,EAAE;IACf,kBAAkB,EAAE,IAAI;IACxB,qBAAqB,EAAE,IAAI;IAC3B,oBAAoB,EAAE,KAAK;IAC3B,iBAAiB,EAAE,IAAI;IACvB,aAAa,EAAE,CAAC;IAChB,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,KAAK;IACjB,KAAK,EAAE,KAAK;IACZ,SAAS,EAAE,KAAK;IAChB,SAAS,EAAE,KAAK;IAChB,OAAO,EAAE,KAAK;IACd,oBAAoB,EAAE,KAAK;CAC5B,CAAC"}
|
package/dist/deviceManager.d.ts
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the DeviceManager class.
|
|
3
|
-
*
|
|
4
|
-
* @file devices.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @created 2024-07-26
|
|
7
|
-
* @version 1.0.11
|
|
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
|
-
import { LogLevel } from 'node-ansi-logger';
|
|
25
|
-
import { Matterbridge } from './matterbridge.js';
|
|
26
|
-
import { MatterbridgeEndpoint } from './matterbridgeEndpoint.js';
|
|
27
|
-
/**
|
|
28
|
-
* Manages Matterbridge devices.
|
|
29
|
-
*/
|
|
30
|
-
export declare class DeviceManager {
|
|
31
|
-
private readonly _devices;
|
|
32
|
-
private readonly matterbridge;
|
|
33
|
-
private readonly log;
|
|
34
|
-
/**
|
|
35
|
-
* Creates an instance of DeviceManager.
|
|
36
|
-
*
|
|
37
|
-
* @param {Matterbridge} matterbridge - The Matterbridge instance.
|
|
38
|
-
*/
|
|
39
|
-
constructor(matterbridge: Matterbridge);
|
|
40
|
-
/**
|
|
41
|
-
* Gets the number of devices.
|
|
42
|
-
*
|
|
43
|
-
* @returns {number} The number of devices.
|
|
44
|
-
*/
|
|
45
|
-
get length(): number;
|
|
46
|
-
/**
|
|
47
|
-
* Gets the number of devices.
|
|
48
|
-
*
|
|
49
|
-
* @returns {number} The number of devices.
|
|
50
|
-
*/
|
|
51
|
-
get size(): number;
|
|
52
|
-
/**
|
|
53
|
-
* Checks if a device with the specified unique ID exists.
|
|
54
|
-
*
|
|
55
|
-
* @param {string} uniqueId - The unique ID of the device.
|
|
56
|
-
* @returns {boolean} True if the device exists, false otherwise.
|
|
57
|
-
*/
|
|
58
|
-
has(uniqueId: string): boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Gets a device by its unique ID.
|
|
61
|
-
*
|
|
62
|
-
* @param {string} uniqueId - The unique ID of the device.
|
|
63
|
-
* @returns {MatterbridgeEndpoint | undefined} The device, or undefined if not found.
|
|
64
|
-
*/
|
|
65
|
-
get(uniqueId: string): MatterbridgeEndpoint | undefined;
|
|
66
|
-
/**
|
|
67
|
-
* Adds a device to the manager.
|
|
68
|
-
*
|
|
69
|
-
* @param {MatterbridgeEndpoint} device - The device to add.
|
|
70
|
-
* @returns {MatterbridgeEndpoint} The added device.
|
|
71
|
-
* @throws {Error} If the device does not have a unique ID.
|
|
72
|
-
*/
|
|
73
|
-
set(device: MatterbridgeEndpoint): MatterbridgeEndpoint;
|
|
74
|
-
/**
|
|
75
|
-
* Removes a device from the manager.
|
|
76
|
-
*
|
|
77
|
-
* @param {MatterbridgeEndpoint} device - The device to remove.
|
|
78
|
-
* @returns {boolean} True if the device was removed, false otherwise.
|
|
79
|
-
* @throws {Error} If the device does not have a unique ID.
|
|
80
|
-
*/
|
|
81
|
-
remove(device: MatterbridgeEndpoint): boolean;
|
|
82
|
-
/**
|
|
83
|
-
* Clears all devices from the manager.
|
|
84
|
-
*/
|
|
85
|
-
clear(): void;
|
|
86
|
-
/**
|
|
87
|
-
* Gets an array of all devices.
|
|
88
|
-
*
|
|
89
|
-
* @returns {MatterbridgeEndpoint[]} An array of all devices.
|
|
90
|
-
*/
|
|
91
|
-
array(): MatterbridgeEndpoint[];
|
|
92
|
-
/**
|
|
93
|
-
* Iterates over all devices.
|
|
94
|
-
*
|
|
95
|
-
* @returns {IterableIterator<MatterbridgeEndpoint>} An iterator for the devices.
|
|
96
|
-
*/
|
|
97
|
-
[Symbol.iterator](): MapIterator<MatterbridgeEndpoint>;
|
|
98
|
-
/**
|
|
99
|
-
* Asynchronously iterates over each device and calls the provided callback function.
|
|
100
|
-
*
|
|
101
|
-
* @param {(device: MatterbridgeEndpoint) => Promise<void>} callback - The callback function to call with each device.
|
|
102
|
-
* @returns {Promise<void>} A promise that resolves when all callbacks have been called.
|
|
103
|
-
*/
|
|
104
|
-
forEach(callback: (device: MatterbridgeEndpoint) => Promise<void>): Promise<void>;
|
|
105
|
-
/**
|
|
106
|
-
* Sets the log level.
|
|
107
|
-
*
|
|
108
|
-
* @param {LogLevel} logLevel - The log level to set.
|
|
109
|
-
*/
|
|
110
|
-
set logLevel(logLevel: LogLevel);
|
|
111
|
-
}
|
|
112
|
-
//# sourceMappingURL=deviceManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deviceManager.d.ts","sourceRoot":"","sources":["../src/deviceManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,EAAwB,QAAQ,EAAmB,MAAM,kBAAkB,CAAC;AAGnF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAGjE;;GAEG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA2C;IACpE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAa;IAEjC;;;;OAIG;gBACS,YAAY,EAAE,YAAY;IAMtC;;;;OAIG;IACH,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED;;;;OAIG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;;;;OAKG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAI9B;;;;;OAKG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS;IAIvD;;;;;;OAMG;IACH,GAAG,CAAC,MAAM,EAAE,oBAAoB,GAAG,oBAAoB;IAOvD;;;;;;OAMG;IACH,MAAM,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO;IAM7C;;OAEG;IACH,KAAK,IAAI,IAAI;IAIb;;;;OAIG;IACH,KAAK,IAAI,oBAAoB,EAAE;IAI/B;;;;OAIG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@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/devices/export.ts"],"names":[],"mappings":"AACA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"export.js","sourceRoot":"","sources":["../../src/devices/export.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC"}
|
package/dist/evse.d.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the Evse class.
|
|
3
|
-
*
|
|
4
|
-
* @file energy-evse.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @contributor Ludovic BOUÉ
|
|
7
|
-
* @created 2025-05-27
|
|
8
|
-
* @version 1.1.0
|
|
9
|
-
* @license Apache-2.0
|
|
10
|
-
*
|
|
11
|
-
* Copyright 2025, 2026, 2027 Luca Liguori.
|
|
12
|
-
*
|
|
13
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
14
|
-
* you may not use this file except in compliance with the License.
|
|
15
|
-
* You may obtain a copy of the License at
|
|
16
|
-
*
|
|
17
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
18
|
-
*
|
|
19
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
20
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
21
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
22
|
-
* See the License for the specific language governing permissions and
|
|
23
|
-
* limitations under the License.
|
|
24
|
-
*/
|
|
25
|
-
import { MaybePromise } from '@matter/main';
|
|
26
|
-
import { EnergyEvseServer } from '@matter/main/behaviors/energy-evse';
|
|
27
|
-
import { EnergyEvseModeServer } from '@matter/main/behaviors/energy-evse-mode';
|
|
28
|
-
import { EnergyEvse, EnergyEvseMode } from '@matter/main/clusters';
|
|
29
|
-
import { ModeBase } from '@matter/main/clusters/mode-base';
|
|
30
|
-
import { MatterbridgeEndpoint } from './matterbridgeEndpoint.js';
|
|
31
|
-
export declare class Evse extends MatterbridgeEndpoint {
|
|
32
|
-
/**
|
|
33
|
-
* Creates an instance of the EVSE class.
|
|
34
|
-
*
|
|
35
|
-
* @param {string} name - The name of the EVSE.
|
|
36
|
-
* @param {string} serial - The serial number of the EVSE.
|
|
37
|
-
* @param {number} [currentMode] - The current mode of the EnergyEvseMode cluster. Defaults to mode 1 (EnergyEvseMode.ModeTag.Manual).
|
|
38
|
-
* @param {EnergyEvseMode.ModeOption[]} [supportedModes] - The supported modes for the EnergyEvseMode cluster. This is a fixed attribute that defaults to a predefined set of EnergyEvseMode cluster modes.
|
|
39
|
-
* @param {EnergyEvse.State} [state] - The current state of the EVSE. Defaults to NotPluggedIn.
|
|
40
|
-
* @param {EnergyEvse.SupplyState} [supplyState] - The supply state of the EVSE. Defaults to Disabled.
|
|
41
|
-
* @param {EnergyEvse.FaultState} [faultState] - The fault state of the EVSE. Defaults to NoError.
|
|
42
|
-
* @param {number} [absMinPower] - Indicate the minimum electrical power that the ESA can consume when switched on. Defaults to `0` if not provided.
|
|
43
|
-
* @param {number} [absMaxPower] - Indicate the maximum electrical power that the ESA can consume when switched on. Defaults to `0` if not provided.
|
|
44
|
-
*/
|
|
45
|
-
constructor(name: string, serial: string, currentMode?: number, supportedModes?: EnergyEvseMode.ModeOption[], state?: EnergyEvse.State, supplyState?: EnergyEvse.SupplyState, faultState?: EnergyEvse.FaultState, absMinPower?: number, absMaxPower?: number);
|
|
46
|
-
/**
|
|
47
|
-
* Creates a default EnergyEvseServer Cluster Server.
|
|
48
|
-
*
|
|
49
|
-
* @param {EnergyEvse.State} [state] - The initial state of the EnergyEvse cluster. Defaults to EnergyEvse.State.NotPluggedIn.
|
|
50
|
-
* @param {EnergyEvse.SupplyState} [supplyState] - The initial supply state of the EnergyEvse cluster. Defaults to EnergyEvse.SupplyState.ChargingEnabled.
|
|
51
|
-
* @param {EnergyEvse.FaultState} [faultState] - The initial fault state of the EnergyEvse cluster. Defaults to EnergyEvse.FaultState.NoError.
|
|
52
|
-
* @returns {this} The current MatterbridgeEndpoint instance for chaining.
|
|
53
|
-
*/
|
|
54
|
-
createDefaultEnergyEvseClusterServer(state?: EnergyEvse.State, supplyState?: EnergyEvse.SupplyState, faultState?: EnergyEvse.FaultState): this;
|
|
55
|
-
/**
|
|
56
|
-
* Creates a default EnergyEvseMode Cluster Server.
|
|
57
|
-
*
|
|
58
|
-
* @param {number} [currentMode] - The current mode of the EnergyEvseMode cluster. Defaults to mode 1 (EnergyEvseMode.ModeTag.Manual).
|
|
59
|
-
* @param {EnergyEvseMode.ModeOption[]} [supportedModes] - The supported modes for the EnergyEvseMode cluster. Defaults all EnergyEvseMode cluster modes.
|
|
60
|
-
*
|
|
61
|
-
* @returns {this} The current MatterbridgeEndpoint instance for chaining.
|
|
62
|
-
*/
|
|
63
|
-
createDefaultEnergyEvseModeClusterServer(currentMode?: number, supportedModes?: EnergyEvseMode.ModeOption[]): this;
|
|
64
|
-
}
|
|
65
|
-
export declare class MatterbridgeEnergyEvseServer extends EnergyEvseServer {
|
|
66
|
-
disable(): MaybePromise;
|
|
67
|
-
enableCharging(request: EnergyEvse.EnableChargingRequest): MaybePromise;
|
|
68
|
-
}
|
|
69
|
-
export declare class MatterbridgeEnergyEvseModeServer extends EnergyEvseModeServer {
|
|
70
|
-
changeToMode(request: ModeBase.ChangeToModeRequest): MaybePromise<ModeBase.ChangeToModeResponse>;
|
|
71
|
-
}
|
|
72
|
-
//# sourceMappingURL=evse.d.ts.map
|
package/dist/evse.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"evse.d.ts","sourceRoot":"","sources":["../src/evse.ts"],"names":[],"m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