diff --git a/fhem/FHEM/98_readingsWatcher.pm b/fhem/FHEM/98_readingsWatcher.pm index 8401b9712..08b9ebbad 100644 --- a/fhem/FHEM/98_readingsWatcher.pm +++ b/fhem/FHEM/98_readingsWatcher.pm @@ -418,11 +418,11 @@ sub OnTimer { @skipDevs = (); @allDevs = (); - ($hash->{helper}{readingActifity},$hash->{helper}{dead},$hash->{helper}{alive}) = split(':', AttrVal($name, 'readingActivity', 'none:dead:alive')); + ($hash->{helper}{readingActivity},$hash->{helper}{dead},$hash->{helper}{alive}) = split(':', AttrVal($name, 'readingActivity', 'none:dead:alive')); $hash->{helper}{dead} //= 'dead'; # if (!defined($dead)); $hash->{helper}{alive} //= 'alive'; # if (!defined($alive)); - $hash->{helper}{readingActifity} = '' if ($hash->{helper}{readingActifity} eq 'none'); + $hash->{helper}{readingActivity} = '' if ($hash->{helper}{readingActivity} eq 'none'); $hash->{helper}{delimiter} = AttrVal($name,'delimiter','_'); # -, --, _, __ @@ -597,18 +597,18 @@ sub checkDevice { my $d_d = $hash->{helper}{d_d}; if ((!$or_and && $d_d) || ($or_and && !$d_a)) { # tot bei OR und mindestens einem Toten || AND aber kein noch Lebender - $error = CommandSetReading(undef, "$device $hash->{helper}{readingActifity} $hash->{helper}{dead}") if ($hash->{helper}{readingActifity}); + $error = CommandSetReading(undef, "$device $hash->{helper}{readingActivity} $hash->{helper}{dead}") if ($hash->{helper}{readingActivity}); push @deadDevs, $device; # dead devices } else { # wenn es nicht tot ist müsste es eigentlich noch leben .... - $error = CommandSetReading(undef, "$device $hash->{helper}{readingActifity} $hash->{helper}{alive}") if ($hash->{helper}{readingActifity}); + $error = CommandSetReading(undef, "$device $hash->{helper}{readingActivity} $hash->{helper}{alive}") if ($hash->{helper}{readingActivity}); $hash->{helper}{alive_count} ++; # alive devices } Log3($name, 2, "$name, $error") if ($error); } else { Log3($name, 2, "$name, insufficient parameters for device $device - skipped !"); - CommandSetReading(undef, "$device $hash->{helper}{readingActifity} unknown") if ($hash->{helper}{readingActifity}); + CommandSetReading(undef, "$device $hash->{helper}{readingActivity} unknown") if ($hash->{helper}{readingActivity}); push @skipDevs, $device; } @@ -683,11 +683,11 @@ __END__
  • disable
    deactivate/activate the device

  • interval <seconds>
    Time interval for continuous check (default 60)

  • deleteUnusedReadings
    delete unused readings (default 1)

  • -
  • readingActifity (default none)
    +
  • readingActivity (default none)
    Similar to the HomeMatic ActionDetector, the module can set its own reading in the monitored device and save the monitoring status.
    - attr <name> readingActifity actifity
    + attr <name> readingActivity actifity
    Creates the additional reading actifity in the monitored devices and supplies it with the status dead or alive
    - attr <name> readingActifity activ:0:1
    + attr <name> readingActivity activ:0:1
    Creates the additional reading activ in the monitored devices and supplies it with the status 0 or 1

  • @@ -756,12 +756,12 @@ __END__
  • disable
    Deaktiviert das Device

  • interval <Sekunden> (default 60)
    Zeitintervall zur kontinuierlichen Überprüfung

  • deleteUnusedReadings (default 1)
    Readings mit dem Wert unused werden automatisch gelöscht

  • -
  • readingActifity (default none)
    +
  • readingActivity (default none)
    Das Modul kann ähnlich dem HomeMatic ActionDetector im überwachten Gerät ein eigenes Reading setzen und den Überwachungsstatus
    in diesem speichern. Beispiel :
    - attr <name> readingActifity actifity
    + attr <name> readingActivity actifity
    Erzeugt in den überwachten Geräten das zusäzliche Reading actifity und versorgt es mit dem Status dead bzw alive
    - attr <name> readingActifity aktiv:0:1
    + attr <name> readingActivity aktiv:0:1
    Erzeugt in den überwachten Geräten das zusätzliche Reading aktiv und versorgt es mit dem Status 0 bzw 1