diff --git a/fhem/CHANGED b/fhem/CHANGED index 3a84c8929..835661c29 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,7 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 95_Dashboard: support for alias attribute, which if set, is shown + instead of the device name in the left navigation - feature: 70_Pushover: Rewrite for Non-Blocking HttpUtils - much more readings - Support for emergency callback via push diff --git a/fhem/FHEM/95_Dashboard.pm b/fhem/FHEM/95_Dashboard.pm index b3a7b26a3..6077ae50e 100644 --- a/fhem/FHEM/95_Dashboard.pm +++ b/fhem/FHEM/95_Dashboard.pm @@ -339,6 +339,17 @@ sub Dashboard_attr($$$) { addToDevAttrList($name, "dashboard_tab" . ($1 + 1) . "backgroundimage"); } + # if an alias is set to the dashboard, replace the name shown in the left navigation + # by this alias + if ( + $cmd eq "set" + && $attrName =~ m/alias/ + ) { + my $url = '/dashboard/' . $name; + + $data{FWEXT}{$url}{NAME} = $attrVal; + } + return; }