Skip to content

Commit d34cc6e

Browse files
committed
HmIP-HAP aufgenommen
HmIP-HAP aufgenommen
1 parent 73ab775 commit d34cc6e

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

components/HmIP-HAP.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
function HmIP_HAP($component) {
3+
// if ($component['parent_device_interface'] == 'HmIP-RF' ) {
4+
$modalId = mt_rand();
5+
if (!isset($component['color'])) $component['color'] = '#00CC33';
6+
7+
8+
return '<div class="hh" style=\'border-left-color: '.$component['color'].'; border-left-style: solid;\'>'
9+
. '<div data-toggle="collapse" data-target="#' . $modalId . '">'
10+
. '<div class="pull-left"><img src="icon/' . $component["icon"] . '" class="icon">' . $component['name'] . '</div>'
11+
. '<div class="pull-right">'
12+
.'Belegung Funkband<span class="info" data-id="' . $component['CARRIER_SENSE_LEVEL'] . '" data-component="' . $component['component'] . '" data-datapoint="CARRIER_SENSE_LEVEL"></span>&nbsp;|&nbsp;'
13+
. 'Duty Cycle<span class="info" data-id="' . $component['DUTY_CYCLE_LEVEL'] . '" data-component="' . $component['component'] . '" data-datapoint="DUTY_CYCLE_LEVEL"></span>'
14+
15+
. '</div>'
16+
. '<div class="clearfix"></div>'
17+
. '</div>'
18+
19+
. '</div>';
20+
}
21+
//}

config/mapping.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,10 @@
565565
"name": "HmIP-CCU3",
566566
"icon": "ccu.png"
567567
},
568+
{
569+
"name": "HmIP-HAP",
570+
"icon": "ccu.png"
571+
},
568572
{
569573
"name": "RPI-RF-MOD",
570574
"icon": "ccu.png"

js/script.js.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2838,6 +2838,7 @@
28382838
}
28392839
break;
28402840
case 'HmIP-CCU3':
2841+
case 'HmIP-HAP':
28412842
case 'RPI-RF-MOD':
28422843
case 'HM-MOD-RPI-PCB':
28432844
$('[data-id="' + ise_id + '"]').html((Math.round(value * 10) / 10) + ' &percnt;');

0 commit comments

Comments
 (0)