From c2c9d111f8f77a3749b8ead959878a6221312d05 Mon Sep 17 00:00:00 2001 From: Gerti1972 Date: Wed, 18 Sep 2024 19:14:58 +0200 Subject: [PATCH 1/4] =?UTF-8?q?HmIP-eTRV-3=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/mapping.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/mapping.json b/config/mapping.json index d861fb8..e6f8ef3 100644 --- a/config/mapping.json +++ b/config/mapping.json @@ -481,6 +481,10 @@ "name": "HmIP-eTRV-F", "icon": "sani_heating.png" }, + { + "name": "HmIP-eTRV-3", + "icon": "sani_heating.png" + }, { "name": "HmIP-eTRV-2I9F", "icon": "sani_heating.png" From 504d8db669a4ca528e2913c226181c70b463c631 Mon Sep 17 00:00:00 2001 From: Gerti1972 Date: Wed, 18 Sep 2024 19:16:26 +0200 Subject: [PATCH 2/4] =?UTF-8?q?HmIP-eTRV-3=20hinzugef=C3=BCgt=20und=20HmIP?= =?UTF-8?q?-eTRV-F=20angepasst?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/script.js.php | 46 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/js/script.js.php b/js/script.js.php index 8937809..9ee71d5 100644 --- a/js/script.js.php +++ b/js/script.js.php @@ -729,8 +729,7 @@ case 'HmIP-eTRV-E-S': case 'HmIP-eTRV-CL': case 'HmIP-eTRV-C': - case 'HmIP-eTRV-C-2': - case 'HmIP-eTRV-F': + case 'HmIP-eTRV-C-2': switch (datapoint) { case 'ACTUAL_TEMPERATURE': $('[data-id="' + ise_id + '"]').html(' ' + (Math.round(value * 10) / 10).toFixed(1) + ' °C    '); @@ -771,6 +770,49 @@ $('[data-id="' + ise_id + '"]').html(value); } break; + case 'HmIP-eTRV-F': + case 'HmIP-eTRV-3': + switch (datapoint) { + case 'ACTUAL_TEMPERATURE': + $('[data-id="' + ise_id + '"]').html(' ' + (Math.round(value * 10) / 10).toFixed(1) + ' °C    '); + break; + case 'SET_POINT_MODE': + if (value === '0') { + $('[data-id="' + ise_id + '"]').html(''); + $('[data-id="' + ise_id + '"]').attr('data-set-id', parseInt(ise_id)-10); //MANU_MODE + $('[data-id="' + ise_id + '"]').attr('data-set-value', '1'); + } else { + $('[data-id="' + ise_id + '"]').html(''); + $('[data-id="' + ise_id + '"]').attr('data-set-id', parseInt(ise_id)-10); //AUTO_MODE + $('[data-id="' + ise_id + '"]').attr('data-set-value', '0'); + } + break; + case 'ACTIVE_PROFILE': + if (value < 4) $('[data-id="' + ise_id + '"]').html(value + ' '); + else $('[data-id="' + ise_id + '"]').html(value + ' '); + break; + case 'SET_POINT_TEMPERATURE': + $('[data-id="' + ise_id + '"]').html(' ' + (Math.round(value * 10) / 10).toFixed(1) + ' °C'); + break; + case 'LEVEL': + $('[data-id="' + ise_id + '"]').html('     ' + (Math.round(value * 1000) / 10) + ' %'); + break; + case 'WINDOW_STATE': + if (value === '0') { + $('[data-id="' + ise_id + '"]').html(''); + } else { + $('[data-id="' + ise_id + '"]').html(''); + } + break; + case 'LOW_BAT': + if (value === 'true') { + $('[data-id="' + ise_id + '"]').html(''); + } + break; + default: + $('[data-id="' + ise_id + '"]').html(value); + } + break; case 'HmIP-FALMOT-C12': switch (datapoint) { case 'LEVEL': From a6a37619de47ce0f2d29074e5089f27a333a67ef Mon Sep 17 00:00:00 2001 From: Gerti1972 Date: Wed, 18 Sep 2024 19:17:21 +0200 Subject: [PATCH 3/4] =?UTF-8?q?HmIP-eTRV-3=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/HmIP-eTRV-3.php | 75 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 components/HmIP-eTRV-3.php diff --git a/components/HmIP-eTRV-3.php b/components/HmIP-eTRV-3.php new file mode 100644 index 0000000..0da9ef7 --- /dev/null +++ b/components/HmIP-eTRV-3.php @@ -0,0 +1,75 @@ +' + . '
' + . '
' . $component['name'] . '
' + . '
' + . '' + . '' + . '' + . '' + . '' + . '' + . '' + . '
' + . '
' + . '
' + . '
+
' + . '
Temperatur: ' + . '
' + . '' + . '' + . '' + . '' + . '
' + . '   Heizprofil: ' + . '
' + . '' + . '' + . '' + . '
' + . '   Kühlprofil: ' + . '
' + . '' + . '' + . '' + . '
' + . '
' + . '
' + . '
' + . '
' + . '' + . '' + . '
' + . '
' + . '
' + . ''; + } +} From 57f6ea1995070a52622e936577c6bd1fcc76a3f6 Mon Sep 17 00:00:00 2001 From: Gerti1972 Date: Wed, 18 Sep 2024 19:17:56 +0200 Subject: [PATCH 4/4] =?UTF-8?q?HmIP-eTRV-F=20um=20K=C3=BChlbetrieb=20erwei?= =?UTF-8?q?tert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/HmIP-eTRV-F.php | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/components/HmIP-eTRV-F.php b/components/HmIP-eTRV-F.php index e9b1664..3ba7721 100644 --- a/components/HmIP-eTRV-F.php +++ b/components/HmIP-eTRV-F.php @@ -33,7 +33,7 @@ function HmIP_eTRV_F($component) { . '' . '' . '' - . '   Profil: ' + . '   Heizprofil: ' . '
' . '' - . '
' - . '' + . '' + . '   Kühlprofil: ' + . '
' + . '' + . '' + . '' + . '
' + . '' . '' . '
' . '
'