@homebridge-plugins/homebridge-tado 9.3.0 → 9.3.1

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
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ # v9.3.1 - 2026-06-19
4
+ - Fix: Preserve previous update buffer behaviour for default `preferSiriTemperature` handling while keeping the `HOT_WATER` range safeguards (#169)
5
+ - Fix: Improve HeaterCooler threshold value correction during startup
6
+
3
7
  # v9.3.0 - 2026-06-18
4
8
  - Fix: Treat tado zone id `0` as a valid zone id when resolving and updating configured zones (#169)
5
9
  - Fix: Resolve missing `HOT_WATER` zone ids for temperature-controlled boiler `HeaterCooler` accessories before sending overlays (#169)
@@ -215,9 +219,9 @@
215
219
  ## v6.0.9 - 2021-03-22
216
220
  - Added "Dummy Switch" option to Central Switch
217
221
  - Added new accessory type option (LightSensor) to Solar Intensity Accessory
218
- - Added new mode (CUSTOM) to HOT_WATER devices
222
+ - Added new mode (CUSTOM) to `HOT_WATER` devices
219
223
  - Fixed current state of HeaterCooler if temperature is reached
220
- - Fixed AUTO mode for HOT_WATER devices
224
+ - Fixed AUTO mode for `HOT_WATER` devices
221
225
  - Bugfixes
222
226
  - Bump deps
223
227
 
@@ -229,7 +233,7 @@
229
233
 
230
234
  ## v6.0.6 - 2021-03-16
231
235
  - Added minValue, maxValue, minStep options to config
232
- - Fixed target temperature for HOT_WATER if power = "ON"
236
+ - Fixed target temperature for `HOT_WATER` if power = "ON"
233
237
  - Other little bugfixes & improvements
234
238
 
235
239
  ## v6.0.5 - 2021-03-16
@@ -247,7 +251,7 @@
247
251
 
248
252
  ## v6.0.1 - 2021-03-15
249
253
  - Fixed a bug with faucet accessory appearing as air quality sensor
250
- - Fixed a bug for HOT_WATER devices without temperature support
254
+ - Fixed a bug for `HOT_WATER` devices without temperature support
251
255
  - Improvements
252
256
 
253
257
  **Note:**
@@ -256,7 +260,7 @@ Hot water devices show 0° when they are first started in Apple Home if they are
256
260
 
257
261
  **IMPORTANT:**
258
262
 
259
- If you previously used your "HOT_WATER" device/zone as a faucet, then disable the zone after the update and restart Homebridge pls. After the restart, you can enable the zone with the faucet again.
263
+ If you previously used your "`HOT_WATER`" device/zone as a faucet, then disable the zone after the update and restart Homebridge pls. After the restart, you can enable the zone with the faucet again.
260
264
 
261
265
  ## v6.0.0 - 2021-03-14
262
266
  **<u>NOTE:</u>** Updating from **<= v5.x** to **v6.x** will crash your homebridge, please **REMOVE** the old version first and check also the new [example-config.json](https://github.com/homebridge-plugins/homebridge-tado/blob/latest/example-config.json)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebridge-plugins/homebridge-tado",
3
- "version": "9.3.0",
3
+ "version": "9.3.1",
4
4
  "description": "Homebridge plugin for controlling tado° devices.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  import Logger from '../helper/logger.js';
2
2
  import moment from 'moment';
3
- import { TadoUpdateBuffer } from '../helper/update-buffer.js'
3
+ import { TadoUpdateBuffer } from '../helper/update-buffer.js';
4
4
 
5
5
  const timeout = (ms) => new Promise((res) => setTimeout(res, ms));
6
6
 
@@ -255,12 +255,11 @@ export default class HeaterCoolerAccessory {
255
255
  });
256
256
 
257
257
  let heatingThresholdValue = Number(heatingThreshold.value);
258
-
259
- if (!Number.isFinite(heatingThresholdValue) || heatingThresholdValue < minValue)
258
+ if (!Number.isFinite(heatingThresholdValue) || heatingThresholdValue < minValue) {
260
259
  heatingThreshold.updateValue(minValue);
261
-
262
- if (Number.isFinite(heatingThresholdValue) && heatingThresholdValue > maxValue)
260
+ } else if (heatingThresholdValue > maxValue) {
263
261
  heatingThreshold.updateValue(maxValue);
262
+ }
264
263
 
265
264
  if (this.accessory.context.config.type === 'HEATING') {
266
265
  const coolingThreshold = service.getCharacteristic(this.api.hap.Characteristic.CoolingThresholdTemperature);
@@ -272,12 +271,11 @@ export default class HeaterCoolerAccessory {
272
271
  });
273
272
 
274
273
  let coolingThresholdValue = Number(coolingThreshold.value);
275
-
276
- if (!Number.isFinite(coolingThresholdValue) || coolingThresholdValue < minValue)
274
+ if (!Number.isFinite(coolingThresholdValue) || coolingThresholdValue < minValue) {
277
275
  coolingThreshold.updateValue(minValue);
278
-
279
- if (Number.isFinite(coolingThresholdValue) && coolingThresholdValue > maxValue)
276
+ } else if (coolingThresholdValue > maxValue) {
280
277
  coolingThreshold.updateValue(maxValue);
278
+ }
281
279
  }
282
280
 
283
281
  if (!service.testCharacteristic(this.api.hap.Characteristic.ValvePosition))
@@ -54,7 +54,7 @@ export class TadoUpdateBuffer {
54
54
  const tempSet = temp !== null;
55
55
  this.pendingState = null;
56
56
  this.pendingTemperature = null;
57
- if (tempSet && !siriAutoTemperature) this.lastTemperature = temp;
57
+ if (tempSet && (!siriAutoTemperature || !this.preferSiriTemperature)) this.lastTemperature = temp;
58
58
 
59
59
  //Siri temperature heuristic
60
60
  if (this.preferSiriTemperature && state === 3 && tempSet) {