Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions components/HmIP-HAP-B1.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
function HmIP_HAP_B1($component) {
// if ($component['parent_device_interface'] == 'HmIP-RF' ) {
$modalId = mt_rand();
if (!isset($component['color'])) $component['color'] = '#00CC33';


return '<div class="hh" style=\'border-left-color: '.$component['color'].'; border-left-style: solid;\'>'
. '<div data-toggle="collapse" data-target="#' . $modalId . '">'
. '<div class="pull-left"><img src="icon/' . $component["icon"] . '" class="icon">' . $component['name'] . '</div>'
. '<div class="pull-right">'
.'Belegung Funkband<span class="info" data-id="' . $component['CARRIER_SENSE_LEVEL'] . '" data-component="' . $component['component'] . '" data-datapoint="CARRIER_SENSE_LEVEL"></span>&nbsp;|&nbsp;'
. 'Duty Cycle<span class="info" data-id="' . $component['DUTY_CYCLE_LEVEL'] . '" data-component="' . $component['component'] . '" data-datapoint="DUTY_CYCLE_LEVEL"></span>'

. '</div>'
. '<div class="clearfix"></div>'
. '</div>'

. '</div>';
}
//}
4 changes: 4 additions & 0 deletions config/mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,10 @@
"name": "HmIP-HAP",
"icon": "ccu.png"
},
{
"name": "HmIP-HAP-B1",
"icon": "ccu.png"
},
{
"name": "RPI-RF-MOD",
"icon": "ccu.png"
Expand Down
1 change: 1 addition & 0 deletions js/script.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -2839,6 +2839,7 @@
break;
case 'HmIP-CCU3':
case 'HmIP-HAP':
case 'HmIP-HAP-B1':
case 'HmIP-RFUSB':
case 'RPI-RF-MOD':
case 'HM-MOD-RPI-PCB':
Expand Down
Loading