matterbridge 3.0.5 → 3.0.6-dev-20250610-56cd483
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 +18 -0
- package/README.md +1 -1
- package/dist/cli.js +2 -62
- package/dist/cluster/export.js +0 -2
- package/dist/defaultConfigSchema.js +0 -23
- package/dist/deviceManager.js +1 -94
- package/dist/evse.js +9 -60
- package/dist/frontend.js +22 -379
- package/dist/helpers.js +0 -51
- package/dist/index.js +1 -28
- 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 -2
- package/dist/matter/types.js +0 -2
- package/dist/matterbridge.js +101 -879
- package/dist/matterbridgeAccessoryPlatform.js +0 -34
- package/dist/matterbridgeBehaviors.js +1 -49
- package/dist/matterbridgeDeviceTypes.js +15 -578
- package/dist/matterbridgeDynamicPlatform.js +0 -34
- package/dist/matterbridgeEndpoint.js +24 -924
- package/dist/matterbridgeEndpointHelpers.js +10 -172
- package/dist/matterbridgePlatform.js +7 -225
- package/dist/matterbridgeTypes.js +0 -24
- package/dist/pluginManager.js +5 -272
- package/dist/roboticVacuumCleaner.js +6 -81
- package/dist/shelly.js +8 -156
- package/dist/storage/export.js +0 -1
- package/dist/update.js +0 -53
- package/dist/utils/colorUtils.js +2 -205
- package/dist/utils/commandLine.js +0 -53
- package/dist/utils/copyDirectory.js +16 -37
- package/dist/utils/createDirectory.js +21 -0
- package/dist/utils/createZip.js +2 -42
- package/dist/utils/deepCopy.js +0 -38
- package/dist/utils/deepEqual.js +1 -71
- package/dist/utils/export.js +1 -1
- package/dist/utils/hex.js +0 -57
- package/dist/utils/isvalid.js +0 -100
- package/dist/utils/network.js +5 -76
- package/dist/utils/spawn.js +68 -0
- package/dist/utils/wait.js +11 -59
- package/dist/waterHeater.js +2 -62
- 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/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 -114
- package/dist/deviceManager.d.ts.map +0 -1
- package/dist/deviceManager.js.map +0 -1
- package/dist/evse.d.ts +0 -63
- package/dist/evse.d.ts.map +0 -1
- package/dist/evse.js.map +0 -1
- package/dist/frontend.d.ts +0 -256
- package/dist/frontend.d.ts.map +0 -1
- package/dist/frontend.js.map +0 -1
- package/dist/helpers.d.ts +0 -47
- package/dist/helpers.d.ts.map +0 -1
- package/dist/helpers.js.map +0 -1
- package/dist/index.d.ts +0 -37
- 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 -449
- package/dist/matterbridge.d.ts.map +0 -1
- package/dist/matterbridge.js.map +0 -1
- package/dist/matterbridgeAccessoryPlatform.d.ts +0 -40
- package/dist/matterbridgeAccessoryPlatform.d.ts.map +0 -1
- package/dist/matterbridgeAccessoryPlatform.js.map +0 -1
- package/dist/matterbridgeBehaviors.d.ts +0 -1379
- package/dist/matterbridgeBehaviors.d.ts.map +0 -1
- package/dist/matterbridgeBehaviors.js.map +0 -1
- package/dist/matterbridgeDeviceTypes.d.ts +0 -644
- package/dist/matterbridgeDeviceTypes.d.ts.map +0 -1
- package/dist/matterbridgeDeviceTypes.js.map +0 -1
- package/dist/matterbridgeDynamicPlatform.d.ts +0 -40
- package/dist/matterbridgeDynamicPlatform.d.ts.map +0 -1
- package/dist/matterbridgeDynamicPlatform.js.map +0 -1
- package/dist/matterbridgeEndpoint.d.ts +0 -1079
- package/dist/matterbridgeEndpoint.d.ts.map +0 -1
- package/dist/matterbridgeEndpoint.js.map +0 -1
- package/dist/matterbridgeEndpointHelpers.d.ts +0 -2749
- package/dist/matterbridgeEndpointHelpers.d.ts.map +0 -1
- package/dist/matterbridgeEndpointHelpers.js.map +0 -1
- package/dist/matterbridgePlatform.d.ts +0 -294
- package/dist/matterbridgePlatform.d.ts.map +0 -1
- package/dist/matterbridgePlatform.js.map +0 -1
- package/dist/matterbridgeTypes.d.ts +0 -196
- package/dist/matterbridgeTypes.d.ts.map +0 -1
- package/dist/matterbridgeTypes.js.map +0 -1
- package/dist/pluginManager.d.ts +0 -273
- package/dist/pluginManager.d.ts.map +0 -1
- package/dist/pluginManager.js.map +0 -1
- package/dist/roboticVacuumCleaner.d.ts +0 -102
- package/dist/roboticVacuumCleaner.d.ts.map +0 -1
- package/dist/roboticVacuumCleaner.js.map +0 -1
- package/dist/shelly.d.ts +0 -153
- 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 -58
- package/dist/update.d.ts.map +0 -1
- package/dist/update.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/commandLine.d.ts +0 -58
- package/dist/utils/commandLine.d.ts.map +0 -1
- package/dist/utils/commandLine.js.map +0 -1
- package/dist/utils/copyDirectory.d.ts +0 -32
- package/dist/utils/copyDirectory.d.ts.map +0 -1
- package/dist/utils/copyDirectory.js.map +0 -1
- package/dist/utils/createZip.d.ts +0 -38
- package/dist/utils/createZip.d.ts.map +0 -1
- package/dist/utils/createZip.js.map +0 -1
- package/dist/utils/deepCopy.d.ts +0 -31
- package/dist/utils/deepCopy.d.ts.map +0 -1
- package/dist/utils/deepCopy.js.map +0 -1
- package/dist/utils/deepEqual.d.ts +0 -53
- package/dist/utils/deepEqual.d.ts.map +0 -1
- package/dist/utils/deepEqual.js.map +0 -1
- package/dist/utils/export.d.ts +0 -11
- package/dist/utils/export.d.ts.map +0 -1
- package/dist/utils/export.js.map +0 -1
- package/dist/utils/hex.d.ts +0 -48
- package/dist/utils/hex.d.ts.map +0 -1
- package/dist/utils/hex.js.map +0 -1
- package/dist/utils/isvalid.d.ts +0 -102
- package/dist/utils/isvalid.d.ts.map +0 -1
- package/dist/utils/isvalid.js.map +0 -1
- package/dist/utils/network.d.ts +0 -69
- package/dist/utils/network.d.ts.map +0 -1
- package/dist/utils/network.js.map +0 -1
- package/dist/utils/wait.d.ts +0 -52
- package/dist/utils/wait.d.ts.map +0 -1
- package/dist/utils/wait.js.map +0 -1
- package/dist/waterHeater.d.ts +0 -90
- package/dist/waterHeater.d.ts.map +0 -1
- package/dist/waterHeater.js.map +0 -1
package/dist/utils/wait.js
CHANGED
|
@@ -1,42 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the wait, waiter and withTimeout functions.
|
|
3
|
-
*
|
|
4
|
-
* @file wait.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @date 2025-02-16
|
|
7
|
-
* @version 1.0.0
|
|
8
|
-
*
|
|
9
|
-
* Copyright 2025, 2026, 2027 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
|
-
// AnsiLogger module
|
|
24
1
|
import { AnsiLogger } from '../logger/export.js';
|
|
25
|
-
export const log = new AnsiLogger({ logName: 'MatterbridgeUtils', logTimestampFormat: 4
|
|
26
|
-
/**
|
|
27
|
-
* Asynchronous waiter function that resolves when the provided condition is met or rejects on timeout.
|
|
28
|
-
* @param {string} name - The name of the waiter.
|
|
29
|
-
* @param {() => boolean} check - A function that checks the condition. Should return a boolean.
|
|
30
|
-
* @param {boolean} [exitWithReject=false] - Optional. If true, the promise will be rejected on timeout. Default is false.
|
|
31
|
-
* @param {number} [resolveTimeout=5000] - Optional. The timeout duration in milliseconds. Default is 5000ms.
|
|
32
|
-
* @param {number} [resolveInterval=500] - Optional. The interval duration in milliseconds between condition checks. Default is 500ms.
|
|
33
|
-
* @param {boolean} [debug=false] - Optional. If true, debug messages will be logged to the console. Default is false.
|
|
34
|
-
* @returns {Promise<boolean>} A promise that resolves to true when the condition is met, or false if the timeout occurs.
|
|
35
|
-
*/
|
|
2
|
+
export const log = new AnsiLogger({ logName: 'MatterbridgeUtils', logTimestampFormat: 4, logLevel: "info" });
|
|
36
3
|
export async function waiter(name, check, exitWithReject = false, resolveTimeout = 5000, resolveInterval = 500, debug = false) {
|
|
37
4
|
if (check())
|
|
38
5
|
return true;
|
|
39
|
-
log.logLevel = "debug"
|
|
6
|
+
log.logLevel = "debug";
|
|
40
7
|
log.logName = 'Waiter';
|
|
41
8
|
if (debug)
|
|
42
9
|
log.debug(`Waiter "${name}" started...`);
|
|
@@ -51,7 +18,7 @@ export async function waiter(name, check, exitWithReject = false, resolveTimeout
|
|
|
51
18
|
else
|
|
52
19
|
resolve(false);
|
|
53
20
|
}, resolveTimeout);
|
|
54
|
-
const intervalId = setInterval(() => {
|
|
21
|
+
const intervalId = setInterval(async () => {
|
|
55
22
|
if (check()) {
|
|
56
23
|
if (debug)
|
|
57
24
|
log.debug(`Waiter "${name}" finished for true condition...`);
|
|
@@ -59,22 +26,15 @@ export async function waiter(name, check, exitWithReject = false, resolveTimeout
|
|
|
59
26
|
clearInterval(intervalId);
|
|
60
27
|
resolve(true);
|
|
61
28
|
}
|
|
29
|
+
await Promise.resolve();
|
|
62
30
|
}, resolveInterval);
|
|
63
31
|
});
|
|
64
32
|
}
|
|
65
|
-
/**
|
|
66
|
-
* Asynchronously waits for a specified amount of time.
|
|
67
|
-
* @param {number} timeout - The duration to wait in milliseconds. Default is 1000ms.
|
|
68
|
-
* @param {string} name - The name of the wait operation. Default is undefined.
|
|
69
|
-
* @param {boolean} debug - Whether to enable debug logging. Default is false.
|
|
70
|
-
* @returns {Promise<void>} A Promise that resolves after the specified timeout.
|
|
71
|
-
*/
|
|
72
33
|
export async function wait(timeout = 1000, name, debug = false) {
|
|
73
|
-
log.logLevel = "debug"
|
|
34
|
+
log.logLevel = "debug";
|
|
74
35
|
log.logName = 'Wait';
|
|
75
36
|
if (debug)
|
|
76
37
|
log.debug(`Wait "${name}" started...`);
|
|
77
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
78
38
|
return new Promise((resolve, reject) => {
|
|
79
39
|
const timeoutId = setTimeout(() => {
|
|
80
40
|
if (debug)
|
|
@@ -84,13 +44,6 @@ export async function wait(timeout = 1000, name, debug = false) {
|
|
|
84
44
|
}, timeout);
|
|
85
45
|
});
|
|
86
46
|
}
|
|
87
|
-
/**
|
|
88
|
-
* Wraps a promise with a timeout. If the promise does not resolve or reject within the specified time, it will be rejected.
|
|
89
|
-
* @param {Promise<T>} promise - The promise to wrap.
|
|
90
|
-
* @param {number} [timeoutMillisecs=10000] - The timeout duration in milliseconds. Default is 10000ms.
|
|
91
|
-
* @param {boolean} [reThrow=true] - Optional. If true, the promise will rethrow the original promise and will reject on timeout. Default is true.
|
|
92
|
-
* @returns {Promise<T>} A new promise that resolves or rejects based on the original promise and the timeout.
|
|
93
|
-
*/
|
|
94
47
|
export function withTimeout(promise, timeoutMillisecs = 10000, reThrow = true) {
|
|
95
48
|
return new Promise((resolve, reject) => {
|
|
96
49
|
const timer = setTimeout(() => {
|
|
@@ -98,23 +51,22 @@ export function withTimeout(promise, timeoutMillisecs = 10000, reThrow = true) {
|
|
|
98
51
|
reject(new Error('Operation timed out'));
|
|
99
52
|
}
|
|
100
53
|
else {
|
|
101
|
-
resolve(undefined);
|
|
54
|
+
resolve(undefined);
|
|
102
55
|
}
|
|
103
|
-
}, timeoutMillisecs).unref();
|
|
56
|
+
}, timeoutMillisecs).unref();
|
|
104
57
|
promise
|
|
105
58
|
.then((result) => {
|
|
106
|
-
clearTimeout(timer);
|
|
59
|
+
clearTimeout(timer);
|
|
107
60
|
resolve(result);
|
|
108
61
|
})
|
|
109
62
|
.catch((error) => {
|
|
110
|
-
clearTimeout(timer);
|
|
63
|
+
clearTimeout(timer);
|
|
111
64
|
if (reThrow) {
|
|
112
|
-
reject(error);
|
|
65
|
+
reject(error);
|
|
113
66
|
}
|
|
114
67
|
else {
|
|
115
|
-
resolve(undefined);
|
|
68
|
+
resolve(undefined);
|
|
116
69
|
}
|
|
117
70
|
});
|
|
118
71
|
});
|
|
119
72
|
}
|
|
120
|
-
//# 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
|
-
* @date 2025-05-18
|
|
8
|
-
* @version 1.0.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
|
-
// Matterbridge
|
|
25
1
|
import { MatterbridgeEndpoint } from './matterbridgeEndpoint.js';
|
|
26
2
|
import { waterHeater } from './matterbridgeDeviceTypes.js';
|
|
27
3
|
import { MatterbridgeServer } from './matterbridgeBehaviors.js';
|
|
@@ -31,18 +7,6 @@ import { WaterHeaterMode } from '@matter/main/clusters/water-heater-mode';
|
|
|
31
7
|
import { WaterHeaterManagementServer } from '@matter/main/behaviors/water-heater-management';
|
|
32
8
|
import { WaterHeaterModeServer } from '@matter/main/behaviors/water-heater-mode';
|
|
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=50] - The current water temperature. Defaults to 50.
|
|
40
|
-
* @param {number} [targetWaterTemperature=55] - The target water temperature. Defaults to 55.
|
|
41
|
-
* @param {number} [minHeatSetpointLimit=20] - The minimum heat setpoint limit. Defaults to 20.
|
|
42
|
-
* @param {number} [maxHeatSetpointLimit=80] - 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 {number} [tankPercentage] - The current tank percentage of the WaterHeaterManagement cluster. Defaults to 90.
|
|
45
|
-
*/
|
|
46
10
|
constructor(name, serial, waterTemperature = 50, targetWaterTemperature = 55, minHeatSetpointLimit = 20, maxHeatSetpointLimit = 80, heaterTypes = { immersionElement1: true }, tankPercentage = 90) {
|
|
47
11
|
super(waterHeater, { uniqueStorageKey: `${name.replaceAll(' ', '')}-${serial.replaceAll(' ', '')}` }, true);
|
|
48
12
|
this.createDefaultIdentifyClusterServer()
|
|
@@ -52,32 +16,15 @@ export class WaterHeater extends MatterbridgeEndpoint {
|
|
|
52
16
|
.createDefaultWaterHeaterManagementClusterServer(heaterTypes, {}, tankPercentage)
|
|
53
17
|
.createDefaultWaterHeaterModeClusterServer();
|
|
54
18
|
}
|
|
55
|
-
/**
|
|
56
|
-
* Creates a default WaterHeaterManagement Cluster Server.
|
|
57
|
-
*
|
|
58
|
-
* @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 }.
|
|
59
|
-
* @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.
|
|
60
|
-
* @param {number} [tankPercentage] - The current tank percentage of the WaterHeaterManagement cluster. Defaults to 100.
|
|
61
|
-
* @param {WaterHeaterManagement.BoostState} [boostState] - The current boost state of the WaterHeaterManagement cluster. Defaults to Inactive.
|
|
62
|
-
* @returns {this} The current MatterbridgeEndpoint instance for chaining.
|
|
63
|
-
*/
|
|
64
19
|
createDefaultWaterHeaterManagementClusterServer(heaterTypes, heatDemand, tankPercentage, boostState) {
|
|
65
20
|
this.behaviors.require(MatterbridgeWaterHeaterManagementServer.with(WaterHeaterManagement.Feature.TankPercent), {
|
|
66
|
-
heaterTypes: heaterTypes ?? { immersionElement1: true },
|
|
21
|
+
heaterTypes: heaterTypes ?? { immersionElement1: true },
|
|
67
22
|
heatDemand: heatDemand ?? {},
|
|
68
23
|
tankPercentage: tankPercentage ?? 100,
|
|
69
24
|
boostState: boostState ?? WaterHeaterManagement.BoostState.Inactive,
|
|
70
25
|
});
|
|
71
26
|
return this;
|
|
72
27
|
}
|
|
73
|
-
/**
|
|
74
|
-
* Creates a default WaterHeaterMode Cluster Server.
|
|
75
|
-
*
|
|
76
|
-
* @param {number} [currentMode] - The current mode of the WaterHeaterMode cluster. Defaults to mode 1 (WaterHeaterMode.ModeTag.Auto).
|
|
77
|
-
* @param {WaterHeaterMode.ModeOption[]} [supportedModes] - The supported modes for the WaterHeaterMode cluster. Defaults all cluster modes.
|
|
78
|
-
*
|
|
79
|
-
* @returns {this} The current MatterbridgeEndpoint instance for chaining.
|
|
80
|
-
*/
|
|
81
28
|
createDefaultWaterHeaterModeClusterServer(currentMode, supportedModes) {
|
|
82
29
|
this.behaviors.require(MatterbridgeWaterHeaterModeServer, {
|
|
83
30
|
supportedModes: supportedModes ?? [
|
|
@@ -94,7 +41,7 @@ export class WaterHeater extends MatterbridgeEndpoint {
|
|
|
94
41
|
{ label: 'Off', mode: 11, modeTags: [{ value: WaterHeaterMode.ModeTag.Off }] },
|
|
95
42
|
{ label: 'Manual', mode: 12, modeTags: [{ value: WaterHeaterMode.ModeTag.Manual }] },
|
|
96
43
|
{ label: 'Timed', mode: 13, modeTags: [{ value: WaterHeaterMode.ModeTag.Timed }] },
|
|
97
|
-
],
|
|
44
|
+
],
|
|
98
45
|
currentMode: currentMode ?? 1,
|
|
99
46
|
});
|
|
100
47
|
return this;
|
|
@@ -106,18 +53,12 @@ export class MatterbridgeWaterHeaterManagementServer extends WaterHeaterManageme
|
|
|
106
53
|
device.boost({ boostInfo });
|
|
107
54
|
device.log.info(`MatterbridgeWaterHeaterManagementServer boost called with: ${JSON.stringify(boostInfo)}`);
|
|
108
55
|
this.state.boostState = WaterHeaterManagement.BoostState.Active;
|
|
109
|
-
// The plugin is responsible for setting the device accordingly with the boostInfo of the boost command
|
|
110
|
-
// super.boost({ boostInfo });
|
|
111
|
-
// boost is not implemented in matter.js
|
|
112
56
|
}
|
|
113
57
|
cancelBoost() {
|
|
114
58
|
const device = this.endpoint.stateOf(MatterbridgeServer).deviceCommand;
|
|
115
59
|
device.cancelBoost();
|
|
116
60
|
device.log.info(`MatterbridgeWaterHeaterManagementServer cancelBoost called`);
|
|
117
61
|
this.state.boostState = WaterHeaterManagement.BoostState.Inactive;
|
|
118
|
-
// The plugin is responsible for setting the device accordingly with the cancelBoost command
|
|
119
|
-
// super.cancelBoost();
|
|
120
|
-
// cancelBoost is not implemented in matter.js
|
|
121
62
|
}
|
|
122
63
|
}
|
|
123
64
|
export class MatterbridgeWaterHeaterModeServer extends WaterHeaterModeServer {
|
|
@@ -134,4 +75,3 @@ export class MatterbridgeWaterHeaterModeServer extends WaterHeaterModeServer {
|
|
|
134
75
|
return { status: ModeBase.ModeChangeStatus.Success, statusText: 'Success' };
|
|
135
76
|
}
|
|
136
77
|
}
|
|
137
|
-
//# sourceMappingURL=waterHeater.js.map
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6-dev-20250610-56cd483",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge",
|
|
9
|
-
"version": "3.0.
|
|
9
|
+
"version": "3.0.6-dev-20250610-56cd483",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@matter/main": "0.14.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6-dev-20250610-56cd483",
|
|
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": "dist/cli.js"
|
|
47
46
|
},
|
package/dist/cli.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* This file contains the CLI entry point of Matterbridge.
|
|
4
|
-
*
|
|
5
|
-
* @file cli.ts
|
|
6
|
-
* @author Luca Liguori
|
|
7
|
-
* @date 2023-12-29
|
|
8
|
-
* @version 2.0.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 { Matterbridge } from './matterbridge.js';
|
|
25
|
-
import { EventEmitter } from 'node:events';
|
|
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":";AACA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AASjD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,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":";AACA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,eAAe;AACf,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAElE,oBAAoB;AACpB,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAA6B,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAIrG,OAA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,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"}
|
package/dist/cluster/export.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/cluster/export.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"export.js","sourceRoot":"","sources":["../../src/cluster/export.ts"],"names":[],"mappings":";AAAA,oGAAoG"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the default config for the plugins.
|
|
3
|
-
*
|
|
4
|
-
* @file defaultConfigSchema.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @date 2024-05-07
|
|
7
|
-
* @version 1.0.1
|
|
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
|
-
import { PlatformConfig } from './matterbridgePlatform.js';
|
|
24
|
-
export declare const zigbee2mqtt_config: PlatformConfig;
|
|
25
|
-
export declare const somfytahoma_config: PlatformConfig;
|
|
26
|
-
export declare const shelly_config: PlatformConfig;
|
|
27
|
-
//# sourceMappingURL=defaultConfigSchema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaultConfigSchema.d.ts","sourceRoot":"","sources":["../src/defaultConfigSchema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;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;;;;;;;;;;;;;;;;;;;;;GAqBG;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,114 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the DeviceManager class.
|
|
3
|
-
*
|
|
4
|
-
* @file devices.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @date 2024-07-26
|
|
7
|
-
* @version 1.0.10
|
|
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
|
-
import { LogLevel } from './logger/export.js';
|
|
24
|
-
import { NodeStorage } from './storage/export.js';
|
|
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 nodeContext;
|
|
34
|
-
private readonly log;
|
|
35
|
-
/**
|
|
36
|
-
* Creates an instance of DeviceManager.
|
|
37
|
-
*
|
|
38
|
-
* @param {Matterbridge} matterbridge - The Matterbridge instance.
|
|
39
|
-
* @param {NodeStorage} nodeContext - The node storage context.
|
|
40
|
-
*/
|
|
41
|
-
constructor(matterbridge: Matterbridge, nodeContext: NodeStorage);
|
|
42
|
-
/**
|
|
43
|
-
* Gets the number of devices.
|
|
44
|
-
*
|
|
45
|
-
* @returns {number} The number of devices.
|
|
46
|
-
*/
|
|
47
|
-
get length(): number;
|
|
48
|
-
/**
|
|
49
|
-
* Gets the number of devices.
|
|
50
|
-
*
|
|
51
|
-
* @returns {number} The number of devices.
|
|
52
|
-
*/
|
|
53
|
-
get size(): number;
|
|
54
|
-
/**
|
|
55
|
-
* Checks if a device with the specified unique ID exists.
|
|
56
|
-
*
|
|
57
|
-
* @param {string} uniqueId - The unique ID of the device.
|
|
58
|
-
* @returns {boolean} True if the device exists, false otherwise.
|
|
59
|
-
*/
|
|
60
|
-
has(uniqueId: string): boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Gets a device by its unique ID.
|
|
63
|
-
*
|
|
64
|
-
* @param {string} uniqueId - The unique ID of the device.
|
|
65
|
-
* @returns {MatterbridgeEndpoint | undefined} The device, or undefined if not found.
|
|
66
|
-
*/
|
|
67
|
-
get(uniqueId: string): MatterbridgeEndpoint | undefined;
|
|
68
|
-
/**
|
|
69
|
-
* Adds a device to the manager.
|
|
70
|
-
*
|
|
71
|
-
* @param {MatterbridgeEndpoint} device - The device to add.
|
|
72
|
-
* @returns {MatterbridgeEndpoint} The added device.
|
|
73
|
-
* @throws {Error} If the device does not have a unique ID.
|
|
74
|
-
*/
|
|
75
|
-
set(device: MatterbridgeEndpoint): MatterbridgeEndpoint;
|
|
76
|
-
/**
|
|
77
|
-
* Removes a device from the manager.
|
|
78
|
-
*
|
|
79
|
-
* @param {MatterbridgeEndpoint} device - The device to remove.
|
|
80
|
-
* @returns {boolean} True if the device was removed, false otherwise.
|
|
81
|
-
* @throws {Error} If the device does not have a unique ID.
|
|
82
|
-
*/
|
|
83
|
-
remove(device: MatterbridgeEndpoint): boolean;
|
|
84
|
-
/**
|
|
85
|
-
* Clears all devices from the manager.
|
|
86
|
-
*/
|
|
87
|
-
clear(): void;
|
|
88
|
-
/**
|
|
89
|
-
* Gets an array of all devices.
|
|
90
|
-
*
|
|
91
|
-
* @returns {MatterbridgeEndpoint[]} An array of all devices.
|
|
92
|
-
*/
|
|
93
|
-
array(): MatterbridgeEndpoint[];
|
|
94
|
-
/**
|
|
95
|
-
* Iterates over all devices.
|
|
96
|
-
*
|
|
97
|
-
* @returns {IterableIterator<MatterbridgeEndpoint>} An iterator for the devices.
|
|
98
|
-
*/
|
|
99
|
-
[Symbol.iterator](): MapIterator<MatterbridgeEndpoint>;
|
|
100
|
-
/**
|
|
101
|
-
* Asynchronously iterates over each device and calls the provided callback function.
|
|
102
|
-
*
|
|
103
|
-
* @param {(device: MatterbridgeEndpoint) => Promise<void>} callback - The callback function to call with each device.
|
|
104
|
-
* @returns {Promise<void>} A promise that resolves when all callbacks have been called.
|
|
105
|
-
*/
|
|
106
|
-
forEach(callback: (device: MatterbridgeEndpoint) => Promise<void>): Promise<void>;
|
|
107
|
-
/**
|
|
108
|
-
* Sets the log level.
|
|
109
|
-
*
|
|
110
|
-
* @param {LogLevel} logLevel - The log level to set.
|
|
111
|
-
*/
|
|
112
|
-
set logLevel(logLevel: LogLevel);
|
|
113
|
-
}
|
|
114
|
-
//# sourceMappingURL=deviceManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deviceManager.d.ts","sourceRoot":"","sources":["../src/deviceManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,EAAwB,QAAQ,EAAmB,MAAM,oBAAoB,CAAC;AAGrF,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,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,WAAW,CAAc;IAC1C,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAa;IAEjC;;;;;OAKG;gBACS,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW;IAOhE;;;;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,o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AG,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAED;;;;OAIG;IACH,IAAI,QAAQ,CAAC,QAAkB;QAC7B,IAAI,CAAC,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC/B,CAAC;CACF"}
|
package/dist/evse.d.ts
DELETED
|
@@ -1,63 +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
|
-
* @date 2025-05-27
|
|
8
|
-
* @version 1.0.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
|
-
import { MaybePromise } from '@matter/main';
|
|
25
|
-
import { EnergyEvseServer } from '@matter/main/behaviors/energy-evse';
|
|
26
|
-
import { EnergyEvseModeServer } from '@matter/main/behaviors/energy-evse-mode';
|
|
27
|
-
import { EnergyEvse, EnergyEvseMode } from '@matter/main/clusters';
|
|
28
|
-
import { ModeBase } from '@matter/main/clusters/mode-base';
|
|
29
|
-
import { MatterbridgeEndpoint } from './matterbridgeEndpoint.js';
|
|
30
|
-
export declare class Evse extends MatterbridgeEndpoint {
|
|
31
|
-
/**
|
|
32
|
-
* Creates an instance of the EVSE class.
|
|
33
|
-
*
|
|
34
|
-
* @param {string} name - The name of the EVSE.
|
|
35
|
-
* @param {string} serial - The serial number of the EVSE.
|
|
36
|
-
* @param {EnergyEvse.State} [state] - The current state of the EVSE. Defaults to NotPluggedIn.
|
|
37
|
-
* @param {EnergyEvse.SupplyState} [supplyState] - The supply state of the EVSE. Defaults to Disabled.
|
|
38
|
-
* @param {EnergyEvse.FaultState} [faultState] - The fault state of the EVSE. Defaults to NoError.
|
|
39
|
-
*/
|
|
40
|
-
constructor(name: string, serial: string, currentMode?: number, supportedModes?: EnergyEvseMode.ModeOption[], state?: EnergyEvse.State, supplyState?: EnergyEvse.SupplyState, faultState?: EnergyEvse.FaultState);
|
|
41
|
-
/**
|
|
42
|
-
* Creates a default EnergyEvseServer Cluster Server.
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
createDefaultEnergyEvseClusterServer(state?: EnergyEvse.State, supplyState?: EnergyEvse.SupplyState, faultState?: EnergyEvse.FaultState): this;
|
|
46
|
-
/**
|
|
47
|
-
* Creates a default EnergyEvseMode Cluster Server.
|
|
48
|
-
*
|
|
49
|
-
* @param {number} [currentMode] - The current mode of the EnergyEvseMode cluster. Defaults to mode 1 (EnergyEvseMode.ModeTag.Manual).
|
|
50
|
-
* @param {EnergyEvseMode.ModeOption[]} [supportedModes] - The supported modes for the EnergyEvseMode cluster. Defaults all EnergyEvseMode cluster modes.
|
|
51
|
-
*
|
|
52
|
-
* @returns {this} The current MatterbridgeEndpoint instance for chaining.
|
|
53
|
-
*/
|
|
54
|
-
createDefaultEnergyEvseModeClusterServer(currentMode?: number, supportedModes?: EnergyEvseMode.ModeOption[]): this;
|
|
55
|
-
}
|
|
56
|
-
export declare class MatterbridgeEnergyEvseServer extends EnergyEvseServer {
|
|
57
|
-
disable(): MaybePromise;
|
|
58
|
-
enableCharging({ chargingEnabledUntil, minimumChargeCurrent, maximumChargeCurrent }: EnergyEvse.EnableChargingRequest): MaybePromise;
|
|
59
|
-
}
|
|
60
|
-
export declare class MatterbridgeEnergyEvseModeServer extends EnergyEvseModeServer {
|
|
61
|
-
changeToMode({ newMode }: ModeBase.ChangeToModeRequest): MaybePromise<ModeBase.ChangeToModeResponse>;
|
|
62
|
-
}
|
|
63
|
-
//# 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":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAG3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAIjE,qBAAa,IAAK,SAAQ,oBAAoB;IAC5C;;;;;;;;OAQG;gBACS,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,cAAc,CAAC,UAAU,EAAE,EAAE,KAAK,CAAC,EAAE,UAAU,CAAC,KAAK,EAAE,WAAW,CAAC,EAAE,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,UAAU,CAAC,UAAU;IAchN;;;OAGG;IACH,oCAAoC,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,KAAK,EAAE,WAAW,CAAC,EAAE,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,UAAU,CAAC,UAAU,GAAG,IAAI;IAgB9I;;;;;;;OAOG;IACH,wCAAwC,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,cAA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