Probleme mit repeatcmd und wait_timer

Begonnen von KNUT345, 12 November 2016, 18:45:53

Vorheriges Thema - Nächstes Thema

KNUT345

Hallo Zusammen,
ich komm einfach nicht weiter.
Habe mir ein Anwesenheitstool für Fritz-Box mit 2 Repeatern mit DOIF gebaut.
Im Prinzip funktioniert es auch, manchmal fehlt jedoch die Befehlwiederholung und deshalb kommt es dann zu einem Plotabriß.
Ich hab schon eine Variante mit komplexer Struktur und derzeit eine Variante mit jedem Fall einzel als DOELSEIF aber wie gesagt es funktioniert nicht zuverlässig.
Ich vermute immer wenn das Handy über Roaming den Accespoint wechselt, dann geht der wait_timer verloren.

Bin für jeden Tipp dankbar.
Grüße


([Fritz_Box:mac_xx] eq "inactive") (
set FB_Handy absent,
set HomeStatus absent)
DOELSEIF ([Fritz_Box:mac_xx] =~ "WLAN, 0 / 0 Mbit/s, 0" and [Fritz_Repeater_WZ:mac_xx] =~ "WLAN, 0 / 0 Mbit/s, 0") (
set FB_Handy absent,
set HomeStatus absent)
DOELSEIF ([Fritz_Box:mac_xx] =~ "WLAN, 0 / 0 Mbit/s, 0" and [Fritz_Repeater_OG2:mac_xx] =~ "WLAN, 0 / 0 Mbit/s, 0") (
set FB_Handy absent,
set HomeStatus absent)
DOELSEIF ([Fritz_Box:mac_xx] =~ "WLAN, 0 / 0 Mbit/s, 0"
      and [Fritz_Repeater_WZ:mac_xx] eq "inactive"
      and [Fritz_Repeater_OG2:mac_xx] eq "inactive") (
set FB_Handy absent,
set HomeStatus absent)
DOELSEIF ([Fritz_Box:mac_xx] eq "inactive" and
          [Fritz_Repeater_WZ:mac_xx] eq "inactive" and
          [Fritz_Repeater_OG2:mac_xx] eq "inactive") (
set FB_Handy absent,
set HomeStatus absent)
DOELSE (
set FB_Handy present,
set HomeStatus present)


Korrektes Reading:

Device Fritz_Box 12.11.2016 18:28
cmd 6 12.11.2016 18:14
cmd_event Fritz_Box 12.11.2016 18:14
cmd_nr 6 12.11.2016 18:14
e_Fritz_Box_mac_xx Handy (WLAN 71 / 25 Mbit/s 53) 12.11.2016 18:28
e_Fritz_Repeater_OG2_mac_xx inactive 12.11.2016 18:22
state cmd_6 12.11.2016 18:14
wait_timer 12.11.2016 19:14:58 cmd_6 Fritz_Box 12.11.2016 18:14