matterbridge-example-dynamic-platform 1.3.1 → 1.3.2-dev-20250705-f7b5da1
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/dist/platform.js +14 -10
- package/matterbridge-example-dynamic-platform.schema.json +3 -3
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -23,6 +23,20 @@ If you like this project and find it useful, please consider giving it a star on
|
|
23
23
|
<img src="bmc-button.svg" alt="Buy me a coffee" width="120">
|
24
24
|
</a>
|
25
25
|
|
26
|
+
## [1.3.2] - 2025-07-04
|
27
|
+
|
28
|
+
### Added
|
29
|
+
|
30
|
+
- [platform]: Add by default Rvc in mode server for Apple Home issue.
|
31
|
+
|
32
|
+
### Changed
|
33
|
+
|
34
|
+
- [package]: Updated dependencies.
|
35
|
+
|
36
|
+
<a href="https://www.buymeacoffee.com/luligugithub">
|
37
|
+
<img src="bmc-button.svg" alt="Buy me a coffee" width="80">
|
38
|
+
</a>
|
39
|
+
|
26
40
|
## [1.3.1] - 2025-07-04
|
27
41
|
|
28
42
|
### Added
|
package/dist/platform.js
CHANGED
@@ -73,8 +73,10 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
73
73
|
config.whiteList = [];
|
74
74
|
if (config.blackList === undefined)
|
75
75
|
config.blackList = [];
|
76
|
-
if (config.enableRVC
|
77
|
-
config.enableRVC
|
76
|
+
if (config.enableRVC !== undefined)
|
77
|
+
delete config.enableRVC;
|
78
|
+
if (config.enableServerRvc === undefined)
|
79
|
+
config.enableServerRvc = true;
|
78
80
|
}
|
79
81
|
async onStart(reason) {
|
80
82
|
this.log.info('onStart called with reason:', reason ?? 'none');
|
@@ -136,7 +138,8 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
136
138
|
.createDefaultBridgedDeviceBasicInformationClusterServer('Dimmer Mounted Switch', '0x22145578864', 0xfff1, 'Matterbridge', 'Matterbridge Dimmer Mounted Switch', parseInt(this.version.replace(/\D/g, '')), this.version === '' ? 'Unknown' : this.version, parseInt(this.matterbridge.matterbridgeVersion.replace(/\D/g, '')), this.matterbridge.matterbridgeVersion)
|
137
139
|
.createDefaultOnOffClusterServer()
|
138
140
|
.createDefaultLevelControlClusterServer()
|
139
|
-
.
|
141
|
+
.createDefaultPowerSourceWiredClusterServer()
|
142
|
+
.addRequiredClusterServers();
|
140
143
|
this.setSelectDevice(this.mountedDimmerSwitch.serialNumber ?? '', this.mountedDimmerSwitch.deviceName ?? '', undefined, 'hub');
|
141
144
|
if (this.validateDevice(this.mountedDimmerSwitch.deviceName ?? '')) {
|
142
145
|
await this.registerDevice(this.mountedDimmerSwitch);
|
@@ -997,13 +1000,14 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
997
1000
|
else {
|
998
1001
|
this.latchingSwitch = undefined;
|
999
1002
|
}
|
1000
|
-
|
1001
|
-
|
1002
|
-
this.
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1003
|
+
const robot = new RoboticVacuumCleaner('Robot Vacuum', 'RVC1238777820', this.config.enableServerRvc === true ? 'server' : undefined);
|
1004
|
+
if (this.config.enableServerRvc === true) {
|
1005
|
+
this.log.notice('RVC is in server mode');
|
1006
|
+
}
|
1007
|
+
this.setSelectDevice(robot.serialNumber ?? '', robot.deviceName ?? '', undefined, 'hub');
|
1008
|
+
if (this.validateDevice(robot.deviceName ?? '')) {
|
1009
|
+
await this.registerDevice(robot);
|
1010
|
+
this.bridgedDevices.set(robot.deviceName ?? '', robot);
|
1007
1011
|
}
|
1008
1012
|
this.waterHeater = new WaterHeater('Water Heater', 'WH3456177820', 50, 60, 20, 80, undefined, 85, 220_000, 1_000, 220_000, 12_000_000, 500_000, 3_000_000);
|
1009
1013
|
this.setSelectDevice(this.waterHeater.serialNumber ?? '', this.waterHeater.deviceName ?? '', undefined, 'hub');
|
@@ -39,10 +39,10 @@
|
|
39
39
|
"type": "boolean",
|
40
40
|
"default": true
|
41
41
|
},
|
42
|
-
"
|
43
|
-
"description": "Enable the Robot Vacuum Cleaner (Apple Home will crash unless you use
|
42
|
+
"enableServerRvc": {
|
43
|
+
"description": "Enable the Robot Vacuum Cleaner in server mode (Apple Home will crash unless you use this mode!)",
|
44
44
|
"type": "boolean",
|
45
|
-
"default":
|
45
|
+
"default": true
|
46
46
|
},
|
47
47
|
"debug": {
|
48
48
|
"description": "Enable the debug for the plugin (development only)",
|
package/npm-shrinkwrap.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "matterbridge-example-dynamic-platform",
|
3
|
-
"version": "1.3.
|
3
|
+
"version": "1.3.2-dev-20250705-f7b5da1",
|
4
4
|
"lockfileVersion": 3,
|
5
5
|
"requires": true,
|
6
6
|
"packages": {
|
7
7
|
"": {
|
8
8
|
"name": "matterbridge-example-dynamic-platform",
|
9
|
-
"version": "1.3.
|
9
|
+
"version": "1.3.2-dev-20250705-f7b5da1",
|
10
10
|
"license": "Apache-2.0",
|
11
11
|
"dependencies": {
|
12
12
|
"node-ansi-logger": "3.1.1",
|