From 07a63a37915ea4b7b9cbe01b416a2cf56fa90e0f Mon Sep 17 00:00:00 2001 From: fastcrash Date: Wed, 28 Jun 2017 20:01:11 +0200 Subject: [PATCH] added humidity to hm-cc-vg-1 --- app/Components/HM-CC-VG-1.php | 1 + assets/js/script.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/app/Components/HM-CC-VG-1.php b/app/Components/HM-CC-VG-1.php index 59353e0..58f4294 100644 --- a/app/Components/HM-CC-VG-1.php +++ b/app/Components/HM-CC-VG-1.php @@ -17,6 +17,7 @@ function HM_CC_VG_1($component) { . '' . '' . '' + . '' . '' . '' . '' diff --git a/assets/js/script.js b/assets/js/script.js index 64b5785..64d2d51 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -316,6 +316,9 @@ var updateDatapoints = function () { case 'ACTUAL_TEMPERATURE': $('[data-id="' + ise_id + '"]').html((Math.round(value * 10) / 10) + ' °C'); break; + case 'ACTUAL_HUMIDITY': + $('[data-id="' + ise_id + '"]').html((Math.round(value * 10) / 10) + ' %'); + break; case 'CONTROL_MODE': switch (value) { case '0':