matterbridge 3.1.5 → 3.1.6-dev-20250721-75fab6b
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/dist/cli.js +2 -91
- package/dist/cliEmitter.js +0 -30
- package/dist/clusters/export.js +0 -2
- package/dist/defaultConfigSchema.js +0 -24
- package/dist/deviceManager.js +1 -94
- package/dist/devices/batteryStorage.js +1 -48
- package/dist/devices/dishwasher.js +90 -0
- package/dist/devices/evse.js +10 -74
- package/dist/devices/export.js +2 -2
- package/dist/devices/extractorHood.js +35 -0
- package/dist/devices/heatPump.js +2 -50
- package/dist/devices/laundryDryer.js +6 -83
- package/dist/devices/laundryWasher.js +7 -91
- package/dist/devices/roboticVacuumCleaner.js +7 -93
- package/dist/devices/solarPower.js +0 -38
- package/dist/devices/waterHeater.js +2 -82
- package/dist/frontend.js +21 -429
- package/dist/globalMatterbridge.js +0 -47
- package/dist/helpers.js +0 -53
- package/dist/index.js +1 -30
- 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 +79 -802
- package/dist/matterbridgeAccessoryPlatform.js +0 -36
- package/dist/matterbridgeBehaviors.js +24 -61
- package/dist/matterbridgeDeviceTypes.js +15 -579
- package/dist/matterbridgeDynamicPlatform.js +0 -36
- package/dist/matterbridgeEndpoint.js +64 -1113
- package/dist/matterbridgeEndpointHelpers.js +12 -322
- package/dist/matterbridgePlatform.js +0 -233
- package/dist/matterbridgeTypes.js +0 -25
- package/dist/pluginManager.js +3 -249
- 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/error.js +0 -41
- 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 -81
- package/dist/utils/spawn.js +0 -40
- package/dist/utils/wait.js +9 -62
- package/npm-shrinkwrap.json +9 -9
- package/package.json +2 -3
- package/dist/cli.d.ts +0 -26
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/cliEmitter.d.ts +0 -34
- package/dist/cliEmitter.d.ts.map +0 -1
- package/dist/cliEmitter.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/batteryStorage.d.ts +0 -48
- package/dist/devices/batteryStorage.d.ts.map +0 -1
- package/dist/devices/batteryStorage.js.map +0 -1
- package/dist/devices/evse.d.ts +0 -75
- package/dist/devices/evse.d.ts.map +0 -1
- package/dist/devices/evse.js.map +0 -1
- package/dist/devices/export.d.ts +0 -9
- package/dist/devices/export.d.ts.map +0 -1
- package/dist/devices/export.js.map +0 -1
- package/dist/devices/heatPump.d.ts +0 -47
- package/dist/devices/heatPump.d.ts.map +0 -1
- package/dist/devices/heatPump.js.map +0 -1
- package/dist/devices/laundryDryer.d.ts +0 -87
- package/dist/devices/laundryDryer.d.ts.map +0 -1
- package/dist/devices/laundryDryer.js.map +0 -1
- package/dist/devices/laundryWasher.d.ts +0 -242
- package/dist/devices/laundryWasher.d.ts.map +0 -1
- package/dist/devices/laundryWasher.js.map +0 -1
- package/dist/devices/roboticVacuumCleaner.d.ts +0 -112
- package/dist/devices/roboticVacuumCleaner.d.ts.map +0 -1
- package/dist/devices/roboticVacuumCleaner.js.map +0 -1
- package/dist/devices/solarPower.d.ts +0 -40
- package/dist/devices/solarPower.d.ts.map +0 -1
- package/dist/devices/solarPower.js.map +0 -1
- package/dist/devices/waterHeater.d.ts +0 -111
- package/dist/devices/waterHeater.d.ts.map +0 -1
- package/dist/devices/waterHeater.js.map +0 -1
- package/dist/frontend.d.ts +0 -304
- 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 -33
- 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/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 -447
- 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 -1340
- 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 -1250
- 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 -195
- package/dist/matterbridgeTypes.d.ts.map +0 -1
- package/dist/matterbridgeTypes.js.map +0 -1
- package/dist/pluginManager.d.ts +0 -270
- package/dist/pluginManager.d.ts.map +0 -1
- package/dist/pluginManager.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/error.d.ts +0 -44
- package/dist/utils/error.d.ts.map +0 -1
- package/dist/utils/error.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 -74
- package/dist/utils/network.d.ts.map +0 -1
- package/dist/utils/network.js.map +0 -1
- package/dist/utils/spawn.d.ts +0 -33
- 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
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description This file contains the RoboticVacuumCleaner class.
|
|
3
|
-
* @file src/devices/roboticVacuumCleaner.ts
|
|
4
|
-
* @author Luca Liguori
|
|
5
|
-
* @created 2025-05-01
|
|
6
|
-
* @version 1.1.0
|
|
7
|
-
* @license Apache-2.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
|
-
import { MaybePromise } from '@matter/main';
|
|
24
|
-
import { RvcRunModeServer } from '@matter/main/behaviors/rvc-run-mode';
|
|
25
|
-
import { RvcOperationalStateServer } from '@matter/main/behaviors/rvc-operational-state';
|
|
26
|
-
import { RvcCleanModeServer } from '@matter/main/behaviors/rvc-clean-mode';
|
|
27
|
-
import { RvcRunMode } from '@matter/main/clusters/rvc-run-mode';
|
|
28
|
-
import { RvcCleanMode } from '@matter/main/clusters/rvc-clean-mode';
|
|
29
|
-
import { RvcOperationalState } from '@matter/main/clusters/rvc-operational-state';
|
|
30
|
-
import { ServiceArea } from '@matter/main/clusters/service-area';
|
|
31
|
-
import { ModeBase } from '@matter/main/clusters/mode-base';
|
|
32
|
-
import { OperationalState } from '@matter/main/clusters/operational-state';
|
|
33
|
-
import { MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
|
|
34
|
-
export declare class RoboticVacuumCleaner extends MatterbridgeEndpoint {
|
|
35
|
-
/**
|
|
36
|
-
* Creates an instance of the RoboticVacuumCleaner class.
|
|
37
|
-
*
|
|
38
|
-
* @param {string} name - The name of the robotic vacuum cleaner.
|
|
39
|
-
* @param {string} serial - The serial number of the robotic vacuum cleaner.
|
|
40
|
-
* @param {'server' | 'matter' | undefined} [mode] - The mode of the robotic vacuum cleaner. Defaults to undefined. Use 'server' or 'matter' if you want Apple Home compatibility.
|
|
41
|
-
* @param {number} [currentRunMode] - The current run mode of the robotic vacuum cleaner. Defaults to 1 (Idle).
|
|
42
|
-
* @param {RvcRunMode.ModeOption[]} [supportedRunModes] - The supported run modes for the robotic vacuum cleaner. Defaults to a predefined set of modes.
|
|
43
|
-
* @param {number} [currentCleanMode] - The current clean mode of the robotic vacuum cleaner. Defaults to 1 (Vacuum).
|
|
44
|
-
* @param {RvcCleanMode.ModeOption[]} [supportedCleanModes] - The supported clean modes for the robotic vacuum cleaner. Defaults to a predefined set of modes.
|
|
45
|
-
* @param {number | null} [currentPhase] - The current phase of the robotic vacuum cleaner. Defaults to null.
|
|
46
|
-
* @param {string[] | null} [phaseList] - The list of phases for the robotic vacuum cleaner. Defaults to null.
|
|
47
|
-
* @param {RvcOperationalState.OperationalState} [operationalState] - The current operational state of the robotic vacuum cleaner. Defaults to Docked.
|
|
48
|
-
* @param {RvcOperationalState.OperationalStateStruct[]} [operationalStateList] - The list of operational states for the robotic vacuum cleaner. Defaults to a predefined set of states.
|
|
49
|
-
* @param {ServiceArea.Area[]} [supportedAreas] - The supported areas for the robotic vacuum cleaner. Defaults to a predefined set of areas.
|
|
50
|
-
* @param {number[]} [selectedAreas] - The selected areas for the robotic vacuum cleaner. Defaults to an empty array (all areas allowed).
|
|
51
|
-
* @param {number} [currentArea] - The current area of the robotic vacuum cleaner. Defaults to 1 (Living).
|
|
52
|
-
* @param {ServiceArea.Map[]} [supportedMaps] - The supported maps for the robotic vacuum cleaner. Defaults to empty list.
|
|
53
|
-
*/
|
|
54
|
-
constructor(name: string, serial: string, mode?: 'server' | 'matter' | undefined, currentRunMode?: number, supportedRunModes?: RvcRunMode.ModeOption[], currentCleanMode?: number, supportedCleanModes?: RvcCleanMode.ModeOption[], currentPhase?: number | null, phaseList?: string[] | null, operationalState?: RvcOperationalState.OperationalState, operationalStateList?: RvcOperationalState.OperationalStateStruct[], supportedAreas?: ServiceArea.Area[], selectedAreas?: number[], currentArea?: number, supportedMaps?: ServiceArea.Map[]);
|
|
55
|
-
/**
|
|
56
|
-
* Creates a default RvcRunMode Cluster Server.
|
|
57
|
-
*
|
|
58
|
-
* @param {number} [currentMode] - The current mode of the RvcRunMode cluster. Defaults to 1 (Idle).
|
|
59
|
-
* @param {RvcRunMode.ModeOption[]} [supportedModes] - The supported modes for the RvcRunMode cluster. Defaults to a predefined set of modes.
|
|
60
|
-
*
|
|
61
|
-
* @returns {this} The current MatterbridgeEndpoint instance for chaining.
|
|
62
|
-
*
|
|
63
|
-
* @remarks
|
|
64
|
-
* - supportedModes is a fixed attribute that defines the run modes available for the robotic vacuum cleaner.
|
|
65
|
-
*/
|
|
66
|
-
createDefaultRvcRunModeClusterServer(currentMode?: number, supportedModes?: RvcRunMode.ModeOption[]): this;
|
|
67
|
-
/**
|
|
68
|
-
* Creates a default RvcCleanMode Cluster Server.
|
|
69
|
-
*
|
|
70
|
-
* @param {number} [currentMode] - The current mode of the RvcCleanMode cluster. Defaults to 1 (Vacuum).
|
|
71
|
-
* @param {RvcCleanMode.ModeOption[]} [supportedModes] - The supported modes for the RvcCleanMode cluster. Defaults to a predefined set of modes.
|
|
72
|
-
*
|
|
73
|
-
* @returns {this} The current MatterbridgeEndpoint instance for chaining.
|
|
74
|
-
*
|
|
75
|
-
* @remarks
|
|
76
|
-
* - supportedModes is a fixed attribute that defines the clean modes available for the robotic vacuum cleaner.
|
|
77
|
-
*/
|
|
78
|
-
createDefaultRvcCleanModeClusterServer(currentMode?: number, supportedModes?: RvcCleanMode.ModeOption[]): this;
|
|
79
|
-
/**
|
|
80
|
-
* Creates a default ServiceArea Cluster Server.
|
|
81
|
-
*
|
|
82
|
-
* @param {ServiceArea.Area[]} [supportedAreas] - The supported areas for the ServiceArea cluster. Defaults to a predefined set of areas.
|
|
83
|
-
* @param {number[]} [selectedAreas] - The selected areas for the ServiceArea cluster. Defaults to an empty array (all areas allowed).
|
|
84
|
-
* @param {number} [currentArea] - The current areaId (not the index in the array!) of the ServiceArea cluster. Defaults to 1 (Living).
|
|
85
|
-
* @param {ServiceArea.Map[]} [supportedMaps] - The supported maps for the robotic vacuum cleaner. Defaults empty list.
|
|
86
|
-
* @returns {this} The current MatterbridgeEndpoint instance for chaining.
|
|
87
|
-
*/
|
|
88
|
-
createDefaultServiceAreaClusterServer(supportedAreas?: ServiceArea.Area[], selectedAreas?: number[], currentArea?: number, supportedMaps?: ServiceArea.Map[]): this;
|
|
89
|
-
/**
|
|
90
|
-
* Creates a default RvcOperationalState Cluster Server.
|
|
91
|
-
*
|
|
92
|
-
* @param {string[] | null} [phaseList] - The list of phases for the RvcOperationalState cluster. Defaults to null.
|
|
93
|
-
* @param {number | null} [currentPhase] - The current phase (the index of the phaseList) of the RvcOperationalState cluster. Defaults to null.
|
|
94
|
-
* @param {RvcOperationalState.OperationalStateStruct[]} [operationalStateList] - The list of operational states for the RvcOperationalState cluster. Defaults to a predefined set of states.
|
|
95
|
-
* @param {RvcOperationalState.OperationalState} [operationalState] - The current operationalStateId of the RvcOperationalState cluster. Defaults to Docked.
|
|
96
|
-
* @param {RvcOperationalState.ErrorStateStruct} [operationalError] - The current operational error of the RvcOperationalState cluster. Defaults to NoError.
|
|
97
|
-
* @returns {this} The current MatterbridgeEndpoint instance for chaining.
|
|
98
|
-
*/
|
|
99
|
-
createDefaultRvcOperationalStateClusterServer(phaseList?: string[] | null, currentPhase?: number | null, operationalStateList?: RvcOperationalState.OperationalStateStruct[], operationalState?: RvcOperationalState.OperationalState, operationalError?: RvcOperationalState.ErrorStateStruct): this;
|
|
100
|
-
}
|
|
101
|
-
export declare class MatterbridgeRvcRunModeServer extends RvcRunModeServer {
|
|
102
|
-
changeToMode(request: ModeBase.ChangeToModeRequest): MaybePromise<ModeBase.ChangeToModeResponse>;
|
|
103
|
-
}
|
|
104
|
-
export declare class MatterbridgeRvcCleanModeServer extends RvcCleanModeServer {
|
|
105
|
-
changeToMode(request: ModeBase.ChangeToModeRequest): MaybePromise<ModeBase.ChangeToModeResponse>;
|
|
106
|
-
}
|
|
107
|
-
export declare class MatterbridgeRvcOperationalStateServer extends RvcOperationalStateServer {
|
|
108
|
-
pause(): MaybePromise<OperationalState.OperationalCommandResponse>;
|
|
109
|
-
resume(): MaybePromise<OperationalState.OperationalCommandResponse>;
|
|
110
|
-
goHome(): MaybePromise<OperationalState.OperationalCommandResponse>;
|
|
111
|
-
}
|
|
112
|
-
//# sourceMappingURL=roboticVacuumCleaner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"roboticVacuumCleaner.d.ts","sourceRoot":"","sources":["../../src/devices/roboticVacuumCleaner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,EAAoB,YAAY,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAE3E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAG3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAIlE,qBAAa,oBAAqB,SAAQ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5
|
-
* @contributor Ludovic BOUÉ
|
|
6
|
-
* @created 2025-06-14
|
|
7
|
-
* @version 1.0.0
|
|
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
|
-
import { MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
|
|
25
|
-
export declare class SolarPower extends MatterbridgeEndpoint {
|
|
26
|
-
/**
|
|
27
|
-
* Creates an instance of the SolarPower class.
|
|
28
|
-
*
|
|
29
|
-
* @param {string} name - The name of the SolarPower.
|
|
30
|
-
* @param {string} serial - The serial number of the SolarPower.
|
|
31
|
-
* @param {number} voltage - The voltage value in millivolts.
|
|
32
|
-
* @param {number} current - The current value in milliamperes.
|
|
33
|
-
* @param {number} power - The power value in milliwatts.
|
|
34
|
-
* @param {number} energyExported - The total production value in mW/h.
|
|
35
|
-
* @param {number} [absMinPower] - Indicate the minimum electrical power in mw that the ESA can consume when switched on. Defaults to `0` if not provided.
|
|
36
|
-
* @param {number} [absMaxPower] - Indicate the maximum electrical power in mw that the ESA can consume when switched on. Defaults to `0` if not provided.
|
|
37
|
-
*/
|
|
38
|
-
constructor(name: string, serial: string, voltage?: number | bigint | null, current?: number | bigint | null, power?: number | bigint | null, energyExported?: number | bigint | null, absMinPower?: number, absMaxPower?: number);
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=solarPower.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solarPower.d.ts","sourceRoot":"","sources":["../../src/devices/solarPower.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAOH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAGlE,qBAAa,UAAW,SAAQ,oBAAoB;IAClD;;;;;;;;;;;OAWG;gBAED,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,MAAM,GAAG,MAAM,GAAG,IAAW,EACtC,OAAO,GAAE,MAAM,GAAG,MAAM,GAAG,IAAW,EACtC,KAAK,GAAE,MAAM,GAAG,MAAM,GAAG,IAAW,EACpC,cAAc,GAAE,MAAM,GAAG,MAAM,GAAG,IAAW,EAC7C,WAAW,GAAE,MAAU,EACvB,WAAW,GAAE,MAAU;CAoB1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solarPower.js","sourceRoot":"","sources":["../../src/devices/solarPower.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,UAAU;AACV,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AAExF,eAAe;AACf,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAElH,MAAM,OAAO,UAAW,SAAQ,oBAAoB;IAClD;;;;;;;;;;;OAWG;IACH,YACE,IAAY,EACZ,MAAc,EACd,UAAkC,IAAI,EACtC,UAAkC,IAAI,EACtC,QAAgC,IAAI,EACpC,iBAAyC,IAAI,EAC7C,cAAsB,CAAC,EACvB,cAAsB,CAAC;QAEvB,KAAK,CACH,CAAC,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,sBAAsB,CAAC,EACnE;YACE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,cAAc,CAAC,KAAK,CAAC,WAAW,EAAE,GAAG,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;YACvH,EAAE,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE;SAChE,EACD,IAAI,CACL,CAAC;QACF,IAAI,CAAC,kCAAkC,EAAE;aACtC,0CAA0C,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,0BAA0B,CAAC;aACpH,0CAA0C,EAAE;aAC5C,uCAAuC,EAAE;aACzC,oDAAoD,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC;aAC7E,qDAAqD,CAAC,CAAC,EAAE,cAAc,CAAC;aACxE,gDAAgD,CAAC,sBAAsB,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,sBAAsB,CAAC,QAAQ,CAAC,MAAM,EAAE,WAAW,EAAE,WAAW,CAAC;aAChK,oDAAoD,EAAE;aACtD,yBAAyB,EAAE,CAAC;IACjC,CAAC;CACF"}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description This file contains the WaterHeater class.
|
|
3
|
-
* @file src/devices/waterHeater.ts
|
|
4
|
-
* @author Luca Liguori
|
|
5
|
-
* @contributor Ludovic BOUÉ
|
|
6
|
-
* @created 2025-05-18
|
|
7
|
-
* @version 1.1.0
|
|
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
|
-
import { MaybePromise } from '@matter/main';
|
|
25
|
-
import { ModeBase } from '@matter/main/clusters/mode-base';
|
|
26
|
-
import { WaterHeaterManagement } from '@matter/main/clusters/water-heater-management';
|
|
27
|
-
import { WaterHeaterMode } from '@matter/main/clusters/water-heater-mode';
|
|
28
|
-
import { WaterHeaterManagementServer } from '@matter/main/behaviors/water-heater-management';
|
|
29
|
-
import { WaterHeaterModeServer } from '@matter/main/behaviors/water-heater-mode';
|
|
30
|
-
import { MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
|
|
31
|
-
export declare class WaterHeater extends MatterbridgeEndpoint {
|
|
32
|
-
/**
|
|
33
|
-
* Creates an instance of the WaterHeater class.
|
|
34
|
-
*
|
|
35
|
-
* @param {string} name - The name of the water heater.
|
|
36
|
-
* @param {string} serial - The serial number of the water heater.
|
|
37
|
-
* @param {number} [waterTemperature] - The current water temperature. Defaults to 50.
|
|
38
|
-
* @param {number} [targetWaterTemperature] - The target water temperature. Defaults to 55.
|
|
39
|
-
* @param {number} [minHeatSetpointLimit] - The minimum heat setpoint limit. Defaults to 20.
|
|
40
|
-
* @param {number} [maxHeatSetpointLimit] - The maximum heat setpoint limit. Defaults to 80.
|
|
41
|
-
* @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 }.
|
|
42
|
-
* @param {boolean} heaterTypes.immersionElement1 - Indicates if the water heater has an immersion element 1. Defaults to true.
|
|
43
|
-
* @param {boolean} heaterTypes.immersionElement2 - Indicates if the water heater has an immersion element 2.
|
|
44
|
-
* @param {boolean} heaterTypes.heatPump - Indicates if the water heater has a heat pump.
|
|
45
|
-
* @param {boolean} heaterTypes.boiler - Indicates if the water heater has a boiler.
|
|
46
|
-
* @param {boolean} heaterTypes.other - Indicates if the water heater has other types of heating sources.
|
|
47
|
-
* @param {number} [tankPercentage] - The current tank percentage of the WaterHeaterManagement cluster. Defaults to 90.
|
|
48
|
-
* @param {number} [voltage] - The voltage value in millivolts. Defaults to null if not provided.
|
|
49
|
-
* @param {number} [current] - The current value in milliamperes. Defaults to null if not provided.
|
|
50
|
-
* @param {number} [power] - The power value in milliwatts. Defaults to null if not provided.
|
|
51
|
-
* @param {number} [energy] - The total consumption value in mW/h. Defaults to null if not provided.
|
|
52
|
-
* @param {number} [absMinPower] - Indicate the minimum electrical power in mw that the ESA can consume when switched on. Defaults to `0` if not provided.
|
|
53
|
-
* @param {number} [absMaxPower] - Indicate the maximum electrical power in mw that the ESA can consume when switched on. Defaults to `0` if not provided.
|
|
54
|
-
*/
|
|
55
|
-
constructor(name: string, serial: string, waterTemperature?: number, targetWaterTemperature?: number, minHeatSetpointLimit?: number, maxHeatSetpointLimit?: number, heaterTypes?: {
|
|
56
|
-
immersionElement1?: boolean;
|
|
57
|
-
immersionElement2?: boolean;
|
|
58
|
-
heatPump?: boolean;
|
|
59
|
-
boiler?: boolean;
|
|
60
|
-
other?: boolean;
|
|
61
|
-
}, tankPercentage?: number, voltage?: number | bigint | null, current?: number | bigint | null, power?: number | bigint | null, energy?: number | bigint | null, absMinPower?: number, absMaxPower?: number);
|
|
62
|
-
/**
|
|
63
|
-
* Creates a default WaterHeaterManagement Cluster Server.
|
|
64
|
-
*
|
|
65
|
-
* @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 }.
|
|
66
|
-
* @param {boolean} heaterTypes.immersionElement1 - Indicates if the water heater has an immersion element 1. Defaults to true.
|
|
67
|
-
* @param {boolean} heaterTypes.immersionElement2 - Indicates if the water heater has an immersion element 2.
|
|
68
|
-
* @param {boolean} heaterTypes.heatPump - Indicates if the water heater has a heat pump.
|
|
69
|
-
* @param {boolean} heaterTypes.boiler - Indicates if the water heater has a boiler.
|
|
70
|
-
* @param {boolean} heaterTypes.other - Indicates if the water heater has other types of heating sources.
|
|
71
|
-
* @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.
|
|
72
|
-
* @param {boolean} heatDemand.immersionElement1 - Indicates if the water heater is heating water with immersion element 1. Defaults to false.
|
|
73
|
-
* @param {boolean} heatDemand.immersionElement2 - Indicates if the water heater is heating water with immersion element 2.
|
|
74
|
-
* @param {boolean} heatDemand.heatPump - Indicates if the water heater is heating water with a heat pump.
|
|
75
|
-
* @param {boolean} heatDemand.boiler - Indicates if the water heater is heating water with a boiler.
|
|
76
|
-
* @param {boolean} heatDemand.other - Indicates if the water heater is heating water with other types of heating sources.
|
|
77
|
-
* @param {number} [tankPercentage] - The current tank percentage of the WaterHeaterManagement cluster. Defaults to 100.
|
|
78
|
-
* @param {WaterHeaterManagement.BoostState} [boostState] - The current boost state of the WaterHeaterManagement cluster. Defaults to Inactive.
|
|
79
|
-
* @returns {this} The current MatterbridgeEndpoint instance for chaining.
|
|
80
|
-
*/
|
|
81
|
-
createDefaultWaterHeaterManagementClusterServer(heaterTypes?: {
|
|
82
|
-
immersionElement1?: boolean;
|
|
83
|
-
immersionElement2?: boolean;
|
|
84
|
-
heatPump?: boolean;
|
|
85
|
-
boiler?: boolean;
|
|
86
|
-
other?: boolean;
|
|
87
|
-
}, heatDemand?: {
|
|
88
|
-
immersionElement1?: boolean;
|
|
89
|
-
immersionElement2?: boolean;
|
|
90
|
-
heatPump?: boolean;
|
|
91
|
-
boiler?: boolean;
|
|
92
|
-
other?: boolean;
|
|
93
|
-
}, tankPercentage?: number, boostState?: WaterHeaterManagement.BoostState): this;
|
|
94
|
-
/**
|
|
95
|
-
* Creates a default WaterHeaterMode Cluster Server.
|
|
96
|
-
*
|
|
97
|
-
* @param {number} [currentMode] - The current mode of the WaterHeaterMode cluster. Defaults to mode 1 (WaterHeaterMode.ModeTag.Auto).
|
|
98
|
-
* @param {WaterHeaterMode.ModeOption[]} [supportedModes] - The supported modes for the WaterHeaterMode cluster. Defaults all cluster modes.
|
|
99
|
-
*
|
|
100
|
-
* @returns {this} The current MatterbridgeEndpoint instance for chaining.
|
|
101
|
-
*/
|
|
102
|
-
createDefaultWaterHeaterModeClusterServer(currentMode?: number, supportedModes?: WaterHeaterMode.ModeOption[]): this;
|
|
103
|
-
}
|
|
104
|
-
export declare class MatterbridgeWaterHeaterManagementServer extends WaterHeaterManagementServer {
|
|
105
|
-
boost(request: WaterHeaterManagement.BoostRequest): MaybePromise;
|
|
106
|
-
cancelBoost(): MaybePromise;
|
|
107
|
-
}
|
|
108
|
-
export declare class MatterbridgeWaterHeaterModeServer extends WaterHeaterModeServer {
|
|
109
|
-
changeToMode(request: ModeBase.ChangeToModeRequest): MaybePromise<ModeBase.ChangeToModeResponse>;
|
|
110
|
-
}
|
|
111
|
-
//# sourceMappingURL=waterHeater.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"waterHeater.d.ts","sourceRoot":"","sources":["../../src/devices/waterHeater.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAKH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,O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EAAE,UAAU,EAAE,kBAAkB,EAAE,CAAC;QAC/F,CAAC;QACD,IAAI,CAAC,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;QACzC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,sEAAsE,OAAO,CAAC,OAAO,OAAO,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC;QAChI,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,gBAAgB,CAAC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC;IAC9E,CAAC;CACF"}
|
package/dist/frontend.d.ts
DELETED
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the class Frontend.
|
|
3
|
-
*
|
|
4
|
-
* @file frontend.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @created 2025-01-13
|
|
7
|
-
* @version 1.2.0
|
|
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
|
-
import EventEmitter from 'node:events';
|
|
25
|
-
import { LogLevel } from 'node-ansi-logger';
|
|
26
|
-
import { Matterbridge } from './matterbridge.js';
|
|
27
|
-
/**
|
|
28
|
-
* Websocket message ID for logging.
|
|
29
|
-
*
|
|
30
|
-
* @constant {number}
|
|
31
|
-
*/
|
|
32
|
-
export declare const WS_ID_LOG = 0;
|
|
33
|
-
/**
|
|
34
|
-
* Websocket message ID indicating a refresh is needed.
|
|
35
|
-
*
|
|
36
|
-
* @constant {number}
|
|
37
|
-
*/
|
|
38
|
-
export declare const WS_ID_REFRESH_NEEDED = 1;
|
|
39
|
-
/**
|
|
40
|
-
* Websocket message ID indicating a restart is needed.
|
|
41
|
-
*
|
|
42
|
-
* @constant {number}
|
|
43
|
-
*/
|
|
44
|
-
export declare const WS_ID_RESTART_NEEDED = 2;
|
|
45
|
-
/**
|
|
46
|
-
* Websocket message ID indicating a cpu update.
|
|
47
|
-
*
|
|
48
|
-
* @constant {number}
|
|
49
|
-
*/
|
|
50
|
-
export declare const WS_ID_CPU_UPDATE = 3;
|
|
51
|
-
/**
|
|
52
|
-
* Websocket message ID indicating a memory update.
|
|
53
|
-
*
|
|
54
|
-
* @constant {number}
|
|
55
|
-
*/
|
|
56
|
-
export declare const WS_ID_MEMORY_UPDATE = 4;
|
|
57
|
-
/**
|
|
58
|
-
* Websocket message ID indicating an uptime update.
|
|
59
|
-
*
|
|
60
|
-
* @constant {number}
|
|
61
|
-
*/
|
|
62
|
-
export declare const WS_ID_UPTIME_UPDATE = 5;
|
|
63
|
-
/**
|
|
64
|
-
* Websocket message ID indicating a snackbar message.
|
|
65
|
-
*
|
|
66
|
-
* @constant {number}
|
|
67
|
-
*/
|
|
68
|
-
export declare const WS_ID_SNACKBAR = 6;
|
|
69
|
-
/**
|
|
70
|
-
* Websocket message ID indicating matterbridge has un update available.
|
|
71
|
-
*
|
|
72
|
-
* @constant {number}
|
|
73
|
-
*/
|
|
74
|
-
export declare const WS_ID_UPDATE_NEEDED = 7;
|
|
75
|
-
/**
|
|
76
|
-
* Websocket message ID indicating a state update.
|
|
77
|
-
*
|
|
78
|
-
* @constant {number}
|
|
79
|
-
*/
|
|
80
|
-
export declare const WS_ID_STATEUPDATE = 8;
|
|
81
|
-
/**
|
|
82
|
-
* Websocket message ID indicating to close a permanent snackbar message.
|
|
83
|
-
*
|
|
84
|
-
* @constant {number}
|
|
85
|
-
*/
|
|
86
|
-
export declare const WS_ID_CLOSE_SNACKBAR = 9;
|
|
87
|
-
/**
|
|
88
|
-
* Websocket message ID indicating a shelly system update.
|
|
89
|
-
* check:
|
|
90
|
-
* curl -k http://127.0.0.1:8101/api/updates/sys/check
|
|
91
|
-
* perform:
|
|
92
|
-
* curl -k http://127.0.0.1:8101/api/updates/sys/perform
|
|
93
|
-
*
|
|
94
|
-
* @constant {number}
|
|
95
|
-
*/
|
|
96
|
-
export declare const WS_ID_SHELLY_SYS_UPDATE = 100;
|
|
97
|
-
/**
|
|
98
|
-
* Websocket message ID indicating a shelly main update.
|
|
99
|
-
* check:
|
|
100
|
-
* curl -k http://127.0.0.1:8101/api/updates/main/check
|
|
101
|
-
* perform:
|
|
102
|
-
* curl -k http://127.0.0.1:8101/api/updates/main/perform
|
|
103
|
-
*
|
|
104
|
-
* @constant {number}
|
|
105
|
-
*/
|
|
106
|
-
export declare const WS_ID_SHELLY_MAIN_UPDATE = 101;
|
|
107
|
-
/**
|
|
108
|
-
* Represents the Matterbridge events.
|
|
109
|
-
*/
|
|
110
|
-
interface FrontendEvents {
|
|
111
|
-
server_listening: [protocol: string, port: number, address?: string];
|
|
112
|
-
server_error: [error: Error];
|
|
113
|
-
server_stopped: [];
|
|
114
|
-
websocket_server_listening: [host: string];
|
|
115
|
-
websocket_server_stopped: [];
|
|
116
|
-
}
|
|
117
|
-
export declare class Frontend extends EventEmitter<FrontendEvents> {
|
|
118
|
-
private matterbridge;
|
|
119
|
-
private log;
|
|
120
|
-
private port;
|
|
121
|
-
private expressApp;
|
|
122
|
-
private httpServer;
|
|
123
|
-
private httpsServer;
|
|
124
|
-
private webSocketServer;
|
|
125
|
-
constructor(matterbridge: Matterbridge);
|
|
126
|
-
set logLevel(logLevel: LogLevel);
|
|
127
|
-
start(port?: number): Promise<void>;
|
|
128
|
-
stop(): Promise<void>;
|
|
129
|
-
private formatMemoryUsage;
|
|
130
|
-
private formatOsUpTime;
|
|
131
|
-
/**
|
|
132
|
-
* Retrieves the api settings data.
|
|
133
|
-
*
|
|
134
|
-
* @returns {Promise<{ matterbridgeInformation: MatterbridgeInformation, systemInformation: SystemInformation }>} A promise that resolve in the api settings object.
|
|
135
|
-
*/
|
|
136
|
-
private getApiSettings;
|
|
137
|
-
/**
|
|
138
|
-
* Retrieves the reachable attribute.
|
|
139
|
-
*
|
|
140
|
-
* @param {MatterbridgeEndpoint} device - The MatterbridgeEndpoint object.
|
|
141
|
-
* @returns {boolean} The reachable attribute.
|
|
142
|
-
*/
|
|
143
|
-
private getReachability;
|
|
144
|
-
/**
|
|
145
|
-
* Retrieves the power source attribute.
|
|
146
|
-
*
|
|
147
|
-
* @param {MatterbridgeEndpoint} endpoint - The MatterbridgeDevice to retrieve the power source from.
|
|
148
|
-
* @returns {'ac' | 'dc' | 'ok' | 'warning' | 'critical' | undefined} The power source attribute.
|
|
149
|
-
*/
|
|
150
|
-
private getPowerSource;
|
|
151
|
-
/**
|
|
152
|
-
* Retrieves the commissioned status, matter pairing codes, fabrics and sessions from a given device in server mode.
|
|
153
|
-
*
|
|
154
|
-
* @param {MatterbridgeEndpoint} device - The MatterbridgeEndpoint to retrieve the data from.
|
|
155
|
-
* @returns {ApiDevicesMatter | undefined} An ApiDevicesMatter object or undefined if not found.
|
|
156
|
-
*/
|
|
157
|
-
private getMatterDataFromDevice;
|
|
158
|
-
/**
|
|
159
|
-
* Retrieves the cluster text description from a given device.
|
|
160
|
-
* The output is a string with the attributes description of the cluster servers in the device to show in the frontend.
|
|
161
|
-
*
|
|
162
|
-
* @param {MatterbridgeEndpoint} device - The MatterbridgeEndpoint to retrieve the cluster text from.
|
|
163
|
-
* @returns {string} The attributes description of the cluster servers in the device.
|
|
164
|
-
*/
|
|
165
|
-
private getClusterTextFromDevice;
|
|
166
|
-
/**
|
|
167
|
-
* Retrieves the base registered plugins sanitized for res.json().
|
|
168
|
-
*
|
|
169
|
-
* @returns {BaseRegisteredPlugin[]} An array of BaseRegisteredPlugin.
|
|
170
|
-
*/
|
|
171
|
-
private getBaseRegisteredPlugins;
|
|
172
|
-
/**
|
|
173
|
-
* Retrieves the devices from Matterbridge.
|
|
174
|
-
*
|
|
175
|
-
* @param {string} [pluginName] - The name of the plugin to filter devices by.
|
|
176
|
-
* @returns {Promise<ApiDevices[]>} A promise that resolves to an array of ApiDevices for the frontend.
|
|
177
|
-
*/
|
|
178
|
-
private getDevices;
|
|
179
|
-
/**
|
|
180
|
-
* Retrieves the clusters from a given plugin and endpoint number.
|
|
181
|
-
*
|
|
182
|
-
* Response for /api/clusters
|
|
183
|
-
*
|
|
184
|
-
* @param {string} pluginName - The name of the plugin.
|
|
185
|
-
* @param {number} endpointNumber - The endpoint number.
|
|
186
|
-
* @returns {ApiClustersResponse | undefined} A promise that resolves to the clusters or undefined if not found.
|
|
187
|
-
*/
|
|
188
|
-
private getClusters;
|
|
189
|
-
/**
|
|
190
|
-
* Handles incoming websocket messages for the Matterbridge frontend.
|
|
191
|
-
*
|
|
192
|
-
* @param {WebSocket} client - The websocket client that sent the message.
|
|
193
|
-
* @param {WebSocket.RawData} message - The raw data of the message received from the client.
|
|
194
|
-
* @returns {Promise<void>} A promise that resolves when the message has been handled.
|
|
195
|
-
*/
|
|
196
|
-
private wsMessageHandler;
|
|
197
|
-
/**
|
|
198
|
-
* Sends a WebSocket log message to all connected clients. The function is called by AnsiLogger.setGlobalCallback.
|
|
199
|
-
*
|
|
200
|
-
* @param {string} level - The logger level of the message: debug info notice warn error fatal...
|
|
201
|
-
* @param {string} time - The time string of the message
|
|
202
|
-
* @param {string} name - The logger name of the message
|
|
203
|
-
* @param {string} message - The content of the message.
|
|
204
|
-
*
|
|
205
|
-
* @remarks
|
|
206
|
-
* The function removes ANSI escape codes, leading asterisks, non-printable characters, and replaces all occurrences of \t and \n.
|
|
207
|
-
* It also replaces all occurrences of \" with " and angle-brackets with < and >.
|
|
208
|
-
* The function sends the message to all connected clients.
|
|
209
|
-
*/
|
|
210
|
-
wssSendMessage(level: string, time: string, name: string, message: string): void;
|
|
211
|
-
/**
|
|
212
|
-
* Sends a need to refresh WebSocket message to all connected clients.
|
|
213
|
-
*
|
|
214
|
-
* @param {string} changed - The changed value. If null, the whole page will be refreshed.
|
|
215
|
-
* possible values:
|
|
216
|
-
* - 'matterbridgeLatestVersion'
|
|
217
|
-
* - 'matterbridgeAdvertise'
|
|
218
|
-
* - 'online'
|
|
219
|
-
* - 'offline'
|
|
220
|
-
* - 'reachability'
|
|
221
|
-
* - 'settings'
|
|
222
|
-
* - 'plugins'
|
|
223
|
-
* - 'pluginsRestart'
|
|
224
|
-
* - 'devices'
|
|
225
|
-
* - 'fabrics'
|
|
226
|
-
* - 'sessions'
|
|
227
|
-
*/
|
|
228
|
-
wssSendRefreshRequired(changed?: string | null): void;
|
|
229
|
-
/**
|
|
230
|
-
* Sends a need to restart WebSocket message to all connected clients.
|
|
231
|
-
*
|
|
232
|
-
* @param {boolean} snackbar - If true, a snackbar message will be sent to all connected clients.
|
|
233
|
-
*/
|
|
234
|
-
wssSendRestartRequired(snackbar?: boolean): void;
|
|
235
|
-
/**
|
|
236
|
-
* Sends a need to update WebSocket message to all connected clients.
|
|
237
|
-
*
|
|
238
|
-
*/
|
|
239
|
-
wssSendUpdateRequired(): void;
|
|
240
|
-
/**
|
|
241
|
-
* Sends a cpu update message to all connected clients.
|
|
242
|
-
*
|
|
243
|
-
* @param {number} cpuUsage - The CPU usage percentage to send.
|
|
244
|
-
*/
|
|
245
|
-
wssSendCpuUpdate(cpuUsage: number): void;
|
|
246
|
-
/**
|
|
247
|
-
* Sends a memory update message to all connected clients.
|
|
248
|
-
*
|
|
249
|
-
* @param {string} totalMemory - The total memory in bytes.
|
|
250
|
-
* @param {string} freeMemory - The free memory in bytes.
|
|
251
|
-
* @param {string} rss - The resident set size in bytes.
|
|
252
|
-
* @param {string} heapTotal - The total heap memory in bytes.
|
|
253
|
-
* @param {string} heapUsed - The used heap memory in bytes.
|
|
254
|
-
* @param {string} external - The external memory in bytes.
|
|
255
|
-
* @param {string} arrayBuffers - The array buffers memory in bytes.
|
|
256
|
-
*/
|
|
257
|
-
wssSendMemoryUpdate(totalMemory: string, freeMemory: string, rss: string, heapTotal: string, heapUsed: string, external: string, arrayBuffers: string): void;
|
|
258
|
-
/**
|
|
259
|
-
* Sends an uptime update message to all connected clients.
|
|
260
|
-
*
|
|
261
|
-
* @param {string} systemUptime - The system uptime in a human-readable format.
|
|
262
|
-
* @param {string} processUptime - The process uptime in a human-readable format.
|
|
263
|
-
*/
|
|
264
|
-
wssSendUptimeUpdate(systemUptime: string, processUptime: string): void;
|
|
265
|
-
/**
|
|
266
|
-
* Sends an open snackbar message to all connected clients.
|
|
267
|
-
*
|
|
268
|
-
* @param {string} message - The message to send.
|
|
269
|
-
* @param {number} timeout - The timeout in seconds for the snackbar message.
|
|
270
|
-
* @param {'info' | 'warning' | 'error' | 'success'} severity - The severity of the snackbar message (default info).
|
|
271
|
-
*/
|
|
272
|
-
wssSendSnackbarMessage(message: string, timeout?: number, severity?: 'info' | 'warning' | 'error' | 'success'): void;
|
|
273
|
-
/**
|
|
274
|
-
* Sends a close snackbar message to all connected clients.
|
|
275
|
-
*
|
|
276
|
-
* @param {string} message - The message to send.
|
|
277
|
-
*/
|
|
278
|
-
wssSendCloseSnackbarMessage(message: string): void;
|
|
279
|
-
/**
|
|
280
|
-
* Sends an attribute update message to all connected WebSocket clients.
|
|
281
|
-
*
|
|
282
|
-
* @param {string | undefined} plugin - The name of the plugin.
|
|
283
|
-
* @param {string | undefined} serialNumber - The serial number of the device.
|
|
284
|
-
* @param {string | undefined} uniqueId - The unique identifier of the device.
|
|
285
|
-
* @param {string} cluster - The cluster name where the attribute belongs.
|
|
286
|
-
* @param {string} attribute - The name of the attribute that changed.
|
|
287
|
-
* @param {number | string | boolean} value - The new value of the attribute.
|
|
288
|
-
*
|
|
289
|
-
* @remarks
|
|
290
|
-
* This method logs a debug message and sends a JSON-formatted message to all connected WebSocket clients
|
|
291
|
-
* with the updated attribute information.
|
|
292
|
-
*/
|
|
293
|
-
wssSendAttributeChangedMessage(plugin: string | undefined, serialNumber: string | undefined, uniqueId: string | undefined, cluster: string, attribute: string, value: number | string | boolean): void;
|
|
294
|
-
/**
|
|
295
|
-
* Sends a message to all connected clients.
|
|
296
|
-
*
|
|
297
|
-
* @param {number} id - The message id.
|
|
298
|
-
* @param {string} method - The message method.
|
|
299
|
-
* @param {Record<string, string | number | boolean>} params - The message parameters.
|
|
300
|
-
*/
|
|
301
|
-
wssBroadcastMessage(id: number, method?: string, params?: Record<string, string | number | boolean>): void;
|
|
302
|
-
}
|
|
303
|
-
export {};
|
|
304
|
-
//# sourceMappingURL=frontend.d.ts.map
|
package/dist/frontend.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"frontend.d.ts","sourceRoot":"","sources":["../src/frontend.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAQH,OAAO,YAAY,MAAM,aAAa,CAAC;AAOvC,OAAO,EAAc,QAAQ,EAAyG,MAAM,kBAAkB,CAAC;AAQ/J,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAMjD;;;;GAIG;AACH,eAAO,MAAM,SAAS,IAAI,CAAC;AAE3B;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAEtC;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAEtC;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAElC;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC;;;;GAIG;AACH,eAAO,MAAM,cAAc,IAAI,CAAC;AAEhC;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC;;;;GAIG;AACH,eAAO,MA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