diff --git a/components/CUX2801.php b/components/CUX2801.php index 34f372c..d96e200 100644 --- a/components/CUX2801.php +++ b/components/CUX2801.php @@ -179,4 +179,72 @@ function CUX2801($component) { . '' . ''; } + + // RGBW + if ($component['parent_device_interface'] == 'CUxD' && $component['visible'] == 'true' && isset($component['RGBW'])) { + $modalId = mt_rand(); + + if (!isset($component['color'])) $component['color'] = '#595959'; + // ShowTime - Uhrzeit der letzten Ă„nderung anzeigen + if(isset($component['showtime'])) + { + if($component['showtime'] == "true") { $ShowTime = '  ' ; } + else { $ShowTime = ''; } + } + else { $ShowTime = ''; } + return '
' + . '
' + . '
' . $component['name'] . '
' + . '
' + . $ShowTime + . '' + . '
' + . '
' + . '
' + . '
' + . '
' + . '
' + . '' + . '' + . '' + . '' + . '' + . '' + . '
' + . '
' + . '
' + . '
' + . '
' + . '
' + . '' + . '' + . '' + . '' + . '
' + . '
' + . '' + . '' + . '
' + . '
' + . '
' + . '
' + . '
' + . '
'; + } }