File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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> | '
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+ //}
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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) + ' %');
You can’t perform that action at this time.
0 commit comments