FHEM Forum

FHEM - Hausautomations-Systeme => Unterstützende Dienste => Thema gestartet von: CQuadrat am 06 November 2019, 13:23:22

Titel: Modul PRESENCE: Attribute retryInterval und retryCount lassen sich nicht belegen
Beitrag von: CQuadrat am 06 November 2019, 13:23:22
Hallo Zusammen,

mir ist aufgefallen, dass die in der Commandref genannten Attribute retryInterval und retryCount sich im PRESENCE-Modul nicht belegen lassen.

Im Code fehlen diese Attribute in der Initialisierung:

sub
PRESENCE_Initialize($)
{
    my ($hash) = @_;

    # Provider
    $hash->{ReadFn}   = "PRESENCE_Read";
    $hash->{ReadyFn}  = "PRESENCE_Ready";
    $hash->{SetFn}    = "PRESENCE_Set";
    $hash->{DefFn}    = "PRESENCE_Define";
    $hash->{NotifyFn} = "PRESENCE_Notify";
    $hash->{UndefFn}  = "PRESENCE_Undef";
    $hash->{AttrFn}   = "PRESENCE_Attr";
    $hash->{AttrList} = "do_not_notify:0,1 ".
                        "disable:0,1 ".
                        "disabledForIntervals ".
                        "fritzboxCheckSpeed:0,1 ".
                        "pingCount:1,2,3,4,5,6,7,8,9,10 ".
                        "bluetoothHciDevice ".
                        "absenceThreshold ".
                        "presenceThreshold ".
                        "absenceTimeout ".
                        "presenceTimeout ".
                        "powerCmd ".
                        $readingFnAttributes;
...


Das sollte doch leicht zu korrigieren sein. Ich habe mir vorerst mit userattr geholfen.


Viele Grüße

Christoph
Titel: Antw:Modul PRESENCE: Attribute retryInterval und retryCount lassen sich nicht belegen
Beitrag von: Markus Bloch am 09 November 2019, 08:58:27
Hallo Christoph,

Tatsache, vielen Dank für den Hinweis. Habe ich soeben geändert und eingecheckt.

Gibts ab morgen via update.

Gruß
Markus
Titel: Antw:Modul PRESENCE: Attribute retryInterval und retryCount lassen sich nicht belegen
Beitrag von: CQuadrat am 10 November 2019, 20:29:22
1000 Dank !!