diff --git a/README.md b/README.md index 35c0011..58656b3 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins) [![Discord](https://img.shields.io/discord/432663330281226270?color=728ED5&logo=discord&label=discord)](https://discord.gg/j5WwJTB) -Nest plug-in for [Homebridge](https://github.com/nfarina/homebridge) using the native Nest API. See what's new in [release 4.6.4](https://github.com/chrisjshull/homebridge-nest/releases/tag/v4.6.4). +Nest plug-in for [Homebridge](https://github.com/nfarina/homebridge) using the native Nest API. See what's new in [release 4.6.5](https://github.com/chrisjshull/homebridge-nest/releases/tag/v4.6.5). Integrate your Nest Thermostat, Temperature Sensors, Nest Protect, and Nest x Yale Lock devices into your HomeKit system. Both Nest Accounts (pre-August 2019) and Google Accounts are supported. diff --git a/lib/nest-connection.js b/lib/nest-connection.js index 5e547f4..abbbd3f 100644 --- a/lib/nest-connection.js +++ b/lib/nest-connection.js @@ -1169,7 +1169,7 @@ class Connection { if (thisDevice.uses_heat_link) { // EU/UK Heat Link thermostats use some slightly different fields, and support heat mode only if (thisDevice.target_temperature_type === undefined) { - thisDevice.target_temperature_type = (thisDevice.maint_band_lower == 0) ? 'OFF' : 'HEAT'; + thisDevice.target_temperature_type = (thisDevice.maint_band_lower == 0) ? 'off' : 'heat'; } if (thisDevice.hvac_heater_state === undefined) { thisDevice.hvac_heater_state = !thisDevice.leaf; diff --git a/lib/nest-thermostat-accessory.js b/lib/nest-thermostat-accessory.js index e59eb04..3b8d919 100644 --- a/lib/nest-thermostat-accessory.js +++ b/lib/nest-thermostat-accessory.js @@ -290,6 +290,7 @@ class NestThermostatAccessory extends NestDeviceAccessory { } this.conn.verbose('setTargetHeatingCooling', val); + this.device.target_temperature_type = val; this.setPropertyAsync('shared', 'hvac_mode', val, 'target heating cooling').asCallback(callback); } diff --git a/package.json b/package.json index 73fa392..2749181 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "prepublishOnly": "npm run lint", "preversion": "npm run lint" }, - "version": "4.6.4", + "version": "4.6.5", "warnings": [ { "code": "ENOTSUP", @@ -45,7 +45,7 @@ "node": ">=7.0.0", "homebridge": ">=0.2.5" }, - "pkgid": "homebridge-nest@4.6.4" + "pkgid": "homebridge-nest@4.6.5" } ] }