From 75dcff9d68d23370338d2bcdfd88652bc36ecc8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20G=C3=B6ppl?= <24495490+mgoeppl@users.noreply.github.com> Date: Wed, 30 Jul 2025 21:49:55 +0200 Subject: [PATCH] Update HttpWebHookThermostatAccessory.js to return full accessory state --- src/homekit/accessories/HttpWebHookThermostatAccessory.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/homekit/accessories/HttpWebHookThermostatAccessory.js b/src/homekit/accessories/HttpWebHookThermostatAccessory.js index f99dcbe..d7daf1e 100644 --- a/src/homekit/accessories/HttpWebHookThermostatAccessory.js +++ b/src/homekit/accessories/HttpWebHookThermostatAccessory.js @@ -93,7 +93,11 @@ HttpWebHookThermostatAccessory.prototype.changeFromServer = function(urlParams) } } return { - "success" : true + "success" : true, + "currenttemperature": this.storage.getItemSync("http-webhook-current-temperature-" + this.id), + "targettemperature" : this.storage.getItemSync("http-webhook-target-temperature-" + this.id), + "currentstate": this.storage.getItemSync("http-webhook-current-heating-cooling-state-" + this.id), + "targetstate": this.storage.getItemSync("http-webhook-target-heating-cooling-state-" + this.id) }; }