'
. '
'
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"
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':