Hauptmenü

PRESENCE Fehler?

Begonnen von ChristianK., 02 April 2014, 22:22:49

Vorheriges Thema - Nächstes Thema

ChristianK.

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.
FHEM: 5.5 auf NUC unter Ubuntu
1x RFXTRX433, 1x CUL868_V3.4 (fw1.58)
CUL-MAX: MAX! Funk-Heizkörperthermostat, Fensterschalter
IT: 2 AB440 kompatible :-)

rainer1962

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
2xFHEM auf Raspi3,MAXLAN,HMLAN,KeyMatic,MAX Heizung,2x HM-WDS10_TH-O,3xHM-SEC-SD,3xHM Wandtaster 2-Kanal, 2xWandtaster 6-Kanal,1xHM Bewegungsmelder,4xHM EinbauActor,4x Jalousien Actor,2xEGPM2LAN,2xHM DimAktor,2xFritzbox 6840/6490,4-20ma Levelsensor-Ina219,PIP5048,Raspi2 als Floorplan,4xJeeLink

rainer1962

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
2xFHEM auf Raspi3,MAXLAN,HMLAN,KeyMatic,MAX Heizung,2x HM-WDS10_TH-O,3xHM-SEC-SD,3xHM Wandtaster 2-Kanal, 2xWandtaster 6-Kanal,1xHM Bewegungsmelder,4xHM EinbauActor,4x Jalousien Actor,2xEGPM2LAN,2xHM DimAktor,2xFritzbox 6840/6490,4-20ma Levelsensor-Ina219,PIP5048,Raspi2 als Floorplan,4xJeeLink

Markus Bloch

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
Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)

rainer1962

Hallo Markus,
danke Dir schon mal im voraus ....

Mfg
Rainer
2xFHEM auf Raspi3,MAXLAN,HMLAN,KeyMatic,MAX Heizung,2x HM-WDS10_TH-O,3xHM-SEC-SD,3xHM Wandtaster 2-Kanal, 2xWandtaster 6-Kanal,1xHM Bewegungsmelder,4xHM EinbauActor,4x Jalousien Actor,2xEGPM2LAN,2xHM DimAktor,2xFritzbox 6840/6490,4-20ma Levelsensor-Ina219,PIP5048,Raspi2 als Floorplan,4xJeeLink

Markus Bloch

Den Fix gibts morgen via update Befehl.

Viele Grüße

Markus
Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)

rainer1962

Hallo Markus,
danke Dir fürs Update ...
funzt hervorragend ...

Gruss Rainer
2xFHEM auf Raspi3,MAXLAN,HMLAN,KeyMatic,MAX Heizung,2x HM-WDS10_TH-O,3xHM-SEC-SD,3xHM Wandtaster 2-Kanal, 2xWandtaster 6-Kanal,1xHM Bewegungsmelder,4xHM EinbauActor,4x Jalousien Actor,2xEGPM2LAN,2xHM DimAktor,2xFritzbox 6840/6490,4-20ma Levelsensor-Ina219,PIP5048,Raspi2 als Floorplan,4xJeeLink

ArminK

#7
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....
Raspberry Pi 3B mit fhem 5.8;1xCUL USB, 2xCUNO, 1xCUL Raspi über Fhem2Fhem, 2xHMLAN; diverse Homematic und FS20-Komponenten; 7 x Sonos-Player; diverse Eigenbauten mittels FS20 WUE, ESPEasy, MQTT, MySensors

Steffen

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

MegaData

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

Markus Bloch

Da steht doch alles da, was man wissen muss. Das Gerät GalaxyS3 existiert nicht.
Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)

MegaData

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 ?

Puschel74

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

Grüße
Zotac BI323 als Server mit DBLog
CUNO für FHT80B, 3 HM-Lan per vCCU, RasPi mit CUL433 für Somfy-Rollo (F2F), RasPi mit I2C(LM75) (F2F), RasPi für Panstamp+Vegetronix +SONOS(F2F)
Ich beantworte keine Supportanfragen per PM! Bitte im Forum suchen oder einen Beitrag erstellen.

MegaData

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

scooty

Probiere es 'mal mit

define Chris PRESENCE function {RemoteFritzBoxWeb("GalaxyS3")} 120 120

also ohne die "<" und ">".
Fhem auf Gigabyte Brix
CUL V3 HM / CUL V3 MAX / MaxCube aFW Homematic&MAX / ZWave.me ZME_UZB1 / SDuino 433 / Velux KLF200
Homematic / MAX / Logitech Hub / ZWave / Wifi LED / div. 433 Temperatursensoren / pywws WH1080 / IO Homecontrol