matterbridge-daikin-local 0.9.1 → 0.9.2

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 CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  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).
6
6
 
7
+ ## [0.9.2] - 2026-10-19
8
+
9
+ ### Fixed
10
+
11
+ - [devices]: Read the unit and write its state to Matter only while the Matter node is online. A poll that answered as the node went online, after a factory reset or at the start of the bridge, could hold the thermostat when the node writes its temperature, which failed the reset and left Matterbridge stuck. Only the read after a reset waited for the node before; every read does now, and nothing is written to the endpoints while the node is offline.
12
+
7
13
  ## [0.9.1] - 2026-10-19
8
14
 
9
15
  ### Changed
@@ -214,14 +214,20 @@ export class DaikinAccessory {
214
214
  again();
215
215
  if (endpoint === this.endpoint)
216
216
  this.log.info(`"${this.name}" is subscribed again after the Matter node was reset`);
217
- this.refreshWhenOnline(endpoint);
217
+ void this.refresh();
218
218
  });
219
219
  }
220
- refreshWhenOnline(endpoint) {
220
+ getOfflineNode() {
221
+ let root = this.endpoint.owner;
222
+ while (root?.owner !== undefined)
223
+ root = root.owner;
224
+ return root instanceof Node && !root.lifecycle.isOnline ? root : undefined;
225
+ }
226
+ refreshWhenOnline(node) {
221
227
  if (this.isAwaitingOnline)
222
228
  return;
223
229
  this.isAwaitingOnline = true;
224
- Node.forEndpoint(endpoint).lifecycle.online.once(() => {
230
+ node.lifecycle.online.once(() => {
225
231
  this.isAwaitingOnline = false;
226
232
  void this.refresh();
227
233
  });
@@ -385,6 +391,11 @@ export class DaikinAccessory {
385
391
  async readAndApply(shouldReadSensors, setpointsBefore = {}) {
386
392
  if (this.isDisposed)
387
393
  return false;
394
+ const offlineNode = this.getOfflineNode();
395
+ if (offlineNode !== undefined) {
396
+ this.refreshWhenOnline(offlineNode);
397
+ return false;
398
+ }
388
399
  let state;
389
400
  let sensors = this.sensors;
390
401
  try {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge-daikin-local",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge-daikin-local",
9
- "version": "0.9.1",
9
+ "version": "0.9.2",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "daikin-local-control": "0.6.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge-daikin-local",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "Matterbridge Daikin Local",
5
5
  "author": "https://github.com/cheziyi",
6
6
  "license": "Apache-2.0",