matterbridge-example-dynamic-platform 3.0.2-dev-20260812-5fa3c30 → 3.0.2-dev-20260813-d1bc6f7
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/dist/module.js +19 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -2423,7 +2423,15 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
2423
2423
|
await this.thermoAuto?.setAttribute(Thermostat.id, 'systemMode', Thermostat.SystemMode.Auto, this.thermoAuto.log);
|
|
2424
2424
|
if (this.thermoAuto?.hasAttributeServer(Thermostat.id, 'thermostatRunningState')) {
|
|
2425
2425
|
const runningState = this.thermoAuto?.getAttribute(Thermostat.id, 'thermostatRunningState', this.thermoAuto.log);
|
|
2426
|
-
await this.thermoAuto?.setAttribute(Thermostat.id, 'thermostatRunningState', { ...runningState, heat: true }, this.thermoAuto.log);
|
|
2426
|
+
await this.thermoAuto?.setAttribute(Thermostat.id, 'thermostatRunningState', { ...runningState, heat: true, cool: false }, this.thermoAuto.log);
|
|
2427
|
+
}
|
|
2428
|
+
if (this.thermoHeat?.hasAttributeServer(Thermostat.id, 'thermostatRunningState')) {
|
|
2429
|
+
const runningState = this.thermoHeat?.getAttribute(Thermostat.id, 'thermostatRunningState', this.thermoHeat.log);
|
|
2430
|
+
await this.thermoHeat?.setAttribute(Thermostat.id, 'thermostatRunningState', { ...runningState, heat: true, cool: false }, this.thermoHeat.log);
|
|
2431
|
+
}
|
|
2432
|
+
if (this.thermoCool?.hasAttributeServer(Thermostat.id, 'thermostatRunningState')) {
|
|
2433
|
+
const runningState = this.thermoCool?.getAttribute(Thermostat.id, 'thermostatRunningState', this.thermoCool.log);
|
|
2434
|
+
await this.thermoCool?.setAttribute(Thermostat.id, 'thermostatRunningState', { ...runningState, heat: false, cool: true }, this.thermoCool.log);
|
|
2427
2435
|
}
|
|
2428
2436
|
this.thermoAuto?.log.info('Set thermostat initial localTemperature to 16°C, mode Auto and heat runningState to true');
|
|
2429
2437
|
const temperature = this.thermoAuto?.getChildEndpointById('Temperature');
|
|
@@ -2476,6 +2484,16 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
2476
2484
|
runningState.cool = !runningState?.cool;
|
|
2477
2485
|
await this.thermoAuto?.setAttribute(Thermostat.id, 'thermostatRunningState', runningState, this.thermoAuto.log);
|
|
2478
2486
|
}
|
|
2487
|
+
if (this.thermoHeat?.hasAttributeServer(Thermostat.id, 'thermostatRunningState')) {
|
|
2488
|
+
const runningState = this.thermoHeat?.getAttribute(Thermostat.id, 'thermostatRunningState', this.thermoHeat.log);
|
|
2489
|
+
runningState.heat = !runningState?.heat;
|
|
2490
|
+
await this.thermoHeat?.setAttribute(Thermostat.id, 'thermostatRunningState', runningState, this.thermoHeat.log);
|
|
2491
|
+
}
|
|
2492
|
+
if (this.thermoCool?.hasAttributeServer(Thermostat.id, 'thermostatRunningState')) {
|
|
2493
|
+
const runningState = this.thermoCool?.getAttribute(Thermostat.id, 'thermostatRunningState', this.thermoCool.log);
|
|
2494
|
+
runningState.cool = !runningState?.cool;
|
|
2495
|
+
await this.thermoCool?.setAttribute(Thermostat.id, 'thermostatRunningState', runningState, this.thermoCool.log);
|
|
2496
|
+
}
|
|
2479
2497
|
}, 60 * 1000 + 600);
|
|
2480
2498
|
}
|
|
2481
2499
|
await this.airConditioner?.setAttribute(OnOff.id, 'onOff', true, this.airConditioner.log);
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-example-dynamic-platform",
|
|
3
|
-
"version": "3.0.2-dev-
|
|
3
|
+
"version": "3.0.2-dev-20260813-d1bc6f7",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge-example-dynamic-platform",
|
|
9
|
-
"version": "3.0.2-dev-
|
|
9
|
+
"version": "3.0.2-dev-20260813-d1bc6f7",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"node-ansi-logger": "3.3.0",
|
package/package.json
CHANGED