2014.04.02 21:36:53 2: PRESENCE: error while processing device Handy - unexpected function output (expected 0 or 1): RemoteFritzBoxWeb error http://192.168.x.x/wlan/wlan_settings.lua?sid=eddb5af316b5fc5d: Select timeout/error: during Web query
Use of uninitialized value in hash element at ./FHEM/01_FHEMWEB.pm line 1186.
Use of uninitialized value in split at ./FHEM/01_FHEMWEB.pm line 1193.
Use of uninitialized value in hash element at fhem.pl line 1446.
Use of uninitialized value in hash element at ./FHEM/01_FHEMWEB.pm line 1186.
Use of uninitialized value in split at ./FHEM/01_FHEMWEB.pm line 1193.
Use of uninitialized value in hash element at fhem.pl line 1446.
Use of uninitialized value in hash element at fhem.pl line 1446.
Use of uninitialized value in hash element at ./FHEM/01_FHEMWEB.pm line 1186.
Use of uninitialized value in split at ./FHEM/01_FHEMWEB.pm line 1193.
Use of uninitialized value in hash element at fhem.pl line 1446.
Use of uninitialized value in hash element at ./FHEM/01_FHEMWEB.pm line 1186.
Use of uninitialized value in split at ./FHEM/01_FHEMWEB.pm line 1193.
2014.04.02 21:48:14 3: update get http://fhem.de/fhemupdate4/svn/controls_fhem.txt
Use of uninitialized value in hash element at ./FHEM/01_FHEMWEB.pm line 1186.
Use of uninitialized value in split at ./FHEM/01_FHEMWEB.pm line 1193.
Use of uninitialized value in hash element at fhem.pl line 1446.
Use of uninitialized value in numeric comparison (<=>) at fhem.pl line 1144.
Use of uninitialized value in numeric comparison (<=>) at fhem.pl line 1144.
Use of uninitialized value in numeric comparison (<=>) at fhem.pl line 1144.
Use of uninitialized value in numeric comparison (<=>) at fhem.pl line 1144.
Use of uninitialized value in numeric comparison (<=>) at fhem.pl line 1144.
Use of uninitialized value in numeric comparison (<=>) at fhem.pl line 1144.
Use of uninitialized value in numeric comparison (<=>) at fhem.pl line 1144.
Hallo,
mir ist heute auch etwas aufgefallen. Presence geht nicht mehr ...
Handy anwesend = ok
Handy abwesend = auch ok ??????????
Zitat
2014.04.03 15:58:05.637 5: PRESENCE_ProcessLocalScan: Handy_Marina|0|present
2014.04.03 15:58:12.446 5: PRESENCE (Handy_Rainer) - resetting Timer
2014.04.03 15:58:12.447 5: PRESENCE (Handy_Rainer) - starting Blocking call for mode lan-ping
2014.04.03 15:58:12.456 5: PRESENCE_DoLocalPingScan: Handy_Rainer|192.168.25.35|0|4
2014.04.03 15:58:14.645 5: PRESENCE (Handy_Marina) - resetting Timer
2014.04.03 15:58:14.646 5: PRESENCE (Handy_Marina) - starting Blocking call for mode lan-ping
2014.04.03 15:58:14.655 5: PRESENCE_DoLocalPingScan: Handy_Marina|192.168.25.23|0|4
2014.04.03 15:58:15.607 5: PRESENCE (Handy_Rainer) - ping command returned with output:
PING 192.168.25.35 (192.168.25.35): 56 data bytes
64 bytes from 192.168.25.35: icmp_seq=0 ttl=64 time=5.079 ms
64 bytes from 192.168.25.35: icmp_seq=1 ttl=64 time=9.833 ms
64 bytes from 192.168.25.35: icmp_seq=2 ttl=64 time=9.073 ms
64 bytes from 192.168.25.35: icmp_seq=3 ttl=64 time=137.787 ms
--- 192.168.25.35 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 5.079/40.443/137.787/56.231 ms
2014.04.03 15:58:15.614 5: PRESENCE_ProcessLocalScan: Handy_Rainer|0|present
2014.04.03 15:58:20.673 5: PRESENCE (Handy_Marina) - ping command returned with output:
PING 192.168.25.23 (192.168.25.23): 56 data bytes
64 bytes from DiskStation (192.168.25.41): Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 00 5400 0000 0 0040 40 01 1887 192.168.25.41 192.168.25.23
64 bytes from DiskStation (192.168.25.41): Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 00 5400 0000 0 0040 40 01 1887 192.168.25.41 192.168.25.23
64 bytes from DiskStation (192.168.25.41): Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 00 5400 0000 0 0040 40 01 1887 192.168.25.41 192.168.25.23
64 bytes from DiskStation (192.168.25.41): Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 00 5400 0000 0 0040 40 01 1887 192.168.25.41 192.168.25.23
--- 192.168.25.23 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss
2014.04.03 15:58:20.679 5: PRESENCE_ProcessLocalScan: Handy_Marina|0|present
2014.04.03 15:58:23.623 5: PRESENCE (Handy_Rainer) - resetting Timer
2014.04.03 15:58:23.624 5: PRESENCE (Handy_Rainer) - starting Blocking call for mode lan-ping
2014.04.03 15:58:23.633 5: PRESENCE_DoLocalPingScan: Handy_Rainer|192.168.25.35|0|4
Woran kann das liegen ???
Mfg
Rainer Müller
noch mal hallo,
ich habe mir mal das presence-modul angesehen und gesehen dass es irgendwie nicht mit meiner pingversion zusammenarbeitet. Schuld daran ist folgende Zeile:
Zitat$return = "$name|$local|".($temp =~ /\d+ [Bb]ytes (from|von)/ ? "present" : "absent");
ob der Ping in ordnung ist oder nicht , es kommt bei meiner ping-version immer diese zeichenkette.
Nur wenn der ping nicht erfolgreich ist kommt bei meiner pingversion "Destination.Host.Unreachable".
da habe ich die zeile abgeändert in folgende :
Zitat$return = "$name|$local|".($temp =~ /.*Destination.Host.Unreachable.*/ ? "absent" : "present");
Kann man das irgendwie abfangen .. Ich weiss nicht woher diese andere pingversion komt ... es hatte immer funktioniert ...
Ich habe fhem auf einer DS412+ laufen und da kam jetzt auch mal nen update wieder an ...
gruss rainer
Hallo zusammen,
ja da liese sich was machen, mir fehlt nur leider mal wieder die Zeit.
Ich hoffe ich denk die Tage mal dran.
Gruß
Markus
Hallo Markus,
danke Dir schon mal im voraus ....
Mfg
Rainer
Den Fix gibts morgen via update Befehl.
Viele Grüße
Markus
Hallo Markus,
danke Dir fürs Update ...
funzt hervorragend ...
Gruss Rainer
Hallo zusammen,
hoffe das gehört hierher....Also: habe das Problem, dass sich Fhem fast täglich verabschiedet, was gerade in dieser teilweise doch recht heißen Zeit ziemlich doof ist, da sich die Dachrolläden nicht mehr automatisch schließen wenn die Putzfrau wieder weg ist ;-) . Im normalen Log (Verbose 3) finde ich an der letzten Stelle, bevor ich dem Cubieboard den Strom weggenommen habe den Eintrag: "CallBlockingFn: Can't connect to localhost:7072".
Also Verbose 5 aktiviert und siehe da am gleichen Tag (auch noch an dem, an dem die Putzi da ist) bleiben die Rolläden oben, weil Fhem hängt. Nach durchsehen des Log ist mir folgendes im Verhalten von Presence aufgefallen:
Normalerweise sieht das im Log z.B. so aus:
2014.07.23 08:56:53 5: PRESENCE (sz_tv) - ping command returned with output:
PING 192.168.1.29 (192.168.1.29) 56(84) bytes of data.
64 bytes from 192.168.1.29: icmp_req=1 ttl=64 time=1.50 ms
64 bytes from 192.168.1.29: icmp_req=2 ttl=64 time=4.13 ms
64 bytes from 192.168.1.29: icmp_req=3 ttl=64 time=2.16 ms
64 bytes from 192.168.1.29: icmp_req=4 ttl=64 time=2.61 ms
Und bevor Fhem abschmiert aber so:
2014.07.23 08:56:56 5: PRESENCE (wz_tv) - ping command returned with output:
PING 192.168.1.14 (192.168.1.14) 56(84) bytes of data.
From 192.168.1.124 icmp_seq=1 Destination Host Unreachable
From 192.168.1.124 icmp_seq=2 Destination Host Unreachable
From 192.168.1.124 icmp_seq=3 Destination Host Unreachable
From 192.168.1.124 icmp_seq=4 Destination Host Unreachable
--- 192.168.1.14 ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3005ms
pipe 3
Wo kommt die IP 192.168.1.124 her? In Fhem ist kein Device definiert, welches diese IP hat. Muss heute Abend zuhause mal in der Fritzbox schauen welches Gerät diese IP belegt...
Hat jemand eine Ahnung?
Grüße aus Heidelberg
Armin
Nachtrag: die 192.168.1.124 gehört meinem Cubieboard auf dem Fhem läuft...trotzdem verstehe ich es nicht....
Hallo!
Mir ist heute auch aufgefallen das Presence bei den Devices bei mir als "Active" stehen aber kein state(present/absent) mehr hat.
Habe schon Fhem/Cubitruck neugestartet, bluetooth scheint auch zu funktionieren, denn ich kann meine Device(über putty) sehen.
Hat noch jemand diesen Fehler??
Das letzte log als Present war am 23.07.14!
Mfg Steffen
Hi !
Mit meiner 7490 funktioniert Presence über die Abfrage des Webfrontends auch nicht - ich bin immer als Active markiert. Das Log sagt dazu:
2014.07.31 20:39:35 2: PRESENCE: error while processing device Chris - unexpected function output (expected 0 or 1): RemoteFritzBoxWeb device=<GalaxyS3> not found
Gibts da Ideen ?
Chris
Da steht doch alles da, was man wissen muss. Das Gerät GalaxyS3 existiert nicht.
Naja doch, das gibt es schon ;-)
Meine Annahme war jetzt, dass er das device Chris als Active schreibt wenn er das S3 findet und als deactivated wenn er es nicht findet. Es wird aber immer als Active angezeigt, egal ob ich mit dem Handy im WLAN hänge oder nicht. Demzufolge soll doch der Rückgabewert auch ne 0 oder 1 sein, und nicht eine Fehlermeldung. Oder hab ich da gerade nen Denkfehler ?
Hallo,
entweder habe ich Tomaten auf den Augen oder du zeigst uns einfach deine Defines zu deinen Geräten nicht.
Ohne diese werden wir hier im Nebel stochern und das wird niemand lange machen (wollen).
http://forum.fhem.de/index.php/topic,16311.0.html (http://forum.fhem.de/index.php/topic,16311.0.html)
Grüße
Oh,
da haste natürlich Recht... Sorry...
Folgendes habe ich konfiguriert:
define Chris PRESENCE function {RemoteFritzBoxWeb("<GalaxyS3>")} 120 120
define RemoteFritzBox dummy
attr RemoteFritzBox verbose 5
Die Einwahl scheint lt. LogFile zu klappen:
2014.08.01 13:23:05 5: Login to fb with 192.168.178.1,Benutzerxxx,PassXXX
2014.08.01 13:23:06 5: Login SID=7ef9e757e166xxxx
Probiere es 'mal mit
define Chris PRESENCE function {RemoteFritzBoxWeb("GalaxyS3")} 120 120
also ohne die "<" und ">".
PRESENCE (freundinAndroid) - error while processing check: unexpected function output (expected 0 or 1): RemoteFritzBoxWeb error http://192.168.178.1/wlan/wlan_settings.lua?sid=fb1f0408aafc11d0: Select timeout/error: during Web query
Bekomm ich auch wenn ich das 2. Handy eintragen/überwachten möchte. Hier die definition:
define Home_Status dummy
attr Home_Status group Hausstatus
attr Home_Status setList on off
#Fritzbox checker
define newanAndroid PRESENCE function {RemoteFritzBoxWeb("android-ef1126424bb4b2ec")} 60 60
define act_newanAndroid_present notify newanAndroid:present set Home_Status on
define act_newanAndroid_absent notify newanAndroid:absent {\
if(Value("freundinAndroid") eq "absent") {\
fhem("set Home_Status off")\
}\
}
define freundinAndroid PRESENCE function {RemoteFritzBoxWeb("android-freundin")} 60 60
define act_freundinAndroid_present notify freundinAndroid:present set Home_Status on
define act_freundinAndroid_absent notify freundinAndroid:absent {\
if( Value("newanAndroid") eq "absent"){\
fhem("set Home_Status off")\
}\
}
Aber nur im ersten countdown. Danach funktioniert die Funktion problemlos?
Jedoch funktioniert der Status wie er soll?