matterbridge-example-dynamic-platform 2.0.7 → 2.0.8
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 +14 -0
- package/README.md +7 -4
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/module.d.ts +0 -106
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|

|
|
10
10
|

|
|
11
11
|
[](https://codecov.io/gh/Luligu/matterbridge-example-dynamic-platformr)
|
|
12
|
+
[](https://github.com/prettier/prettier)
|
|
13
|
+
[](https://github.com/eslint/eslint)
|
|
14
|
+
[](https://www.typescriptlang.org/)
|
|
15
|
+
[](https://nodejs.org/api/esm.html)
|
|
16
|
+
[](https://matterbridge.io)
|
|
12
17
|
|
|
13
18
|
[](https://www.npmjs.com/package/matterbridge)
|
|
14
19
|
[](https://www.npmjs.com/package/matter-history)
|
|
@@ -23,6 +28,15 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
23
28
|
|
|
24
29
|
<a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="120"></a>
|
|
25
30
|
|
|
31
|
+
## [2.0.8] - 2026-02-04
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
|
|
35
|
+
- [package]: Updated dependencies.
|
|
36
|
+
- [package]: Updated package.
|
|
37
|
+
|
|
38
|
+
<a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
|
|
39
|
+
|
|
26
40
|
## [2.0.7] - 2026-01-31
|
|
27
41
|
|
|
28
42
|
### Added
|
package/README.md
CHANGED
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|

|
|
10
10
|

|
|
11
11
|
[](https://codecov.io/gh/Luligu/matterbridge-example-dynamic-platform)
|
|
12
|
+
[](https://github.com/prettier/prettier)
|
|
13
|
+
[](https://github.com/eslint/eslint)
|
|
14
|
+
[](https://www.typescriptlang.org/)
|
|
15
|
+
[](https://nodejs.org/api/esm.html)
|
|
16
|
+
[](https://matterbridge.io)
|
|
12
17
|
|
|
13
18
|
[](https://www.npmjs.com/package/matterbridge)
|
|
14
19
|
[](https://www.npmjs.com/package/matter-history)
|
|
@@ -90,11 +95,9 @@ All these devices continuously change state and position. The plugin also shows
|
|
|
90
95
|
|
|
91
96
|
If you want to write your plugin, the easiest way to start create a new plugin is to clone the [Matterbridge Plugin Template](https://github.com/Luligu/matterbridge-plugin-template) which has **Dev Container support for instant development environment** and all tools and extensions (like Node.js, npm, TypeScript, ESLint, Prettier, Jest and Vitest) already loaded and configured.
|
|
92
97
|
|
|
93
|
-
If you like this project and find it useful, please consider giving it a star on GitHub
|
|
98
|
+
If you like this project and find it useful, please consider giving it a star on [GitHub](https://github.com/Luligu/matterbridge-example-dynamic-platform) and sponsoring it.
|
|
94
99
|
|
|
95
|
-
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
96
|
-
<img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="120">
|
|
97
|
-
</a>
|
|
100
|
+
<a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="120"></a>
|
|
98
101
|
|
|
99
102
|
## Prerequisites
|
|
100
103
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-example-dynamic-platform",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge-example-dynamic-platform",
|
|
9
|
-
"version": "2.0.
|
|
9
|
+
"version": "2.0.8",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"node-ansi-logger": "3.1.1",
|
package/package.json
CHANGED
package/dist/module.d.ts
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { MatterbridgeEndpoint, MatterbridgeDynamicPlatform, PlatformConfig, PlatformMatterbridge } from 'matterbridge';
|
|
2
|
-
import { Oven, Cooktop, Refrigerator, AirConditioner, Speaker, BasicVideoPlayer, CastingVideoPlayer } from 'matterbridge/devices';
|
|
3
|
-
import { AnsiLogger } from 'matterbridge/logger';
|
|
4
|
-
export type DynamicPlatformConfig = PlatformConfig & {
|
|
5
|
-
whiteList: string[];
|
|
6
|
-
blackList: string[];
|
|
7
|
-
useInterval: boolean;
|
|
8
|
-
enableServerRvc: boolean;
|
|
9
|
-
};
|
|
10
|
-
export default function initializePlugin(matterbridge: PlatformMatterbridge, log: AnsiLogger, config: PlatformConfig): ExampleMatterbridgeDynamicPlatform;
|
|
11
|
-
export declare class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatform {
|
|
12
|
-
config: DynamicPlatformConfig;
|
|
13
|
-
door: MatterbridgeEndpoint | undefined;
|
|
14
|
-
occupancy: MatterbridgeEndpoint | undefined;
|
|
15
|
-
illuminance: MatterbridgeEndpoint | undefined;
|
|
16
|
-
temperature: MatterbridgeEndpoint | undefined;
|
|
17
|
-
humidity: MatterbridgeEndpoint | undefined;
|
|
18
|
-
pressure: MatterbridgeEndpoint | undefined;
|
|
19
|
-
flow: MatterbridgeEndpoint | undefined;
|
|
20
|
-
select: MatterbridgeEndpoint | undefined;
|
|
21
|
-
climate: MatterbridgeEndpoint | undefined;
|
|
22
|
-
switch: MatterbridgeEndpoint | undefined;
|
|
23
|
-
mountedOnOffSwitch: MatterbridgeEndpoint | undefined;
|
|
24
|
-
mountedDimmerSwitch: MatterbridgeEndpoint | undefined;
|
|
25
|
-
lightOnOff: MatterbridgeEndpoint | undefined;
|
|
26
|
-
dimmer: MatterbridgeEndpoint | undefined;
|
|
27
|
-
light: MatterbridgeEndpoint | undefined;
|
|
28
|
-
lightXY: MatterbridgeEndpoint | undefined;
|
|
29
|
-
lightHS: MatterbridgeEndpoint | undefined;
|
|
30
|
-
lightCT: MatterbridgeEndpoint | undefined;
|
|
31
|
-
outlet: MatterbridgeEndpoint | undefined;
|
|
32
|
-
outletEnergy: MatterbridgeEndpoint | undefined;
|
|
33
|
-
outletEnergyApparent: MatterbridgeEndpoint | undefined;
|
|
34
|
-
smartOutlet: MatterbridgeEndpoint | undefined;
|
|
35
|
-
coverLift: MatterbridgeEndpoint | undefined;
|
|
36
|
-
coverLiftTilt: MatterbridgeEndpoint | undefined;
|
|
37
|
-
lock: MatterbridgeEndpoint | undefined;
|
|
38
|
-
thermoAuto: MatterbridgeEndpoint | undefined;
|
|
39
|
-
thermoAutoOccupancy: MatterbridgeEndpoint | undefined;
|
|
40
|
-
thermoAutoPresets: MatterbridgeEndpoint | undefined;
|
|
41
|
-
thermoHeat: MatterbridgeEndpoint | undefined;
|
|
42
|
-
thermoCool: MatterbridgeEndpoint | undefined;
|
|
43
|
-
fanBase: MatterbridgeEndpoint | undefined;
|
|
44
|
-
fanOnHigh: MatterbridgeEndpoint | undefined;
|
|
45
|
-
fanDefault: MatterbridgeEndpoint | undefined;
|
|
46
|
-
fanComplete: MatterbridgeEndpoint | undefined;
|
|
47
|
-
waterLeak: MatterbridgeEndpoint | undefined;
|
|
48
|
-
waterFreeze: MatterbridgeEndpoint | undefined;
|
|
49
|
-
rain: MatterbridgeEndpoint | undefined;
|
|
50
|
-
smokeCo: MatterbridgeEndpoint | undefined;
|
|
51
|
-
smokeOnly: MatterbridgeEndpoint | undefined;
|
|
52
|
-
coOnly: MatterbridgeEndpoint | undefined;
|
|
53
|
-
airQuality: MatterbridgeEndpoint | undefined;
|
|
54
|
-
airPurifier: MatterbridgeEndpoint | undefined;
|
|
55
|
-
pump: MatterbridgeEndpoint | undefined;
|
|
56
|
-
valve: MatterbridgeEndpoint | undefined;
|
|
57
|
-
momentarySwitch: MatterbridgeEndpoint | undefined;
|
|
58
|
-
latchingSwitch: MatterbridgeEndpoint | undefined;
|
|
59
|
-
vacuum: MatterbridgeEndpoint | undefined;
|
|
60
|
-
roboticVacuum: MatterbridgeEndpoint | undefined;
|
|
61
|
-
waterHeater: MatterbridgeEndpoint | undefined;
|
|
62
|
-
evse: MatterbridgeEndpoint | undefined;
|
|
63
|
-
laundryWasher: MatterbridgeEndpoint | undefined;
|
|
64
|
-
laundryDryer: MatterbridgeEndpoint | undefined;
|
|
65
|
-
dishwasher: MatterbridgeEndpoint | undefined;
|
|
66
|
-
extractorHood: MatterbridgeEndpoint | undefined;
|
|
67
|
-
solarPower: MatterbridgeEndpoint | undefined;
|
|
68
|
-
batteryStorage: MatterbridgeEndpoint | undefined;
|
|
69
|
-
heatPump: MatterbridgeEndpoint | undefined;
|
|
70
|
-
microwaveOven: MatterbridgeEndpoint | undefined;
|
|
71
|
-
oven: Oven | undefined;
|
|
72
|
-
cooktop: Cooktop | undefined;
|
|
73
|
-
refrigerator: Refrigerator | undefined;
|
|
74
|
-
airConditioner: AirConditioner | undefined;
|
|
75
|
-
basicVideoPlayer: BasicVideoPlayer | undefined;
|
|
76
|
-
castingVideoPlayer: CastingVideoPlayer | undefined;
|
|
77
|
-
speaker: Speaker | undefined;
|
|
78
|
-
phaseInterval: NodeJS.Timeout | undefined;
|
|
79
|
-
phase: number;
|
|
80
|
-
sensorInterval: NodeJS.Timeout | undefined;
|
|
81
|
-
switchInterval: NodeJS.Timeout | undefined;
|
|
82
|
-
lightInterval: NodeJS.Timeout | undefined;
|
|
83
|
-
outletInterval: NodeJS.Timeout | undefined;
|
|
84
|
-
coverInterval: NodeJS.Timeout | undefined;
|
|
85
|
-
lockInterval: NodeJS.Timeout | undefined;
|
|
86
|
-
thermoInterval: NodeJS.Timeout | undefined;
|
|
87
|
-
fanInterval: NodeJS.Timeout | undefined;
|
|
88
|
-
waterLeakInterval: NodeJS.Timeout | undefined;
|
|
89
|
-
waterFreezeInterval: NodeJS.Timeout | undefined;
|
|
90
|
-
rainInterval: NodeJS.Timeout | undefined;
|
|
91
|
-
smokeInterval: NodeJS.Timeout | undefined;
|
|
92
|
-
airQualityInterval: NodeJS.Timeout | undefined;
|
|
93
|
-
airConditionerInterval: NodeJS.Timeout | undefined;
|
|
94
|
-
genericSwitchInterval: NodeJS.Timeout | undefined;
|
|
95
|
-
genericSwitchLastEvent: 'Single' | 'Double' | 'Long' | 'Press' | 'Release';
|
|
96
|
-
intervalOnOff: boolean;
|
|
97
|
-
intervalLevel: number;
|
|
98
|
-
intervalColorTemperature: number;
|
|
99
|
-
fanModeLookup: string[];
|
|
100
|
-
fanDirectionLookup: string[];
|
|
101
|
-
constructor(matterbridge: PlatformMatterbridge, log: AnsiLogger, config: DynamicPlatformConfig);
|
|
102
|
-
onStart(reason?: string): Promise<void>;
|
|
103
|
-
onConfigure(): Promise<void>;
|
|
104
|
-
onShutdown(reason?: string): Promise<void>;
|
|
105
|
-
addDevice(device: MatterbridgeEndpoint): Promise<MatterbridgeEndpoint | undefined>;
|
|
106
|
-
}
|