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
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
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>
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").