diff --git a/fhem/FHEM/33_readingsGroup.pm b/fhem/FHEM/33_readingsGroup.pm index 4bd5094b5..8ad8a5212 100644 --- a/fhem/FHEM/33_readingsGroup.pm +++ b/fhem/FHEM/33_readingsGroup.pm @@ -17,7 +17,7 @@ sub readingsGroup_Initialize($) $hash->{UndefFn} = "readingsGroup_Undefine"; #$hash->{SetFn} = "readingsGroup_Set"; $hash->{GetFn} = "readingsGroup_Get"; - $hash->{AttrList} = "nameIcons mapping separator style nameStyle valueStyle valueFormat timestampStyle noheading:1 notime:1 nostate:1"; + $hash->{AttrList} = "nameIcons mapping separator style nameStyle valueStyle valueFormat timestampStyle noheading:1 nolinks:1 notime:1 nostate:1"; $hash->{FW_detailFn} = "readingsGroup_detailFn"; $hash->{FW_summaryFn} = "readingsGroup_detailFn"; @@ -148,6 +148,7 @@ readingsGroup_2html($) my $d = $hash->{NAME}; my $show_heading = !AttrVal( $d, "noheading", "0" ); + my $show_links = !AttrVal( $d, "nolinks", "0" ); my $show_state = !AttrVal( $d, "nostate", "0" ); my $show_time = !AttrVal( $d, "notime", "0" ); @@ -178,7 +179,9 @@ readingsGroup_2html($) my $row = 1; $ret .= ""; - $ret .= "" if( $show_heading ); + my $txt = AttrVal($d, "alias", $d); + $txt = "$txt" if( $show_links ); + $ret .= "" if( $show_heading ); $ret .= "
$txt
"; foreach my $device (@{$devices}) { my $h = $defs{@{$device}[0]}; @@ -251,7 +254,8 @@ readingsGroup_2html($) $ret .= sprintf("", ($row&1)?"odd":"even"); $row++; - $ret .= ""; + $txt = "$txt" if( $show_links ); + $ret .= ""; $ret .= ""; $ret .= "" if( $show_time ); } @@ -316,7 +320,8 @@ readingsGroup_2html($) $ret .= sprintf("", ($row&1)?"odd":"even"); $row++; - $ret .= ""; + $txt = "$txt" if( $show_links ); + $ret .= ""; $ret .= ""; $ret .= "" if( $show_time ); } @@ -532,6 +537,8 @@ readingsGroup_Get($@)
  • noheading
    If set to 1 the readings table will have no heading.
  • +
  • nolinks
    + Disables the html links from the heading and the reading names.
  • nostate
    If set to 1 the state reading is excluded.
  • notime
$txt
$v
$fmtDateTime
$txt
$v
$t