@matterbridge/core 3.11.2-dev-20261106-a0aeea4 → 3.11.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.
@@ -32,6 +32,9 @@ export class MatterbridgePumpConfigurationAndControlServer extends PumpConfigura
32
32
  return 0;
33
33
  return currentLevel <= 200 ? currentLevel / 2 : 100;
34
34
  }
35
+ #isOn() {
36
+ return this.endpoint.behaviors.has(OnOffServer.id) ? this.agent.get(OnOffServer).state.onOff : true;
37
+ }
35
38
  #speedFromPercent(percent) {
36
39
  const maxConstSpeed = this.state.maxConstSpeed ?? this.state.maxSpeed ?? 0;
37
40
  return Math.round((percent / 100) * maxConstSpeed);
@@ -87,6 +90,8 @@ export class MatterbridgePumpConfigurationAndControlServer extends PumpConfigura
87
90
  this.agent.asLocalActor(() => {
88
91
  this.state.effectiveOperationMode = operationMode;
89
92
  });
93
+ if (!this.#isOn())
94
+ return;
90
95
  const { speed, capacity } = this.#applySetpoint(this.internal.lastLevel ?? 254);
91
96
  device.log.info(`MatterbridgePumpConfigurationAndControlServer: pump speed changed to ${speed}, capacity changed to ${capacity} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
92
97
  }
@@ -100,6 +105,8 @@ export class MatterbridgePumpConfigurationAndControlServer extends PumpConfigura
100
105
  const device = this.endpoint.stateOf(MatterbridgeServer);
101
106
  device.log.info(`MatterbridgePumpConfigurationAndControlServer: currentLevel changed to ${currentLevel} from ${oldCurrentLevel} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
102
107
  this.internal.lastLevel = currentLevel ?? this.internal.lastLevel;
108
+ if (!this.#isOn())
109
+ return;
103
110
  const { speed, capacity } = this.#applySetpoint(currentLevel ?? 0);
104
111
  device.log.info(`MatterbridgePumpConfigurationAndControlServer: pump speed changed to ${speed}, capacity changed to ${capacity} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
105
112
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matterbridge/core",
3
- "version": "3.11.2-dev-20261106-a0aeea4",
3
+ "version": "3.11.2",
4
4
  "description": "Matterbridge core library",
5
5
  "author": "https://github.com/Luligu",
6
6
  "homepage": "https://matterbridge.io/",
@@ -136,10 +136,10 @@
136
136
  },
137
137
  "dependencies": {
138
138
  "@matter/main": "0.18.0",
139
- "@matterbridge/dgram": "3.11.2-dev-20261106-a0aeea4",
140
- "@matterbridge/thread": "3.11.2-dev-20261106-a0aeea4",
141
- "@matterbridge/types": "3.11.2-dev-20261106-a0aeea4",
142
- "@matterbridge/utils": "3.11.2-dev-20261106-a0aeea4",
139
+ "@matterbridge/dgram": "3.11.2",
140
+ "@matterbridge/thread": "3.11.2",
141
+ "@matterbridge/types": "3.11.2",
142
+ "@matterbridge/utils": "3.11.2",
143
143
  "escape-html": "1.0.3",
144
144
  "express": "5.3.0",
145
145
  "express-rate-limit": "8.7.2",