mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
HMinfo:status improvment for multi-vccu usage
git-svn-id: https://svn.fhem.de/fhem/trunk@25293 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5301587614
commit
9288192213
@ -432,10 +432,14 @@ sub HMinfo_status($){##########################################################
|
|||||||
|
|
||||||
my %tmp; # remove duplicates
|
my %tmp; # remove duplicates
|
||||||
$hash->{iI_HM_IOdevices} = "";
|
$hash->{iI_HM_IOdevices} = "";
|
||||||
$tmp{ReadingsVal($_,"cond",
|
|
||||||
InternalVal($_,"STATE","unknown"))}{$_} = 1 foreach( @IOdev);
|
|
||||||
foreach my $IOstat (sort keys %tmp){
|
$tmp{InternalVal($_,"owner_CCU","noVccu")}{ReadingsVal($_,"cond",InternalVal($_,"STATE","unknown"))}{$_} = 1 foreach(@IOdev);
|
||||||
$hash->{iI_HM_IOdevices} .= "$IOstat: ".join(",",sort keys %{$tmp{$IOstat}}).";";
|
foreach my $vccu (sort keys %tmp){
|
||||||
|
$hash->{iI_HM_IOdevices} .= $hash->{iI_HM_IOdevices} eq "" ? "$vccu>": " $vccu>";
|
||||||
|
foreach my $IOstat (sort keys %{$tmp{$vccu}}){
|
||||||
|
$hash->{iI_HM_IOdevices} .= "$IOstat:".join(",",sort keys %{$tmp{$vccu}{$IOstat}}).";";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# ------- what about protocol events ------
|
# ------- what about protocol events ------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user