diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm index 7f8401b52..525fcef5a 100755 --- a/fhem/FHEM/01_FHEMWEB.pm +++ b/fhem/FHEM/01_FHEMWEB.pm @@ -123,7 +123,7 @@ FHEMWEB_Initialize($) ############### # Initialize internal structures - map { addToAttrList($_) } ( "webCmd", "icon", "devStateIcon", "sortby"); + map { addToAttrList($_) } ( "webCmd", "icon", "devStateIcon", "sortby", "devStateStyle"); InternalTimer(time()+60, "FW_closeOldClients", 0, 0); $FW_dir = "$attr{global}{modpath}/www"; @@ -2391,7 +2391,8 @@ FW_devState($$) } - $txt = "
$txt
"; + my $style = AttrVal($d, "devStateStyle", ""); + $txt = "
$txt
"; if($hasOnOff) { # Have to cover: "on:An off:Aus", "A0:Aus AI:An Aus:off An:on" @@ -2945,6 +2946,15 @@ FW_dropdownFn()
+ +
  • devStateStyle
    + Specify an HTML style for the given device, e.g.:
    + +
  • +
    +
  • webCmd
    Colon separated list of commands to be shown in the room overview for a