matterbridge 3.2.5 → 3.2.6-dev-20250903-6ab5022
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 +24 -0
- package/README.md +1 -43
- 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/cooktop.js +0 -55
- package/dist/devices/dishwasher.js +0 -57
- package/dist/devices/evse.js +10 -74
- package/dist/devices/export.js +0 -4
- package/dist/devices/extractorHood.js +0 -42
- package/dist/devices/heatPump.js +2 -50
- package/dist/devices/laundryDryer.js +3 -62
- package/dist/devices/laundryWasher.js +4 -70
- package/dist/devices/microwaveOven.js +5 -88
- package/dist/devices/oven.js +0 -85
- package/dist/devices/refrigerator.js +0 -102
- package/dist/devices/roboticVacuumCleaner.js +10 -96
- package/dist/devices/solarPower.js +0 -38
- package/dist/devices/temperatureControl.js +3 -25
- package/dist/devices/waterHeater.js +2 -82
- package/dist/dgram/coap.js +13 -126
- package/dist/dgram/dgram.js +2 -113
- package/dist/dgram/mb_coap.js +3 -41
- package/dist/dgram/mb_mdns.js +13 -51
- package/dist/dgram/mdns.js +137 -298
- package/dist/dgram/multicast.js +1 -60
- package/dist/dgram/unicast.js +0 -54
- package/dist/frontend.js +26 -451
- 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 +53 -789
- package/dist/matterbridgeAccessoryPlatform.js +0 -36
- package/dist/matterbridgeBehaviors.js +5 -65
- package/dist/matterbridgeDeviceTypes.js +17 -581
- package/dist/matterbridgeDynamicPlatform.js +0 -36
- package/dist/matterbridgeEndpoint.js +54 -1223
- package/dist/matterbridgeEndpointHelpers.js +12 -345
- package/dist/matterbridgePlatform.js +0 -256
- 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 -69
- package/dist/utils/colorUtils.js +2 -97
- 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 -124
- package/dist/utils/isvalid.js +0 -101
- package/dist/utils/network.js +5 -91
- package/dist/utils/spawn.js +0 -40
- package/dist/utils/wait.js +8 -60
- package/frontend/build/asset-manifest.json +6 -6
- package/frontend/build/index.html +1 -1
- package/frontend/build/static/css/{main.944b63c3.css → main.a2f4846a.css} +2 -2
- package/frontend/build/static/css/main.a2f4846a.css.map +1 -0
- package/frontend/build/static/js/main.710b8f9f.js +3 -0
- package/frontend/build/static/js/{main.ae006df6.js.LICENSE.txt → main.710b8f9f.js.LICENSE.txt} +11 -0
- package/frontend/build/static/js/{main.ae006df6.js.map → main.710b8f9f.js.map} +1 -1
- package/frontend/package-lock.json +5 -5
- package/frontend/package.json +1 -1
- package/npm-shrinkwrap.json +8 -7
- package/package.json +1 -2
- 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/cooktop.d.ts +0 -60
- package/dist/devices/cooktop.d.ts.map +0 -1
- package/dist/devices/cooktop.js.map +0 -1
- package/dist/devices/dishwasher.d.ts +0 -71
- package/dist/devices/dishwasher.d.ts.map +0 -1
- package/dist/devices/dishwasher.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 -15
- package/dist/devices/export.d.ts.map +0 -1
- package/dist/devices/export.js.map +0 -1
- package/dist/devices/extractorHood.d.ts +0 -46
- package/dist/devices/extractorHood.d.ts.map +0 -1
- package/dist/devices/extractorHood.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 -67
- package/dist/devices/laundryDryer.d.ts.map +0 -1
- package/dist/devices/laundryDryer.js.map +0 -1
- package/dist/devices/laundryWasher.d.ts +0 -81
- package/dist/devices/laundryWasher.d.ts.map +0 -1
- package/dist/devices/laundryWasher.js.map +0 -1
- package/dist/devices/microwaveOven.d.ts +0 -168
- package/dist/devices/microwaveOven.d.ts.map +0 -1
- package/dist/devices/microwaveOven.js.map +0 -1
- package/dist/devices/oven.d.ts +0 -105
- package/dist/devices/oven.d.ts.map +0 -1
- package/dist/devices/oven.js.map +0 -1
- package/dist/devices/refrigerator.d.ts +0 -118
- package/dist/devices/refrigerator.d.ts.map +0 -1
- package/dist/devices/refrigerator.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/temperatureControl.d.ts +0 -166
- package/dist/devices/temperatureControl.d.ts.map +0 -1
- package/dist/devices/temperatureControl.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/dgram/coap.d.ts +0 -205
- package/dist/dgram/coap.d.ts.map +0 -1
- package/dist/dgram/coap.js.map +0 -1
- package/dist/dgram/dgram.d.ts +0 -140
- package/dist/dgram/dgram.d.ts.map +0 -1
- package/dist/dgram/dgram.js.map +0 -1
- package/dist/dgram/mb_coap.d.ts +0 -24
- package/dist/dgram/mb_coap.d.ts.map +0 -1
- package/dist/dgram/mb_coap.js.map +0 -1
- package/dist/dgram/mb_mdns.d.ts +0 -24
- package/dist/dgram/mb_mdns.d.ts.map +0 -1
- package/dist/dgram/mb_mdns.js.map +0 -1
- package/dist/dgram/mdns.d.ts +0 -288
- package/dist/dgram/mdns.d.ts.map +0 -1
- package/dist/dgram/mdns.js.map +0 -1
- package/dist/dgram/multicast.d.ts +0 -65
- package/dist/dgram/multicast.d.ts.map +0 -1
- package/dist/dgram/multicast.js.map +0 -1
- package/dist/dgram/unicast.d.ts +0 -56
- package/dist/dgram/unicast.d.ts.map +0 -1
- package/dist/dgram/unicast.js.map +0 -1
- package/dist/frontend.d.ts +0 -313
- 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 -462
- 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 -1351
- package/dist/matterbridgeBehaviors.d.ts.map +0 -1
- package/dist/matterbridgeBehaviors.js.map +0 -1
- package/dist/matterbridgeDeviceTypes.d.ts +0 -710
- 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 -1359
- package/dist/matterbridgeEndpoint.d.ts.map +0 -1
- package/dist/matterbridgeEndpoint.js.map +0 -1
- package/dist/matterbridgeEndpointHelpers.d.ts +0 -407
- package/dist/matterbridgeEndpointHelpers.d.ts.map +0 -1
- package/dist/matterbridgeEndpointHelpers.js.map +0 -1
- package/dist/matterbridgePlatform.d.ts +0 -331
- package/dist/matterbridgePlatform.d.ts.map +0 -1
- package/dist/matterbridgePlatform.js.map +0 -1
- package/dist/matterbridgeTypes.d.ts +0 -198
- 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 -75
- package/dist/update.d.ts.map +0 -1
- package/dist/update.js.map +0 -1
- package/dist/utils/colorUtils.d.ts +0 -99
- 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 -89
- 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 -84
- 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 -54
- package/dist/utils/wait.d.ts.map +0 -1
- package/dist/utils/wait.js.map +0 -1
- package/frontend/build/static/css/main.944b63c3.css.map +0 -1
- package/frontend/build/static/js/main.ae006df6.js +0 -115
package/dist/devices/oven.d.ts
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description This file contains the Oven class.
|
|
3
|
-
* @file src/devices/oven.ts
|
|
4
|
-
* @author Luca Liguori
|
|
5
|
-
* @created 2025-05-25
|
|
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 { Semtag } from '@matter/types';
|
|
25
|
-
import { ModeBase } from '@matter/main/clusters/mode-base';
|
|
26
|
-
import { OvenMode } from '@matter/main/clusters/oven-mode';
|
|
27
|
-
import { OperationalState } from '@matter/main/clusters/operational-state';
|
|
28
|
-
import { OvenModeServer } from '@matter/main/behaviors/oven-mode';
|
|
29
|
-
import { OvenCavityOperationalStateServer } from '@matter/main/behaviors/oven-cavity-operational-state';
|
|
30
|
-
import { MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
|
|
31
|
-
export declare class Oven extends MatterbridgeEndpoint {
|
|
32
|
-
/**
|
|
33
|
-
* Creates an instance of the Oven class.
|
|
34
|
-
*
|
|
35
|
-
* @param {string} name - The name of the oven.
|
|
36
|
-
* @param {string} serial - The serial number of the oven.
|
|
37
|
-
*
|
|
38
|
-
* @remarks
|
|
39
|
-
* 13.9 An oven represents a device that contains one or more cabinets, and optionally a single cooktop,
|
|
40
|
-
* that are all capable of heating food. Examples of consumer products implementing this device type
|
|
41
|
-
* include ovens, wall ovens, convection ovens, etc.
|
|
42
|
-
* An oven is always defined via endpoint composition.
|
|
43
|
-
* - Use `addCabinet` to add one or more cabinets to the oven.
|
|
44
|
-
*/
|
|
45
|
-
constructor(name: string, serial: string);
|
|
46
|
-
/**
|
|
47
|
-
* Adds a Temperature Controlled Cabinet Heater to the oven.
|
|
48
|
-
*
|
|
49
|
-
* @param {string} name - The name of the cabinet.
|
|
50
|
-
* @param {Semtag[]} tagList - The tagList associated with the cabinet.
|
|
51
|
-
* @param {number} currentMode - The current mode of the cabinet. Defaults to 2 (which corresponds to 'Convection').
|
|
52
|
-
* @param {OvenMode.ModeOption[]} supportedModes - The supported modes of the cabinet. Defaults to a set of common oven modes.
|
|
53
|
-
* @param {number} selectedTemperatureLevel - The selected temperature level as an index of the supportedTemperatureLevels array. Defaults to 1 (which corresponds to 'Warm').
|
|
54
|
-
* @param {string[]} supportedTemperatureLevels - The list of supported temperature levels for the cabinet. Defaults to ['Defrost', '180°', '190°', '200°', '250°', '300°'].
|
|
55
|
-
* @param {OperationalState.OperationalStateEnum} operationalState - The initial operational state of the cabinet. Defaults to Stopped.
|
|
56
|
-
* @param {number} [currentPhase] - Optional: the current phase of the cabinet.
|
|
57
|
-
* @param {string[]} [phaseList] - Optional: the list of phases for the cabinet.
|
|
58
|
-
*
|
|
59
|
-
* @returns {MatterbridgeEndpoint} The MatterbridgeEndpoint instance representing the cabinet.
|
|
60
|
-
*
|
|
61
|
-
* @remarks
|
|
62
|
-
* 13.4.1 A Temperature Controlled Cabinet Heater is a device that provides a heated space for warming food.
|
|
63
|
-
* It is typically installed within an oven and can be used in conjunction with other heating elements.
|
|
64
|
-
*/
|
|
65
|
-
addCabinet(name: string, tagList: Semtag[], currentMode?: number, supportedModes?: OvenMode.ModeOption[], selectedTemperatureLevel?: number, supportedTemperatureLevels?: string[], operationalState?: OperationalState.OperationalStateEnum, currentPhase?: number, phaseList?: string[]): MatterbridgeEndpoint;
|
|
66
|
-
/**
|
|
67
|
-
* Creates a default OvenMode Cluster Server.
|
|
68
|
-
*
|
|
69
|
-
* @param {MatterbridgeEndpoint} endpoint - The Matterbridge endpoint instance.
|
|
70
|
-
* @param {number} currentMode - The current mode of the oven.
|
|
71
|
-
* @param {OvenMode.ModeOption[]} supportedModes - The supported modes of the oven.
|
|
72
|
-
*
|
|
73
|
-
* @returns {MatterbridgeEndpoint} The current MatterbridgeEndpoint instance for chaining.
|
|
74
|
-
*
|
|
75
|
-
* @remarks
|
|
76
|
-
* - supportedModes is a fixed attribute. It cannot be changed at runtime.
|
|
77
|
-
* - currentMode persists across reboots.
|
|
78
|
-
*/
|
|
79
|
-
createDefaultOvenModeClusterServer(endpoint: MatterbridgeEndpoint, currentMode: number, supportedModes: OvenMode.ModeOption[]): MatterbridgeEndpoint;
|
|
80
|
-
/**
|
|
81
|
-
* Creates a default Oven Cavity Operational State Cluster Server.
|
|
82
|
-
*
|
|
83
|
-
* @param {MatterbridgeEndpoint} endpoint - The Matterbridge endpoint instance.
|
|
84
|
-
* @param {OperationalState.OperationalStateEnum} operationalState - The initial operational state.
|
|
85
|
-
* @param {number} [currentPhase] - The current phase of the oven cavity.
|
|
86
|
-
* @param {string[]} [phaseList] - The list of phases for the oven cavity.
|
|
87
|
-
*
|
|
88
|
-
* @returns {this} The current MatterbridgeEndpoint instance for chaining.
|
|
89
|
-
*
|
|
90
|
-
* @remarks
|
|
91
|
-
* For this derived cluster, only these pre-defined strings may be used in the PhaseList attribute:
|
|
92
|
-
* "pre-heating", "pre-heated", and "cooling down".
|
|
93
|
-
*/
|
|
94
|
-
createDefaultOvenCavityOperationalStateClusterServer(endpoint: MatterbridgeEndpoint, operationalState?: OperationalState.OperationalStateEnum, currentPhase?: number, phaseList?: string[]): MatterbridgeEndpoint;
|
|
95
|
-
}
|
|
96
|
-
export declare class MatterbridgeOvenModeServer extends OvenModeServer {
|
|
97
|
-
initialize(): void;
|
|
98
|
-
changeToMode(request: ModeBase.ChangeToModeRequest): MaybePromise<ModeBase.ChangeToModeResponse>;
|
|
99
|
-
}
|
|
100
|
-
export declare class MatterbridgeOvenCavityOperationalStateServer extends OvenCavityOperationalStateServer {
|
|
101
|
-
initialize(): void;
|
|
102
|
-
stop(): MaybePromise<OperationalState.OperationalCommandResponse>;
|
|
103
|
-
start(): MaybePromise<OperationalState.OperationalCommandResponse>;
|
|
104
|
-
}
|
|
105
|
-
//# sourceMappingURL=oven.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oven.d.ts","sourceRoot":"","sources":["../../src/devices/oven.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,cAA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CAAC,KAAK,CAAC,gBAAgB,GAAG,gBAAgB,CAAC,oBAAoB,CAAC,OAAO,CAAC;QAC5E,IAAI,CAAC,KAAK,CAAC,gBAAgB,GAAG,EAAE,YAAY,EAAE,gBAAgB,CAAC,UAAU,CAAC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,CAAC;QACzJ,OAAO;YACL,oBAAoB,EAAE,EAAE,YAAY,EAAE,gBAAgB,CAAC,UAAU,CAAC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,iBAAiB,EAAE,mBAAmB,EAAE;SAClG,CAAC;IACnD,CAAC;CACF"}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description This file contains the Refrigerator class.
|
|
3
|
-
* @file src/devices/refrigerator.ts
|
|
4
|
-
* @author Luca Liguori
|
|
5
|
-
* @created 2025-05-25
|
|
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 { Semtag } from '@matter/types';
|
|
25
|
-
import { ModeBase } from '@matter/main/clusters/mode-base';
|
|
26
|
-
import { RefrigeratorAndTemperatureControlledCabinetMode } from '@matter/main/clusters/refrigerator-and-temperature-controlled-cabinet-mode';
|
|
27
|
-
import { RefrigeratorAndTemperatureControlledCabinetModeServer } from '@matter/main/behaviors/refrigerator-and-temperature-controlled-cabinet-mode';
|
|
28
|
-
import { MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
|
|
29
|
-
export declare class Refrigerator extends MatterbridgeEndpoint {
|
|
30
|
-
/**
|
|
31
|
-
* Creates an instance of the Refrigerator class.
|
|
32
|
-
*
|
|
33
|
-
* @param {string} name - The name of the refrigerator.
|
|
34
|
-
* @param {string} serial - The serial number of the refrigerator.
|
|
35
|
-
*
|
|
36
|
-
* @remarks
|
|
37
|
-
* 13.2 A refrigerator represents a device that contains one or more cabinets that are capable of chilling or
|
|
38
|
-
* freezing food. Examples of consumer products that MAY make use of this device type include refrigerators,
|
|
39
|
-
* freezers, and wine coolers.
|
|
40
|
-
* A refrigerator is always defined via endpoint composition.
|
|
41
|
-
* - Use `addCabinet` to add one or more cabinets to the refrigerator.
|
|
42
|
-
*/
|
|
43
|
-
constructor(name: string, serial: string);
|
|
44
|
-
/**
|
|
45
|
-
* Adds a Level Temperature Controlled Cabinet Cooler to the refrigerator.
|
|
46
|
-
*
|
|
47
|
-
* @param {string} name - The name of the cabinet.
|
|
48
|
-
* @param {Semtag[]} tagList - The tagList associated with the cabinet.
|
|
49
|
-
* @param {number} currentMode - The current mode of the cabinet. Defaults to 1 (which corresponds to 'Auto').
|
|
50
|
-
* @param {RefrigeratorAndTemperatureControlledCabinetMode.ModeOption[]} supportedModes - The supported modes for the cabinet. Defaults to 'Auto', 'RapidCool', and 'RapidFreeze'.
|
|
51
|
-
* @param {number} selectedTemperatureLevel - The selected temperature level as an index of the supportedTemperatureLevels array. Defaults to 2 (which corresponds to 'Level 3').
|
|
52
|
-
* @param {string[]} supportedTemperatureLevels - The list of supported temperature levels for the cabinet. Defaults to ['Level 1', 'Level 2', 'Level 3', 'Level 4', 'Level 5'].
|
|
53
|
-
* @param {number} currentTemperature - The current temperature of the cabinet in degrees Celsius. Defaults to 1000 (which corresponds to 10.00 degrees Celsius).
|
|
54
|
-
*
|
|
55
|
-
* @returns {MatterbridgeEndpoint} The MatterbridgeEndpoint instance representing the cabinet.
|
|
56
|
-
*
|
|
57
|
-
* @remarks
|
|
58
|
-
* 13.4.1 A Temperature Controlled Cabinet Cooler is a device that provides a cooled space for chilling food.
|
|
59
|
-
* It is typically installed within a refrigerator.
|
|
60
|
-
*
|
|
61
|
-
* Example usage with specific namespace tags:
|
|
62
|
-
* ```
|
|
63
|
-
* refrigerator.addCabinet('Refrigerator Top', [
|
|
64
|
-
* { mfgCode: null, namespaceId: PositionTag.Top.namespaceId, tag: PositionTag.Top.tag, label: 'Refrigerator Top' },
|
|
65
|
-
* { mfgCode: null, namespaceId: RefrigeratorTag.Refrigerator.namespaceId, tag: RefrigeratorTag.Refrigerator.tag, label: RefrigeratorTag.Refrigerator.label },
|
|
66
|
-
* ]);
|
|
67
|
-
* refrigerator.addCabinet('Freezer Bottom', [
|
|
68
|
-
* { mfgCode: null, namespaceId: PositionTag.Bottom.namespaceId, tag: PositionTag.Bottom.tag, label: 'Freezer Bottom' },
|
|
69
|
-
* { mfgCode: null, namespaceId: RefrigeratorTag.Freezer.namespaceId, tag: RefrigeratorTag.Freezer.tag, label: RefrigeratorTag.Freezer.label },
|
|
70
|
-
* ]);
|
|
71
|
-
* ```
|
|
72
|
-
*/
|
|
73
|
-
addCabinet(name: string, tagList: Semtag[], currentMode?: number, supportedModes?: RefrigeratorAndTemperatureControlledCabinetMode.ModeOption[], selectedTemperatureLevel?: number, supportedTemperatureLevels?: string[], currentTemperature?: number): MatterbridgeEndpoint;
|
|
74
|
-
/**
|
|
75
|
-
* Creates a default RefrigeratorAndTemperatureControlledCabinetMode Cluster Server.
|
|
76
|
-
*
|
|
77
|
-
* @param {MatterbridgeEndpoint} endpoint - The Matterbridge endpoint instance.
|
|
78
|
-
* @param {number} currentMode - The current mode of the oven.
|
|
79
|
-
* @param {RefrigeratorAndTemperatureControlledCabinetMode.ModeOption[]} supportedModes - The supported modes for the refrigerator and temperature controlled cabinet.
|
|
80
|
-
*
|
|
81
|
-
* @returns {MatterbridgeEndpoint} The current MatterbridgeEndpoint instance for chaining.
|
|
82
|
-
*
|
|
83
|
-
* @remarks
|
|
84
|
-
* - supportedModes is a fixed attribute. It cannot be changed at runtime.
|
|
85
|
-
* - currentMode persists across reboots.
|
|
86
|
-
*/
|
|
87
|
-
createDefaultRefrigeratorAndTemperatureControlledCabinetModeClusterServer(endpoint: MatterbridgeEndpoint, currentMode: number, supportedModes: RefrigeratorAndTemperatureControlledCabinetMode.ModeOption[]): MatterbridgeEndpoint;
|
|
88
|
-
/**
|
|
89
|
-
* Creates a default RefrigeratorAlarm Cluster Server.
|
|
90
|
-
*
|
|
91
|
-
* @param {MatterbridgeEndpoint} endpoint - The Matterbridge endpoint instance.
|
|
92
|
-
* @param {boolean} doorOpen - Indicates if the refrigerator door is open.
|
|
93
|
-
*
|
|
94
|
-
* @returns {MatterbridgeEndpoint} The updated MatterbridgeEndpoint instance.
|
|
95
|
-
*/
|
|
96
|
-
createDefaultRefrigeratorAlarmClusterServer(endpoint: MatterbridgeEndpoint, doorOpen?: boolean): MatterbridgeEndpoint;
|
|
97
|
-
/**
|
|
98
|
-
* Sets the door open state for a specific cabinet.
|
|
99
|
-
*
|
|
100
|
-
* @param {string} cabinetName - The name of the cabinet.
|
|
101
|
-
* @param {boolean} doorOpen - Indicates if the door is open.
|
|
102
|
-
* @returns {MatterbridgeEndpoint | undefined} The updated MatterbridgeEndpoint instance or undefined if not found.
|
|
103
|
-
*/
|
|
104
|
-
setDoorOpenState(cabinetName: string, doorOpen: boolean): Promise<MatterbridgeEndpoint | undefined>;
|
|
105
|
-
/**
|
|
106
|
-
* Triggers the notify event for door open state on a specific cabinet.
|
|
107
|
-
*
|
|
108
|
-
* @param {string} cabinetName - The name of the cabinet.
|
|
109
|
-
* @param {boolean} doorOpen - Indicates if the door is open.
|
|
110
|
-
* @returns {MatterbridgeEndpoint | undefined} The updated MatterbridgeEndpoint instance or undefined if not found.
|
|
111
|
-
*/
|
|
112
|
-
triggerDoorOpenState(cabinetName: string, doorOpen: boolean): Promise<MatterbridgeEndpoint | undefined>;
|
|
113
|
-
}
|
|
114
|
-
export declare class MatterbridgeRefrigeratorAndTemperatureControlledCabinetModeServer extends RefrigeratorAndTemperatureControlledCabinetModeServer {
|
|
115
|
-
initialize(): void;
|
|
116
|
-
changeToMode(request: ModeBase.ChangeToModeRequest): MaybePromise<ModeBase.ChangeToModeResponse>;
|
|
117
|
-
}
|
|
118
|
-
//# sourceMappingURL=refrigerator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"refrigerator.d.ts","sourceRoot":"","sources":["../../src/devices/refrigerator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,+CAA+C,EAAE,MAAM,4EAA4E,CAAC;AAC7I,OAAO,EAAE,qDAAqD,EAAE,MAAM,6EAA6E,CAAC;AAKpJ,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAKlE,qBAAa,YAAa,SAAQ,oBAAoB;IACpD;;;;;;;;;;;;OAYG;gBACS,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAQxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,UAAU,CACR,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EAAE,EACjB,WAAW,GAAE,MAAU,EACvB,cAAc,GAAE,+CAA+C,CAAC,UAAU,EAIzE,EACD,wBAAwB,GAAE,MAAU,EACpC,0BAA0B,GAAE,MAAM,EAA4D,EAC9F,kBAAkB,GAAE,MAAa,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
* @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,oBAAoB;IAC5D;;;;;;;;;;;;;;;;;;OAkBG;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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,166 +0,0 @@
|
|
|
1
|
-
import { TemperatureControl } from '@matter/main/clusters/temperature-control';
|
|
2
|
-
import { TemperatureControlServer } from '@matter/main/behaviors/temperature-control';
|
|
3
|
-
import { MaybePromise } from '@matter/main';
|
|
4
|
-
import { MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
|
|
5
|
-
/**
|
|
6
|
-
* Creates a TemperatureControl Cluster Server with feature TemperatureLevel.
|
|
7
|
-
*
|
|
8
|
-
* @param {MatterbridgeEndpoint} endpoint - The Matterbridge endpoint instance.
|
|
9
|
-
* @param {number} selectedTemperatureLevel - The selected temperature level as an index of the supportedTemperatureLevels array. Defaults to 1 (which corresponds to 'Warm').
|
|
10
|
-
* @param {string[]} supportedTemperatureLevels - The supported temperature levels. Defaults to ['Cold', 'Warm', 'Hot', '30°', '40°', '60°', '80°'].
|
|
11
|
-
*
|
|
12
|
-
* @returns {this} The current MatterbridgeEndpoint instance for chaining.
|
|
13
|
-
*/
|
|
14
|
-
export declare function createLevelTemperatureControlClusterServer(endpoint: MatterbridgeEndpoint, selectedTemperatureLevel?: number, supportedTemperatureLevels?: string[]): MatterbridgeEndpoint;
|
|
15
|
-
/**
|
|
16
|
-
* Creates a TemperatureControl Cluster Server with features TemperatureNumber and TemperatureStep.
|
|
17
|
-
*
|
|
18
|
-
* @param {MatterbridgeEndpoint} endpoint - The Matterbridge endpoint instance.
|
|
19
|
-
* @param {number} temperatureSetpoint - The temperature setpoint * 100. Defaults to 40 * 100 (which corresponds to 40°C).
|
|
20
|
-
* @param {number} minTemperature - The minimum temperature * 100. Defaults to 30 * 100 (which corresponds to 30°C). Fixed attribute.
|
|
21
|
-
* @param {number} maxTemperature - The maximum temperature * 100. Defaults to 60 * 100 (which corresponds to 60°C). Fixed attribute.
|
|
22
|
-
* @param {number} [step] - The step size for temperature changes. Defaults to 10 * 100 (which corresponds to 10°C). Fixed attribute.
|
|
23
|
-
*
|
|
24
|
-
* @returns {this} The current MatterbridgeEndpoint instance for chaining.
|
|
25
|
-
*/
|
|
26
|
-
export declare function createNumberTemperatureControlClusterServer(endpoint: MatterbridgeEndpoint, temperatureSetpoint?: number, minTemperature?: number, maxTemperature?: number, step?: number): MatterbridgeEndpoint;
|
|
27
|
-
declare const MatterbridgeLevelTemperatureControlServer_base: import("@matter/main").ClusterBehavior.Type<import("@matter/types").ClusterComposer.WithFeatures<import("@matter/types").ClusterType.Of<{
|
|
28
|
-
readonly id: 86;
|
|
29
|
-
readonly name: "TemperatureControl";
|
|
30
|
-
readonly revision: 1;
|
|
31
|
-
readonly features: {
|
|
32
|
-
readonly temperatureNumber: import("@matter/types").BitFlag;
|
|
33
|
-
readonly temperatureLevel: import("@matter/types").BitFlag;
|
|
34
|
-
readonly temperatureStep: import("@matter/types").BitFlag;
|
|
35
|
-
};
|
|
36
|
-
readonly commands: {
|
|
37
|
-
readonly setTemperature: import("@matter/types").Command<import("@matter/types").TypeFromFields<{
|
|
38
|
-
targetTemperature: import("@matter/types").OptionalFieldType<number>;
|
|
39
|
-
targetTemperatureLevel: import("@matter/types").OptionalFieldType<number>;
|
|
40
|
-
}>, void, any>;
|
|
41
|
-
};
|
|
42
|
-
readonly extensions: readonly [{
|
|
43
|
-
readonly flags: {
|
|
44
|
-
readonly temperatureNumber: true;
|
|
45
|
-
};
|
|
46
|
-
readonly component: {
|
|
47
|
-
readonly attributes: {
|
|
48
|
-
readonly temperatureSetpoint: import("@matter/types").Attribute<number, any>;
|
|
49
|
-
readonly minTemperature: import("@matter/types").FixedAttribute<number, any>;
|
|
50
|
-
readonly maxTemperature: import("@matter/types").FixedAttribute<number, any>;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
}, {
|
|
54
|
-
readonly flags: {
|
|
55
|
-
readonly temperatureStep: true;
|
|
56
|
-
};
|
|
57
|
-
readonly component: {
|
|
58
|
-
readonly attributes: {
|
|
59
|
-
readonly step: import("@matter/types").FixedAttribute<number, any>;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
}, {
|
|
63
|
-
readonly flags: {
|
|
64
|
-
readonly temperatureLevel: true;
|
|
65
|
-
};
|
|
66
|
-
readonly component: {
|
|
67
|
-
readonly attributes: {
|
|
68
|
-
readonly selectedTemperatureLevel: import("@matter/types").Attribute<number, any>;
|
|
69
|
-
readonly supportedTemperatureLevels: import("@matter/types").Attribute<string[], any>;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
}, {
|
|
73
|
-
readonly flags: {
|
|
74
|
-
readonly temperatureStep: true;
|
|
75
|
-
readonly temperatureNumber: false;
|
|
76
|
-
};
|
|
77
|
-
readonly component: false;
|
|
78
|
-
}, {
|
|
79
|
-
readonly flags: {
|
|
80
|
-
readonly temperatureNumber: true;
|
|
81
|
-
readonly temperatureLevel: true;
|
|
82
|
-
};
|
|
83
|
-
readonly component: false;
|
|
84
|
-
}, {
|
|
85
|
-
readonly flags: {
|
|
86
|
-
readonly temperatureNumber: false;
|
|
87
|
-
readonly temperatureLevel: false;
|
|
88
|
-
};
|
|
89
|
-
readonly component: false;
|
|
90
|
-
}];
|
|
91
|
-
}>, readonly [TemperatureControl.Feature.TemperatureLevel]>, typeof TemperatureControlServer, import("@matter/main/behaviors/temperature-control").TemperatureControlInterface>;
|
|
92
|
-
export declare class MatterbridgeLevelTemperatureControlServer extends MatterbridgeLevelTemperatureControlServer_base {
|
|
93
|
-
initialize(): void;
|
|
94
|
-
setTemperature(request: TemperatureControl.SetTemperatureRequest): MaybePromise;
|
|
95
|
-
}
|
|
96
|
-
declare const MatterbridgeNumberTemperatureControlServer_base: import("@matter/main").ClusterBehavior.Type<import("@matter/types").ClusterComposer.WithFeatures<import("@matter/types").ClusterType.Of<{
|
|
97
|
-
readonly id: 86;
|
|
98
|
-
readonly name: "TemperatureControl";
|
|
99
|
-
readonly revision: 1;
|
|
100
|
-
readonly features: {
|
|
101
|
-
readonly temperatureNumber: import("@matter/types").BitFlag;
|
|
102
|
-
readonly temperatureLevel: import("@matter/types").BitFlag;
|
|
103
|
-
readonly temperatureStep: import("@matter/types").BitFlag;
|
|
104
|
-
};
|
|
105
|
-
readonly commands: {
|
|
106
|
-
readonly setTemperature: import("@matter/types").Command<import("@matter/types").TypeFromFields<{
|
|
107
|
-
targetTemperature: import("@matter/types").OptionalFieldType<number>;
|
|
108
|
-
targetTemperatureLevel: import("@matter/types").OptionalFieldType<number>;
|
|
109
|
-
}>, void, any>;
|
|
110
|
-
};
|
|
111
|
-
readonly extensions: readonly [{
|
|
112
|
-
readonly flags: {
|
|
113
|
-
readonly temperatureNumber: true;
|
|
114
|
-
};
|
|
115
|
-
readonly component: {
|
|
116
|
-
readonly attributes: {
|
|
117
|
-
readonly temperatureSetpoint: import("@matter/types").Attribute<number, any>;
|
|
118
|
-
readonly minTemperature: import("@matter/types").FixedAttribute<number, any>;
|
|
119
|
-
readonly maxTemperature: import("@matter/types").FixedAttribute<number, any>;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
}, {
|
|
123
|
-
readonly flags: {
|
|
124
|
-
readonly temperatureStep: true;
|
|
125
|
-
};
|
|
126
|
-
readonly component: {
|
|
127
|
-
readonly attributes: {
|
|
128
|
-
readonly step: import("@matter/types").FixedAttribute<number, any>;
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
}, {
|
|
132
|
-
readonly flags: {
|
|
133
|
-
readonly temperatureLevel: true;
|
|
134
|
-
};
|
|
135
|
-
readonly component: {
|
|
136
|
-
readonly attributes: {
|
|
137
|
-
readonly selectedTemperatureLevel: import("@matter/types").Attribute<number, any>;
|
|
138
|
-
readonly supportedTemperatureLevels: import("@matter/types").Attribute<string[], any>;
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
}, {
|
|
142
|
-
readonly flags: {
|
|
143
|
-
readonly temperatureStep: true;
|
|
144
|
-
readonly temperatureNumber: false;
|
|
145
|
-
};
|
|
146
|
-
readonly component: false;
|
|
147
|
-
}, {
|
|
148
|
-
readonly flags: {
|
|
149
|
-
readonly temperatureNumber: true;
|
|
150
|
-
readonly temperatureLevel: true;
|
|
151
|
-
};
|
|
152
|
-
readonly component: false;
|
|
153
|
-
}, {
|
|
154
|
-
readonly flags: {
|
|
155
|
-
readonly temperatureNumber: false;
|
|
156
|
-
readonly temperatureLevel: false;
|
|
157
|
-
};
|
|
158
|
-
readonly component: false;
|
|
159
|
-
}];
|
|
160
|
-
}>, readonly [TemperatureControl.Feature.TemperatureNumber, TemperatureControl.Feature.TemperatureStep]>, typeof TemperatureControlServer, import("@matter/main/behaviors/temperature-control").TemperatureControlInterface>;
|
|
161
|
-
export declare class MatterbridgeNumberTemperatureControlServer extends MatterbridgeNumberTemperatureControlServer_base {
|
|
162
|
-
initialize(): void;
|
|
163
|
-
setTemperature(request: TemperatureControl.SetTemperatureRequest): MaybePromise;
|
|
164
|
-
}
|
|
165
|
-
export {};
|
|
166
|
-
//# sourceMappingURL=temperatureControl.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"temperatureControl.d.ts","sourceRoot":"","sources":["../../src/devices/temperatureControl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAGlE;;;;;;;;GAQG;AACH,wBAAgB,0CAA0C,CAAC,QAAQ,EAAE,oBAAoB,EAAE,wBAAwB,GAAE,MAAU,EAAE,0BAA0B,GAAE,MAAM,EAAwD,GAAG,oBAAoB,CAMjP;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,2CAA2C,CAAC,QAAQ,EAAE,oBAAoB,EAAE,mBAAmB,GAAE,MAAiB,EAAE,cAAc,GAAE,MAAiB,EAAE,cAAc,GAAE,MAAiB,EAAE,IAAI,GAAE,MAAiB,GAAG,oBAAoB,CAQvP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED,qBAAa,yCAA0C,SAAQ,8CAA0E;IAC9H,UAAU;IAOV,cAAc,CAAC,OAAO,EAAE,kBAAkB,CAAC,qBAAqB,GAAG,YAAY;CAWzF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED,qBAAa,0CAA2C,SAAQ,+CAAuH;IAC5K,UAAU;IAKV,cAAc,CAAC,OAAO,EAAE,kBAAkB,CAAC,qBAAqB,GAAG,YAAY;CAWzF"}
|