diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm index 391d89521..624f11ad7 100755 --- a/fhem/FHEM/01_FHEMWEB.pm +++ b/fhem/FHEM/01_FHEMWEB.pm @@ -125,6 +125,7 @@ FHEMWEB_Initialize($) basicAuth basicAuthMsg column + defaultRoom endPlotNow:1,0 endPlotToday:1,0 fwcompress:0,1 @@ -656,11 +657,19 @@ FW_answerCall($) elsif($FW_detail) { FW_doDetail($FW_detail); } elsif($FW_room) { FW_showRoom(); } elsif(!$FW_cmdret && - !$FW_contentFunc && - AttrVal("global", "motd", "none") ne "none") { - my $motd = AttrVal("global","motd",undef); - $motd =~ s/\n/
/g; - FW_pO "
$motd
"; + !$FW_contentFunc) { + + $FW_room = AttrVal($FW_wname, "defaultRoom", ''); + if($FW_room ne '') { + FW_showRoom(); + + } else { + my $motd = AttrVal("global","motd",undef); + if(defined($motd)) { + $motd =~ s/\n/
/g; + FW_pO "
$motd
"; + } + } } FW_pO ""; return 0; @@ -2756,6 +2765,14 @@ FW_ActivateInform() attr WEB sortRooms DG OG EG Keller
+ + +
  • defaultRoom
    + show the specified room if no room selected, e.g. on execution of some + commands. If set hides the motd. Example:
    + attr WEB defaultRoom Zentrale +
  • +
  • sortby
    @@ -3222,6 +3239,14 @@ FW_ActivateInform() attr WEB sortRooms DG OG EG Keller

  • + +
  • defaultRoom
    + Zeigt den angegebenen Raum an falls kein Raum explizit ausgewählt + wurde. Achtung: falls gesetzt, wird motd nicht mehr angezeigt. + Beispiel:
    + attr WEB defaultRoom Zentrale +

  • +
  • sortby
    Der Wert dieses Attributs wird zum sortieren von Geräten in