2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +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:
martinp876 2021-12-04 17:37:15 +00:00
parent 5301587614
commit 9288192213

View File

@ -432,10 +432,14 @@ sub HMinfo_status($){##########################################################
my %tmp; # remove duplicates
$hash->{iI_HM_IOdevices} = "";
$tmp{ReadingsVal($_,"cond",
InternalVal($_,"STATE","unknown"))}{$_} = 1 foreach( @IOdev);
foreach my $IOstat (sort keys %tmp){
$hash->{iI_HM_IOdevices} .= "$IOstat: ".join(",",sort keys %{$tmp{$IOstat}}).";";
$tmp{InternalVal($_,"owner_CCU","noVccu")}{ReadingsVal($_,"cond",InternalVal($_,"STATE","unknown"))}{$_} = 1 foreach(@IOdev);
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 ------