FHEM Forum

FHEM => Anfängerfragen => Thema gestartet von: wendeling am 11 April 2017, 22:44:00

Titel: Anwesentheitskontrolle
Beitrag von: wendeling am 11 April 2017, 22:44:00
Hallo,
Ich möchte eine anwesentheitskontrolle einstellen.
Ich habe es mit LAN-Ping versucht .
Habe aber nur iPhones die das WLAN immer wieder abschalten.
Ich möchte es so einrichten, dass wenn sich einmal ein Handy eingeloggt hat, bleibt dieser Zustand 3 Std aktiv.

Wie kann ich das machen?
Titel: Antw:Anwesentheitskontrolle
Beitrag von: Otto123 am 11 April 2017, 23:16:21
Hi,

gegeben sei:
st_Dev_Otto welches Dein IPhone per lan-ping erkannt ist.
PersonOtto ist ein dummy

defmod di_Dev_Otto DOIF ([st_Dev_Otto] eq "absent")(set PersonOtto absent) DOELSEIF ([st_Dev_Otto] eq "present")(set PersonOtto present)
attr di_Dev_Otto room Status
attr di_Dev_Otto wait 10800

Der status von st_Dev_Otto kann innerhalb drei Stunden beliebig wechseln, PersonOtto bleibt nach jedem present weitere drei Stunden aktiv.

Ob das sinnvoll ist musst Du entscheiden.

Gruß Otto