FHEM Forum

FHEM - Hardware => FRITZ!Box => Thema gestartet von: rainer1962 am 04 Juni 2017, 20:34:02

Titel: Fritz Box
Beitrag von: rainer1962 am 04 Juni 2017, 20:34:02
Hallo,
es gibt bei FritzBox ein Reading welches "box_connect" heisst.
Dieses hat bei mir den Wert 5.

Kann mir jemand erklären welchen Zustand dieses Reading beschreibt ?
Leider steht nichts davon in der Doku.

gruss Rainer
Titel: Antw:Fritz Box
Beitrag von: kumue am 05 Juni 2017, 06:46:07
ich hab mal in die 72_FRITZBOX.pm geschaut und dieses gefunden...

$queryStr .= "&box_connect=connection0:status/connect"; # Internet connection state

Wenn man nach box_connect sucht, ist das Reading in den Posts immer 5
Titel: Antw:Fritz Box
Beitrag von: Ralf W. am 05 Juni 2017, 09:37:24
Mögliche Werte:

? = Unconfigured
? = Connecting
? = Authenticating
? = PendingDisconnect
? = Disconnecting
3 = Disconnected
5 = Connected


Leider keine weitere Beschreibung gefunden und kann aktuell nicht testen.

MfG

<EDIT>
3 hinzugefügt (Kabelbox)
</EDIT>
Titel: Antw:Fritz Box
Beitrag von: SabineT am 05 Juni 2017, 10:15:00
Der Wert wird über LUA von der FritzBox abgefragt. Leider gibt es dazu von AVM keine Doku, jedenfalls hab ich nichts dazu gefunden.

Ich frag bei mir den Linkstatus (und anderes) mittels UserReading über TR064 ab:
attr FritzBox userReadings DSL_PPPLinkStatus {my $resp=fhem("get FritzBox tr064Command WANPPPConnection:1 wanpppconn1 GetInfo",1);;;;$resp =~/'NewConnectionStatus' => '(.*)'/;;;;return $1;;;;},\
DSL_PPPLink_Uptime {my $resp=fhem("get FritzBox tr064Command WANPPPConnection:1 wanpppconn1 GetInfo",1);;;;$resp =~/'NewUptime' => '(.*)'/;;;;return $1;;;;},\
DSL_Link_Status {my $resp=fhem("get FritzBox tr064Command WANDSLLinkConfig:1 wandsllinkconfig1 GetInfo",1);;;;$resp=~/'NewLinkStatus' => '(.*)'/;;;;return $1;;;;},\
DSL_Link_Uptime {my $resp=fhem("get FritzBox tr064Command WANPPPConnection:1 wanpppconn1 GetInfo",1);;;;$resp =~/'NewUptime' => '(.*)'/;;;;return $1;;;;},\
DSL_IF_Status {my $resp=fhem("get FritzBox tr064Command WANDSLInterfaceConfig:1 wandslifconfig1 GetInfo",1);;;;$resp =~/'NewStatus' => '(.*)'/;;;;return $1;;;;}

da kommen die Ergebnisse in lesbarer Form zurück (also z.B. "Connected" oder "Up").