From 32c4974704099d58da24e592fb16a62dac96f298 Mon Sep 17 00:00:00 2001 From: fraggle-iw <93135495+fraggle-iw@users.noreply.github.com> Date: Mon, 25 Apr 2022 17:51:37 +0200 Subject: [PATCH 1/2] Update danfoss.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi, according to the Danfoss documentation the default value für load_estimate is -8000 therfore is added min and max for this expose. --- devices/danfoss.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devices/danfoss.js b/devices/danfoss.js index b3dc3f88145be..792f6174c0d03 100644 --- a/devices/danfoss.js +++ b/devices/danfoss.js @@ -79,7 +79,8 @@ module.exports = [ .withDescription('Mean radiator load for room calculated by gateway for load balancing purposes (-8000=undefined)') .withValueMin(-8000).withValueMax(2000), exposes.numeric('load_estimate', ea.STATE_GET) - .withDescription('Load estimate on this radiator'), + .withDescription('Load estimate on this radiator') + .withValueMin(-8000).withValueMax(65535), exposes.binary('preheat_status', ea.STATE_GET, true, false) .withDescription('Specific for pre-heat running in Zigbee Weekly Schedule mode'), exposes.enum('adaptation_run_status', ea.STATE_GET, ['none', 'in_progress', 'found', 'lost']) From 275d50620dbc5fc70d9759d5b5ec9f136b5a508a Mon Sep 17 00:00:00 2001 From: fraggle-iw <93135495+fraggle-iw@users.noreply.github.com> Date: Tue, 26 Apr 2022 07:59:33 +0200 Subject: [PATCH 2/2] Update danfoss.js --- devices/danfoss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices/danfoss.js b/devices/danfoss.js index 792f6174c0d03..8653bcf16cfdc 100644 --- a/devices/danfoss.js +++ b/devices/danfoss.js @@ -80,7 +80,7 @@ module.exports = [ .withValueMin(-8000).withValueMax(2000), exposes.numeric('load_estimate', ea.STATE_GET) .withDescription('Load estimate on this radiator') - .withValueMin(-8000).withValueMax(65535), + .withValueMin(-8000).withValueMax(3600), exposes.binary('preheat_status', ea.STATE_GET, true, false) .withDescription('Specific for pre-heat running in Zigbee Weekly Schedule mode'), exposes.enum('adaptation_run_status', ea.STATE_GET, ['none', 'in_progress', 'found', 'lost'])