matterbridge-example-dynamic-platform 3.0.2-dev-20260809-c06da9e → 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/CHANGELOG.md +4 -33
- package/README.md +7 -7
- package/dist/module.js +19 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
|
|
24
24
|
All notable changes to this project will be documented in this file.
|
|
25
25
|
|
|
26
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
27
|
+
|
|
26
28
|
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.
|
|
27
29
|
|
|
28
30
|
<a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="120"></a>
|
|
@@ -49,8 +51,8 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
49
51
|
- [package]: Update dependencies.
|
|
50
52
|
- [package]: Bump `typescript` to v.7.0.2.
|
|
51
53
|
- [package]: Bump `@types/node` to v.26.2.0.
|
|
52
|
-
- [package]: Bump `oxfmt` to v.0.
|
|
53
|
-
- [package]: Bump `oxlint` to v.1.
|
|
54
|
+
- [package]: Bump `oxfmt` to v.0.63.0.
|
|
55
|
+
- [package]: Bump `oxlint` to v.1.78.0.
|
|
54
56
|
- [package]: Bump `oxlint-tsgolint` to v.7.0.2001.
|
|
55
57
|
- [package]: Update agents configs.
|
|
56
58
|
|
|
@@ -940,34 +942,3 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
940
942
|
- [package]: Updated dependencies.
|
|
941
943
|
|
|
942
944
|
<a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
|
|
943
|
-
|
|
944
|
-
<!-- Commented out section
|
|
945
|
-
## [1.1.2] - 2024-03-08
|
|
946
|
-
|
|
947
|
-
### Added
|
|
948
|
-
|
|
949
|
-
- [Feature 1]: Description of the feature.
|
|
950
|
-
- [Feature 2]: Description of the feature.
|
|
951
|
-
|
|
952
|
-
### Changed
|
|
953
|
-
|
|
954
|
-
- [Feature 3]: Description of the change.
|
|
955
|
-
- [Feature 4]: Description of the change.
|
|
956
|
-
|
|
957
|
-
### Deprecated
|
|
958
|
-
|
|
959
|
-
- [Feature 5]: Description of the deprecation.
|
|
960
|
-
|
|
961
|
-
### Removed
|
|
962
|
-
|
|
963
|
-
- [Feature 6]: Description of the removal.
|
|
964
|
-
|
|
965
|
-
### Fixed
|
|
966
|
-
|
|
967
|
-
- [Bug 1]: Description of the bug fix.
|
|
968
|
-
- [Bug 2]: Description of the bug fix.
|
|
969
|
-
|
|
970
|
-
### Security
|
|
971
|
-
|
|
972
|
-
- [Security 1]: Description of the security improvement.
|
|
973
|
-
-->
|
package/README.md
CHANGED
|
@@ -114,7 +114,11 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
114
114
|
|
|
115
115
|
### Matterbridge
|
|
116
116
|
|
|
117
|
-
See the guidelines on [Matterbridge](https://
|
|
117
|
+
See the guidelines on [Matterbridge](https://matterbridge.io/README.html) for more information.
|
|
118
|
+
|
|
119
|
+
## Style guide
|
|
120
|
+
|
|
121
|
+
See also the [Style Guide](./STYLEGUIDE.md) for JSDoc, naming, and logging conventions used in this repository.
|
|
118
122
|
|
|
119
123
|
## Repository toolchain
|
|
120
124
|
|
|
@@ -128,10 +132,6 @@ See the guidelines on [Matterbridge](https://github.com/Luligu/matterbridge/blob
|
|
|
128
132
|
- **Much faster builds** — tsgo compiles the project in a fraction of the time required by the standard `tsc` build.
|
|
129
133
|
- **Editor support** — use the VS Code extensions for tsgo and oxc to get the same experience in the editor.
|
|
130
134
|
|
|
131
|
-
## Style guide
|
|
132
|
-
|
|
133
|
-
See also the [Style Guide](./STYLEGUIDE.md) for JSDoc, naming, and logging conventions used in this repository.
|
|
134
|
-
|
|
135
135
|
## Copilot instructions
|
|
136
136
|
|
|
137
137
|
| File | Notes |
|
|
@@ -164,8 +164,8 @@ See also the [Style Guide](./STYLEGUIDE.md) for JSDoc, naming, and logging conve
|
|
|
164
164
|
| `.codex/config.toml` | Codex project permissions, approvals, and profile |
|
|
165
165
|
| `.codex/rules/default.rules` | Codex command allow, prompt, and deny rules |
|
|
166
166
|
|
|
167
|
-
##
|
|
167
|
+
## Development guide
|
|
168
168
|
|
|
169
|
-
Refer to the Matterbridge [
|
|
169
|
+
Refer to the Matterbridge [Development guide](https://matterbridge.io/README-DEV.html) for other guidelines.
|
|
170
170
|
|
|
171
171
|
---
|
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