diff --git a/FHEM/01_FHEMWEB.pm b/FHEM/01_FHEMWEB.pm
index dd2add114..2e667fbbc 100755
--- a/FHEM/01_FHEMWEB.pm
+++ b/FHEM/01_FHEMWEB.pm
@@ -127,6 +127,7 @@ FHEMWEB_Initialize($)
addToAttrList("webCmd");
addToAttrList("icon");
addToAttrList("devStateIcon");
+ addToAttrList("sortby");
InternalTimer(time()+60, "FW_closeOldClients", 0, 0);
$FW_dir = "$attr{global}{modpath}/www";
@@ -1044,8 +1045,9 @@ FW_showRoom()
FW_pO "
";
FW_pO "";
- foreach my $d (sort { lc(AttrVal($a,"alias",$a)) cmp
- lc(AttrVal($b,"alias",$b)) } keys %{$group{$g}}) {
+ foreach my $d (sort { lc(AttrVal($a, "sortby", AttrVal($a,"alias",$a))) cmp
+ lc(AttrVal($b, "sortby", AttrVal($b,"alias",$b))) }
+ keys %{$group{$g}}) {
my $type = $defs{$d}{TYPE};
FW_pF "\n", ($row&1)?"odd":"even";
@@ -2905,6 +2907,14 @@ FW_htmlEscape($)
+
+ sortby
+ Take the value of this attribute when sorting the devices in the room
+ overview instead of the alias, or if that is missing the devicename
+ itself.
+
+
+
devStateIcon
First form:
@@ -2919,13 +2929,13 @@ FW_htmlEscape($)
attr lamp devStateIcon on:closed off:open
attr lamp devStateIcon .*:noIcon
-
Second form:
Perl regexp enclosed in {}. Example:
{'<div style="width:32px;height:32px;background-color:green"></div>'}
+
|