-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Aufnahme von ELV-SH-BS2 und HmIP-WHS2
Aufnahme von ELV-SH-BS2 und HmIP-WHS2
- Loading branch information
1 parent
144377e
commit 70caec0
Showing
4 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
function ELV_SH_BS2($component) { | ||
|
||
if(!isset($component['button'])) { | ||
$component['button'] = 'switch'; | ||
} | ||
|
||
if ($component['parent_device_interface'] == 'HmIP-RF' && $component['visible'] == 'true' && isset($component['STATE'])) { | ||
|
||
// ShowTime - Uhrzeit der letzten Änderung anzeigen | ||
if(isset($component['showtime'])) | ||
{ | ||
if($component['showtime'] == "true") { $ShowTime = '<span class="info" data-id="' . $component['ise_id'] . 't" data-component="showtime" data-datapoint="showtime"></span>' ; } | ||
else { $ShowTime = ''; } | ||
} | ||
else { $ShowTime = ''; } | ||
|
||
|
||
if (!isset($component['color'])) $component['color'] = '#FFCC00'; | ||
return '<div class="hh" style=\'border-left-color: '.$component['color'].'; border-left-style: solid;\'>' | ||
. '<div class="pull-left"><img src="icon/' . $component["icon"] . '" class="icon">' . $component['name'] . '</div>' | ||
. '<div class="pull-right">' | ||
. $ShowTime | ||
. '<span class="info set" data-id="' . $component['STATE'] . '" data-component="' . $component['component'] . '" data-datapoint="STATE" data-set-id="' . $component['STATE'] . '" data-button="' . $component['button'] . '" data-set-value=""></span>' | ||
. '</div>' | ||
. '</div>'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
function HmIP_WHS2($component) { | ||
|
||
if(!isset($component['button'])) { | ||
$component['button'] = 'switch'; | ||
} | ||
|
||
if ($component['parent_device_interface'] == 'HmIP-RF' && $component['visible'] == 'true' && isset($component['STATE'])) { | ||
if (!isset($component['color'])) $component['color'] = '#FFCC00'; | ||
return '<div class="hh" style=\'border-left-color: '.$component['color'].'; border-left-style: solid;\'>' | ||
. '<div class="pull-left"><img src="icon/' . $component["icon"] . '" class="icon">' . $component['name'] . '</div>' | ||
. '<div class="pull-right">' | ||
. '<span class="info set" data-id="' . $component['STATE'] . '" data-component="' . $component['component'] . '" data-datapoint="STATE" data-set-id="' . $component['STATE'] . '" data-button="' . $component['button'] . '" data-set-value=""></span>' | ||
. '</div>' | ||
. '</div>'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters