nach dem auslösen von "set clearG msgErrors" passiert nichts.
ab zeile 1871:
die 3 internal namen sind falsch und der device cmd müsste korrekter weise "clear msgErrors" sein.
noch schöner wäre eine zusätzliche änderung von "iW__protoNames" nach "iW__protocol". natürlich auch eine änderung des entsprechenden readings.
if ($type eq "msgErrors"){#clear message events for all devices which has problems
my @devL = split(",",InternalVal($hash->{NAME},"iW__protoNames",""));
push @devL,split(",",InternalVal($hash->{NAME},"iCRI__protocol",""));
push @devL,split(",",InternalVal($hash->{NAME},"iERR__protocol",""));
foreach my $dName (HMinfo_noDup(@devL)){
CUL_HM_Set($defs{$dName},$dName,"clear","msgErrors");
}
}
edit: fehler gefunden.
moin,
hier sind immer noch kleine änderungen nötig:
Zitat#if ($type eq "msgErrors"){#clear message events for all devices which has problems
if ($type eq "msgErrors"){#clear message errors for all devices which has problems
my @devL = split(",",InternalVal($hash->{NAME},"iW__protoNames" ,""));
#push @devL,split(",",InternalVal($hash->{NAME},"iCRI__protoNames",""));
push @devL,split(",",InternalVal($hash->{NAME},"iCRI__protocol",""));
push @devL,split(",",InternalVal($hash->{NAME},"iERR__protocol" ,""));
foreach my $dName (HMinfo_noDup(@devL)){
#CUL_HM_Set($defs{$dName},$dName,"clear","msgEvents");
CUL_HM_Set($defs{$dName},$dName,"clear","msgErrors");
}
}
danke, erledigt.