@homebridge-plugins/homebridge-tado 8.7.7 → 8.7.8-beta.0
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 +3 -0
- package/package.json +2 -2
- package/src/helper/handler.js +11 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@homebridge-plugins/homebridge-tado",
|
|
3
|
-
"version": "8.7.
|
|
3
|
+
"version": "8.7.8-beta.0",
|
|
4
4
|
"description": "Homebridge plugin for controlling tado° devices.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -52,4 +52,4 @@
|
|
|
52
52
|
"globals": "^17.0.0",
|
|
53
53
|
"prettier": "^3.7.4"
|
|
54
54
|
}
|
|
55
|
-
}
|
|
55
|
+
}
|
package/src/helper/handler.js
CHANGED
|
@@ -979,6 +979,7 @@ export default (api, accessories, config, tado, telegram) => {
|
|
|
979
979
|
if (thermoAccessory.length) {
|
|
980
980
|
thermoAccessory.forEach((acc) => {
|
|
981
981
|
if (acc.displayName.includes(zone.name)) {
|
|
982
|
+
Logger.debug(`Update accessory ${acc.displayName} of zone ${zone.id}.`);
|
|
982
983
|
let serviceThermostat = acc.getService(api.hap.Service.Thermostat);
|
|
983
984
|
let serviceHeaterCooler = acc.getService(api.hap.Service.HeaterCooler);
|
|
984
985
|
|
|
@@ -997,6 +998,7 @@ export default (api, accessories, config, tado, telegram) => {
|
|
|
997
998
|
let characteristicHumidity = api.hap.Characteristic.CurrentRelativeHumidity;
|
|
998
999
|
let characteristicUnit = api.hap.Characteristic.TemperatureDisplayUnits;
|
|
999
1000
|
|
|
1001
|
+
let newValue;
|
|
1000
1002
|
if (!isNaN(currentTemp)) {
|
|
1001
1003
|
acc.context.config.temperatureUnit = acc.context.config.temperatureUnit || config.temperatureUnit;
|
|
1002
1004
|
|
|
@@ -1006,7 +1008,7 @@ export default (api, accessories, config, tado, telegram) => {
|
|
|
1006
1008
|
let cToF = (c) => Math.round((c * 9) / 5 + 32);
|
|
1007
1009
|
let fToC = (f) => Math.round(((f - 32) * 5) / 9);
|
|
1008
1010
|
|
|
1009
|
-
|
|
1011
|
+
newValue = unitChanged ? (isFahrenheit ? cToF(currentTemp) : fToC(currentTemp)) : currentTemp;
|
|
1010
1012
|
|
|
1011
1013
|
serviceThermostat.getCharacteristic(characteristicCurrentTemp).updateValue(newValue);
|
|
1012
1014
|
}
|
|
@@ -1022,6 +1024,14 @@ export default (api, accessories, config, tado, telegram) => {
|
|
|
1022
1024
|
|
|
1023
1025
|
if (!isNaN(humidity) && serviceThermostat.testCharacteristic(characteristicHumidity))
|
|
1024
1026
|
serviceThermostat.getCharacteristic(characteristicHumidity).updateValue(humidity);
|
|
1027
|
+
|
|
1028
|
+
Logger.debug(`Setting new values for thermostat ${acc.displayName}.`, {
|
|
1029
|
+
currentTemperature: newValue ?? 'N/A',
|
|
1030
|
+
targetTemperature: targetTemp ?? 'N/A',
|
|
1031
|
+
currentState: currentState ?? 'N/A',
|
|
1032
|
+
targetState: targetState ?? 'N/A',
|
|
1033
|
+
humidity: humidity ?? 'N/A'
|
|
1034
|
+
});
|
|
1025
1035
|
}
|
|
1026
1036
|
|
|
1027
1037
|
if (serviceHeaterCooler) {
|