Wieso stürzt mein Fhem dabei ab ?

Begonnen von ChrisW, 20 Oktober 2013, 21:42:42

Vorheriges Thema - Nächstes Thema

ChrisW

Hallo,
habe folgenden Code eingebaut
einerda ist eine structure
############################     HTPC      ##################################
define HTPC WOL 6C:F0:49:71:77:67 192.168.2.3
attr HTPC room HTPC

#HTPC Schalter
define MEDIASERVER dummy
attr MEDIASERVER eventMap /on:An/off:Aus/
attr MEDIASERVER room Erdgeschoss,HTPC
attr MEDIASERVER webCmd on:off
define MEDIASERVER_notify_on notify MEDIASERVER:on.* { fhem ("set HTPC on") }
define MEDIASERVER_notify_off notify MEDIASERVER:off.* { GetHttpFile("192.168.2.3:81", "/API/shutdown request") }

#HTPC Idletimer
define MEDIASERVER_IDLE dummy
attr MEDIASERVER_IDLE eventMap /on:An/off:Aus/
attr MEDIASERVER_IDLE room HTPC
define MEDIASERVER_IDLE_on notify MEDIASERVER_IDLE:on.* { GetHttpFile("192.168.2.3:81", "/API/idletimer on") }
define MEDIASERVER_IDLE_off notify MEDIASERVER_IDLE:off.* { GetHttpFile("192.168.2.3:81", "/API/idletimer off") }


#**********HTPC AUS WENN KEINER DA ****************
define HTPC_AUS_ABWESEND notify einerda:.* { \
if (Value("einerda") eq "present") { \
} \
else { \
    fhem (GetHttpFile("192.168.2.3:81", "/API/shutdown request"));;\
Log (3,"HTPC Ausgeschaltet weil keiner da");;\
}\
}


Log steht folgendes:

############################     HTPC      ##################################
define HTPC WOL 6C:F0:49:71:77:67 192.168.2.3
attr HTPC room HTPC

#HTPC Schalter
define MEDIASERVER dummy
attr MEDIASERVER eventMap /on:An/off:Aus/
attr MEDIASERVER room Erdgeschoss,HTPC
attr MEDIASERVER webCmd on:off
define MEDIASERVER_notify_on notify MEDIASERVER:on.* { fhem ("set HTPC on") }
define MEDIASERVER_notify_off notify MEDIASERVER:off.* { GetHttpFile("192.168.2.3:81", "/API/shutdown request") }

#HTPC Idletimer
define MEDIASERVER_IDLE dummy
attr MEDIASERVER_IDLE eventMap /on:An/off:Aus/
attr MEDIASERVER_IDLE room HTPC
define MEDIASERVER_IDLE_on notify MEDIASERVER_IDLE:on.* { GetHttpFile("192.168.2.3:81", "/API/idletimer on") }
define MEDIASERVER_IDLE_off notify MEDIASERVER_IDLE:off.* { GetHttpFile("192.168.2.3:81", "/API/idletimer off") }


#**********HTPC AUS WENN KEINER DA ****************
define HTPC_AUS_ABWESEND notify einerda:.* { \
if (Value("einerda") eq "present") { \
} \
else { \
    fhem (GetHttpFile("192.168.2.3:81", "/API/shutdown request"));;\
Log (3,"HTPC Ausgeschaltet weil keiner da");;\
}\
}



Log:

2013.10.20 21:30:00 3: WOL set HTPC on
2013.10.20 21:30:00 3: WOL waking  HTPC with MAC 6C:F0:49:71:77:67 IP 192.168.2.3
2013.10.20 21:30:01 3: WOL keeping HTPC with MAC 6C:F0:49:71:77:67 IP 192.168.2.3 busy
2013.10.20 21:30:11 3: WOL set HTPC on
2013.10.20 21:30:11 3: WOL waking  HTPC with MAC 6C:F0:49:71:77:67 IP 192.168.2.3
2013.10.20 21:30:12 3: WOL keeping HTPC with MAC 6C:F0:49:71:77:67 IP 192.168.2.3 busy
2013.10.20 21:30:26 3: WOL set HTPC on
2013.10.20 21:30:26 3: WOL waking  HTPC with MAC 6C:F0:49:71:77:67 IP 192.168.2.3
2013.10.20 21:30:28 3: WOL keeping HTPC with MAC 6C:F0:49:71:77:67 IP 192.168.2.3 busy
2013.10.20 21:30:37 3: MEDIASERVER_notify_off return value: shutdown request
2013.10.20 21:32:33 1: WriteStateFile: Cannot open ./log/fhem.save: Permission denied
2013.10.20 21:32:33 1: Including fhem.cfg
2013.10.20 21:32:33 2: eventTypes: loaded 15 events from ./log/eventTypes.txt
2013.10.20 21:32:33 1: Including ./log/fhem.save
2013.10.20 21:33:22 1: WriteStateFile: Cannot open ./log/fhem.save: Permission denied
2013.10.20 21:35:02 0: Server shutdown
2013.10.20 21:35:02 1: WriteStateFile: Cannot open ./log/fhem.save: Permission denied
2013.10.20 21:36:07 1: Including fhem.cfg
2013.10.20 21:36:10 2: eventTypes: loaded 15 events from ./log/eventTypes.txt
2013.10.20 21:36:10 1: Including ./log/fhem.save
2013.10.20 21:36:10 1: statefile: Please define FileLog_chris first
Please define FileLog_einerda first
Please define FileLog_tanja first



Scheinbar läuft Fhem noch ?! aber ist nicht mehr erreichbar
Raspberry PI3 mit allem möglichen.

ChrisW

Nach dem einerda auf absent sich ändert wird der Befehl noch abgeschickt aber danach ist FHEMWEB weg ...... Im log steht nur:


2013.10.20 22:14:37 0: Server shutdown
2013.10.20 22:15:18 1: Including fhem.cfg
2013.10.20 22:15:20 2: eventTypes: loaded 15 events from ./log/eventTypes.txt
2013.10.20 22:15:21 1: Including ./log/fhem.save
2013.10.20 22:15:21 1: usb create starting
2013.10.20 22:15:23 1: usb create end
2013.10.20 22:15:23 2: SecurityCheck:  WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute.  Restart fhem for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2013.10.20 22:15:23 0: Server started with 20 defined entities (version $Id: fhem.pl 4077 2013-10-20 11:19:58Z rudolfkoenig $, os linux, user pi, pid 12497)
2013.10.20 22:15:42 1: Including fhem.cfg
2013.10.20 22:15:42 1: Including ./log/fhem.save
2013.10.20 22:16:31 0: Server shutdown



Es kann an WOL nicht liegen dort kann ich ON / Off schalten und FHEM bleibt da ..
Raspberry PI3 mit allem möglichen.

betateilchen

Du solltest als allererstes einmal die Zugriffsrechte innerhalb Deiner fhem-Installation in Ordnung bringen. Deine Logs strotzen nur so vor Zugriffsfehlern - merkst Du das nicht?
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

ChrisW

Doch klar fhem.safe hab ich ja im Griff sind nur die Logs die mir erstmal egal sind .. hab dazu nochmal was aufgemacht wieso die Rechte nicht stimmen ..

hier mal nen Log 5 :

2013.10.20 22:21:08 5: Cmd: >attr global statefile ./log/fhem.save<
2013.10.20 22:21:08 5: Cmd: >attr global uniqueID ./FHEM/FhemUtils/uniqueID<
2013.10.20 22:21:08 5: Cmd: >attr global updateInBackground 1<
2013.10.20 22:21:08 5: Cmd: >attr global userattr Handys Handys_map devStateIcon devStateStyle icon sortby structexclude webCmd<
2013.10.20 22:21:08 5: Cmd: >attr global verbose 5<
2013.10.20 22:21:08 5: Cmd: >define telnetPort telnet 7072 global<
2013.10.20 22:21:08 3: telnetPort: port 7072 opened
2013.10.20 22:21:08 5: Cmd: >define WEB FHEMWEB 8083 global<
2013.10.20 22:21:08 3: WEB: port 8083 opened
2013.10.20 22:21:08 5: Cmd: >attr WEB basicAuth *****
2013.10.20 22:21:08 5: Cmd: >attr WEB stylesheetPrefix dark<
2013.10.20 22:21:08 5: Cmd: >define WEBphone FHEMWEB 8084 global<
2013.10.20 22:21:08 3: WEBphone: port 8084 opened
2013.10.20 22:21:08 5: Cmd: >attr WEBphone basicAuth ******
2013.10.20 22:21:08 5: Cmd: >attr WEBphone stylesheetPrefix smallscreen<
2013.10.20 22:21:08 5: Cmd: >define WEBtablet FHEMWEB 8085 global<
2013.10.20 22:21:08 3: WEBtablet: port 8085 opened
2013.10.20 22:21:08 5: Cmd: >attr WEBtablet stylesheetPrefix touchpad<
2013.10.20 22:21:08 5: Cmd: >define Logfile FileLog ./log/fhem-%Y-%m.log fakelog<
2013.10.20 22:21:08 5: Cmd: >define autocreate autocreate<
2013.10.20 22:21:08 5: Cmd: >attr autocreate filelog ./log/%NAME-%Y.log<
2013.10.20 22:21:08 5: Cmd: >define eventTypes eventTypes ./log/eventTypes.txt<
2013.10.20 22:21:08 2: eventTypes: loaded 15 events from ./log/eventTypes.txt
2013.10.20 22:21:08 5: Cmd: >define initialUsbCheck notify global:INITIALIZED usb create<
2013.10.20 22:21:08 5: Cmd: >define chris PRESENCE lan-ping 192.168.2.24 60<
2013.10.20 22:21:08 5: Cmd: >attr chris Handys einerda<
2013.10.20 22:21:08 5: Cmd: >attr chris event-on-change-reading .*<
2013.10.20 22:21:08 5: Cmd: >attr chris room Anwesenheit<
2013.10.20 22:21:08 5: Cmd: >define tanja PRESENCE lan-ping 192.168.2.26 60<
2013.10.20 22:21:08 5: Cmd: >attr tanja Handys einerda<
2013.10.20 22:21:08 5: Cmd: >attr tanja event-on-change-reading .*<
2013.10.20 22:21:08 5: Cmd: >attr tanja room Anwesenheit<
2013.10.20 22:21:08 5: Cmd: >define einerda structure Handys chris tanja<
2013.10.20 22:21:08 5: Cmd: >attr einerda clientstate_behavior relative<
2013.10.20 22:21:08 5: Cmd: >attr einerda clientstate_priority present absent<
2013.10.20 22:21:08 5: Cmd: >attr einerda room Anwesenheit<
2013.10.20 22:21:08 5: Cmd: >define HTPC WOL 6C:F0:49:71:77:67 192.168.2.3<
2013.10.20 22:21:08 5: Cmd: >attr HTPC room HTPC<
2013.10.20 22:21:08 5: Cmd: >define MEDIASERVER dummy<
2013.10.20 22:21:08 5: Cmd: >attr MEDIASERVER eventMap /on:An/off:Aus/<
2013.10.20 22:21:08 5: Cmd: >attr MEDIASERVER room Erdgeschoss,HTPC<
2013.10.20 22:21:08 5: Cmd: >attr MEDIASERVER webCmd on:off<
2013.10.20 22:21:08 5: Cmd: >define MEDIASERVER_notify_on notify MEDIASERVER:on.* { fhem ("set HTPC on") }<
2013.10.20 22:21:08 5: Cmd: >define MEDIASERVER_notify_off notify MEDIASERVER:off.* { GetHttpFile("192.168.2.3:81", "/API/shutdown request") }<
2013.10.20 22:21:08 5: Cmd: >define MEDIASERVER_IDLE dummy<
2013.10.20 22:21:08 5: Cmd: >attr MEDIASERVER_IDLE eventMap /on:An/off:Aus/<
2013.10.20 22:21:08 5: Cmd: >attr MEDIASERVER_IDLE room HTPC<
2013.10.20 22:21:08 5: Cmd: >define MEDIASERVER_IDLE_on notify MEDIASERVER_IDLE:on.* { GetHttpFile("192.168.2.3:81", "/API/idletimer on") }<
2013.10.20 22:21:08 5: Cmd: >define MEDIASERVER_IDLE_off notify MEDIASERVER_IDLE:off.* { GetHttpFile("192.168.2.3:81", "/API/idletimer off") }<
2013.10.20 22:21:08 5: Cmd: >define HTPC_AUS_ABWESEND notify einerda:.* { \
if (Value("einerda") eq "present") { \
} \
else { \
    fhem (GetHttpFile("192.168.2.3:81", "/API/shutdown request"));\
Log (3,"HTPC Ausgeschaltet weil keiner da");\
}\
}<
2013.10.20 22:21:08 1: Including ./log/fhem.save
2013.10.20 22:21:08 5: Cmd: >setstate HTPC on<
2013.10.20 22:21:08 5: Cmd: >setstate HTPC 2013-10-20 22:20:28 isRunning true<
2013.10.20 22:21:08 5: Cmd: >setstate HTPC 2013-10-20 22:20:53 packet_via_EW 6C:F0:49:71:77:67<
2013.10.20 22:21:08 5: Cmd: >setstate HTPC 2013-10-20 22:20:53 packet_via_UDP 192.168.2.3<
2013.10.20 22:21:08 5: Cmd: >setstate HTPC_AUS_ABWESEND active<
2013.10.20 22:21:08 5: Cmd: >setstate Logfile active<
2013.10.20 22:21:08 5: Cmd: >setstate MEDIASERVER An<
2013.10.20 22:21:08 5: Cmd: >setstate MEDIASERVER 2013-10-20 21:07:57 state on<
2013.10.20 22:21:08 5: Cmd: >setstate MEDIASERVER_IDLE_off active<
2013.10.20 22:21:08 5: Cmd: >setstate MEDIASERVER_IDLE_on active<
2013.10.20 22:21:08 5: Cmd: >setstate MEDIASERVER_notify_off active<
2013.10.20 22:21:08 5: Cmd: >setstate MEDIASERVER_notify_on active<
2013.10.20 22:21:08 5: Cmd: >setstate autocreate active<
2013.10.20 22:21:08 5: Cmd: >setstate chris absent<
2013.10.20 22:21:08 5: Cmd: >setstate chris 2013-10-20 22:20:31 state absent<
2013.10.20 22:21:08 5: Cmd: >setstate einerda absent<
2013.10.20 22:21:08 5: Cmd: >setstate einerda 2013-10-20 22:16:31 LastDevice chris<
2013.10.20 22:21:08 5: Cmd: >setstate einerda 2013-10-20 22:16:31 LastDevice_Abs chris<
2013.10.20 22:21:08 5: Cmd: >setstate einerda 2013-10-20 22:16:31 state absent<
2013.10.20 22:21:08 5: Cmd: >setstate eventTypes active<
2013.10.20 22:21:08 5: Cmd: >setstate global <no definition><
2013.10.20 22:21:08 5: Cmd: >setstate initialUsbCheck active<
2013.10.20 22:21:08 5: Cmd: >setstate tanja absent<
2013.10.20 22:21:08 5: Cmd: >setstate tanja 2013-10-20 22:20:31 state absent<
2013.10.20 22:21:08 5: Triggering global (1 changes)
2013.10.20 22:21:08 5: Notify loop for global REREADCFG
2013.10.20 22:21:08 4: /fhem?cmd=style%20edit%20fhem.cfg&save=Save+fhem.cfg&saveName=fhem.cfg&cmd=style+save+fhem.cfg&data=attr+global+autoload_undefined_devices+1%0D%0Aattr+global+logfile+.%2Flog%2Ffhem-%25Y-%25m.log%0D%0Aattr+global+modpath+.%0D%0Aattr+global+motd+SecurityCheck%3A%5C%5C%0D%0A%5C%5C%0D%0AWEBtablet+has+no+basicAuth+attribute.%5C%5C%0D%0AtelnetPort+has+no+password%2Fglobalpassword+attribute.%5C%5C%0D%0A%5C%5C%0D%0ARestart+fhem+for+a+new+check+if+the+problem+is+fixed%2C%5C%5C%0D%0Aor+set+the+global+attribute+motd+to+none+to+supress+this+message.%5C%5C%0D%0A%0D%0Aattr+global+statefile+.%2Flog%2Ffhem.save%0D%0Aattr+global+uniqueID+.%2FFHEM%2FFhemUtils%2FuniqueID%0D%0Aattr+global+updateInBackground+1%0D%0Aattr+global+userattr+Handys+Handys_map+devStateIcon+devStateStyle+icon+sortby+structexclude+webCmd%0D%0Aattr+global+verbose+5%0D%0A%0D%0Adefine+telnetPort+telnet+7072+global%0D%0A%0D%0Adefine+WEB+FHEMWEB+8083+global%0D%0Aattr+WEB+basicAuth+c3liZXI6RE8xQ0hX%0D%0Aattr+WEB+stylesheetPrefix+dark%0D%0A%0D%0Adefine+WEBphone+FHEMWEB+8084+global%0D%0Aattr+WEBphone+basicAuth+c3liZXI6RE8xQ0hX%0D%0Aattr+WEBphone+stylesheetPrefix+smallscreen%0D%0A%0D%0Adefine+WEBtablet+FHEMWEB+8085+global%0D%0Aattr+WEBtablet+stylesheetPrefix+touchpad%0D%0A%0D%0A%23+Fake+FileLog+entry%2C+to+access+the+fhem+log+from+FHEMWEB+%0D%0Adefine+Logfile+FileLog+.%2Flog%2Ffhem-%25Y-%25m.log+fakelog%0D%0A%0D%0Adefine+autocreate+autocreate%0D%0Aattr+autocreate+filelog+.%2Flog%2F%25NAME-%25Y.log%0D%0A%0D%0Adefine+eventTypes+eventTypes+.%2Flog%2FeventTypes.txt%0D%0A%0D%0A%23+Disable+this+to+avoid+looking+for+new+USB+devices+on+startup%0D%0Adefine+initialUsbCheck+notify+global%3AINITIALIZED+usb+create%0D%0A%0D%0A%23Anwesenheit+Chris%0D%0Adefine+chris+PRESENCE+lan-ping+192.168.2.24+60%0D%0Aattr+chris+Handys+einerda%0D%0Aattr+chris+event-on-change-reading+.*%0D%0Aattr+chris+room+Anwesenheit%0D%0A%0D%0A%0D%0A%23Anwesenheit+Tanja%0D%0Adefine+tanja+PRESENCE+lan-ping+192.168.2.26+60%0D%0Aattr+tanja+Handys+einerda%0D%0Aattr+tanja+event-on-change-reading+.*%0D%0Aattr+tanja+room+Anwesenheit%0D%0A%0D%0A%23Anwesenheit+EINERDA%0D%0Adefine+einerda+structure+Handys+chris+tanja%0D%0Aattr+einerda+clientstate_behavior+relative%0D%0Aattr+einerda+clientstate_priority+present+absent%0D%0Aattr+einerda+room+Anwesenheit%0D%0A%0D%0A%0D%0A%0D%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23+++++HTPC++++++%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0D%0Adefine+HTPC+WOL+6C%3AF0%3A49%3A71%3A77%3A67+192.168.2.3%0D%0Aattr+HTPC+room+HTPC%0D%0A%0D%0A%23HTPC+Schalter%0D%0Adefine+MEDIASERVER+dummy%0D%0Aattr+MEDIASERVER+eventMap+%2Fon%3AAn%2Foff%3AAus%2F%0D%0Aattr+MEDIASERVER+room+Erdgeschoss%2CHTPC%0D%0Aattr+MEDIASERVER+webCmd+on%3Aoff%0D%0Adefine+MEDIASERVER_notify_on+notify+MEDIASERVER%3Aon.*+%7B+fhem+%28%22set+HTPC+on%22%29+%7D%0D%0Adefine+MEDIASERVER_notify_off+notify+MEDIASERVER%3Aoff.*+%7B+GetHttpFile%28%22192.168.2.3%3A81%22%2C+%22%2FAPI%2Fshutdown+request%22%29+%7D%0D%0A%0D%0A%23HTPC+Idletimer%0D%0Adefine+MEDIASERVER_IDLE+dummy%0D%0Aattr+MEDIASERVER_IDLE+eventMap+%2Fon%3AAn%2Foff%3AAus%2F%0D%0Aattr+MEDIASERVER_IDLE+room+HTPC%0D%0Adefine+MEDIASERVER_IDLE_on+notify+MEDIASERVER_IDLE%3Aon.*+%7B+GetHttpFile%28%22192.168.2.3%3A81%22%2C+%22%2FAPI%2Fidletimer+on%22%29+%7D%0D%0Adefine+MEDIASERVER_IDLE_off+notify+MEDIASERVER_IDLE%3Aoff.*+%7B+GetHttpFile%28%22192.168.2.3%3A81%22%2C+%22%2FAPI%2Fidletimer+off%22%29+%7D%0D%0A%0D%0A%0D%0A%23**********HTPC+AUS+WENN+KEINER+DA+****************%0D%0Adefine+HTPC_AUS_ABWESEND+notify+einerda%3A.*+%7B+%5C%0D%0Aif+%28Value%28%22einerda%22%29+eq+%22present%22%29+%7B+%5C%0D%0A%7D+%5C%0D%0Aelse+%7B+%5C%0D%0A++++fhem+%28GetHttpFile%28%22192.168.2.3%3A81%22%2C+%22%2FAPI%2Fshutdown+request%22%29%29%3B%3B%5C%0D%0ALog+%283%2C%22HTPC+Ausgeschaltet+weil+keiner+da%22%29%3B%3B%5C%0D%0A%7D%5C%0D%0A%7D%0D%0A / RL:1676 / text/html; charset=UTF-8 / Content-Encoding: gzip
/
2013.10.20 22:21:08 4: HTTP FHEMWEB:192.168.2.32:64162 GET /fhem/pgm2/style.css
2013.10.20 22:21:08 4: Connection accepted from FHEMWEB:192.168.2.32:64497
2013.10.20 22:21:08 4: HTTP FHEMWEB:192.168.2.32:64497 GET /fhem/images/default/icoEverything.png
2013.10.20 22:21:08 4: HTTP FHEMWEB:192.168.2.32:64497 GET /fhem?room=all&XHR=1&inform=1×tamp=1382300470053
2013.10.20 22:21:09 4: Connection closed for FHEMWEB:192.168.2.32:64497
2013.10.20 22:21:09 4: HTTP FHEMWEB:192.168.2.32:64162 GET /fhem/FileLog_logWrapper?dev=Logfile&type=text&file=fhem-2013-10.log
2013.10.20 22:21:10 4: HTTP FHEMWEB:192.168.2.32:64162 GET /fhem/pgm2/style.css
2013.10.20 22:21:10 4: Connection accepted from FHEMWEB:192.168.2.32:64498
2013.10.20 22:21:10 4: HTTP FHEMWEB:192.168.2.32:64498 GET /fhem/images/default/icoEverything.png
2013.10.20 22:21:10 5: PRESENCE_DoLocalPingScan: chris|192.168.2.24|0|4
2013.10.20 22:21:10 5: PRESENCE_DoLocalPingScan: tanja|192.168.2.26|0|4
2013.10.20 22:21:10 4: HTTP FHEMWEB:192.168.2.32:64498 GET /fhem/FileLog_logWrapper?room=all&XHR=1&inform=1×tamp=1382300471666
2013.10.20 22:21:13 5: Triggering HTPC (1 changes)
2013.10.20 22:21:13 5: Notify loop for HTPC isRunning: true
2013.10.20 22:21:13 4: eventTypes: WOL HTPC isRunning: true -> isRunning: true
2013.10.20 22:21:14 5: PRESENCE (chris) - ping command returned with output:
PING 192.168.2.24 (192.168.2.24) 56(84) bytes of data.
64 bytes from 192.168.2.24: icmp_req=1 ttl=64 time=2137 ms
64 bytes from 192.168.2.24: icmp_req=2 ttl=64 time=1137 ms
64 bytes from 192.168.2.24: icmp_req=3 ttl=64 time=139 ms
64 bytes from 192.168.2.24: icmp_req=4 ttl=64 time=1458 ms

--- 192.168.2.24 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 139.975/1218.451/2137.000/719.567 ms, pipe 3
2013.10.20 22:21:14 4: Connection accepted from telnet:127.0.0.1:38142
2013.10.20 22:21:14 5: Cmd: >{PRESENCE_ProcessLocalScan('chris|0|present')}<
2013.10.20 22:21:14 5: PRESENCE_ProcessLocalScan: chris|0|present
2013.10.20 22:21:14 5: Triggering chris (1 changes)
2013.10.20 22:21:14 5: Notify loop for chris present
2013.10.20 22:21:14 5: Update structure 'einerda' to present because device chris has changed
2013.10.20 22:21:14 5: Triggering einerda (3 changes)
2013.10.20 22:21:14 5: Notify loop for einerda LastDevice: chris
2013.10.20 22:21:14 5: Triggering HTPC_AUS_ABWESEND
2013.10.20 22:21:14 5: Cmd: >{ \
if (Value("einerda") eq "present") { \
} \
else { \
    fhem (GetHttpFile("192.168.2.3:81", "/API/shutdown request"));\
Log (3,"HTPC Ausgeschaltet weil keiner da");\
}\
}<
2013.10.20 22:21:14 5: Triggering HTPC_AUS_ABWESEND
2013.10.20 22:21:14 5: Cmd: >{ \
if (Value("einerda") eq "present") { \
} \
else { \
    fhem (GetHttpFile("192.168.2.3:81", "/API/shutdown request"));\
Log (3,"HTPC Ausgeschaltet weil keiner da");\
}\
}<
2013.10.20 22:21:14 5: Triggering HTPC_AUS_ABWESEND
2013.10.20 22:21:14 5: Cmd: >{ \
if (Value("einerda") eq "present") { \
} \
else { \
    fhem (GetHttpFile("192.168.2.3:81", "/API/shutdown request"));\
Log (3,"HTPC Ausgeschaltet weil keiner da");\
}\
}<
2013.10.20 22:21:14 4: eventTypes: structure einerda LastDevice: chris -> LastDevice: chris
2013.10.20 22:21:14 4: eventTypes: structure einerda LastDevice_Abs: chris -> LastDevice_Abs: chris
2013.10.20 22:21:14 4: eventTypes: structure einerda present -> present
2013.10.20 22:21:14 5: SET: Unknown argument ?, choose one of statusRequest
Unknown argument ?, choose one of statusRequest
2013.10.20 22:21:14 4: eventTypes: PRESENCE chris present -> present
2013.10.20 22:21:16 5: PRESENCE (tanja) - ping command returned with output:
PING 192.168.2.26 (192.168.2.26) 56(84) bytes of data.
From 192.168.2.99 icmp_seq=1 Destination Host Unreachable
From 192.168.2.99 icmp_seq=2 Destination Host Unreachable
From 192.168.2.99 icmp_seq=3 Destination Host Unreachable
From 192.168.2.99 icmp_seq=4 Destination Host Unreachable

--- 192.168.2.26 ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3006ms
pipe 3
2013.10.20 22:21:16 4: Connection accepted from telnet:127.0.0.1:38143
2013.10.20 22:21:16 5: Cmd: >{PRESENCE_ProcessLocalScan('tanja|0|absent')}<
2013.10.20 22:21:16 5: PRESENCE_ProcessLocalScan: tanja|0|absent
2013.10.20 22:21:32 4: Connection closed for FHEMWEB:192.168.2.32:64498
2013.10.20 22:21:32 4: HTTP FHEMWEB:192.168.2.32:64162 GET /fhem?cmd=style%20eventMonitor
2013.10.20 22:21:32 4: /fhem?cmd=style%20eventMonitor / RL:871 / text/html; charset=UTF-8 / Content-Encoding: gzip
/
2013.10.20 22:21:32 4: HTTP FHEMWEB:192.168.2.32:64162 GET /fhem/pgm2/style.css
2013.10.20 22:21:32 4: Connection accepted from FHEMWEB:192.168.2.32:64588
2013.10.20 22:21:32 4: HTTP FHEMWEB:192.168.2.32:64588 GET /fhem/images/default/icoEverything.png
2013.10.20 22:21:33 4: HTTP FHEMWEB:192.168.2.32:64588 GET /fhem?XHR=1&inform=console×tamp=1382300494702
2013.10.20 22:21:38 3: WOL keeping HTPC with MAC 6C:F0:49:71:77:67 IP 192.168.2.3 busy
2013.10.20 22:21:38 5: Triggering HTPC (2 changes)
2013.10.20 22:21:38 5: Notify loop for HTPC packet_via_EW: 6C:F0:49:71:77:67
2013.10.20 22:21:38 4: eventTypes: WOL HTPC packet_via_EW: 6C:F0:49:71:77:67 -> packet_via_EW: 6C:F0:.*:.*:.*:.*
2013.10.20 22:21:38 4: eventTypes: WOL HTPC packet_via_UDP: 192.168.2.3 -> packet_via_UDP: .*.*.*
2013.10.20 22:21:44 5: PRESENCE_DoLocalPingScan: chris|192.168.2.24|0|4
2013.10.20 22:21:57 5: PRESENCE (chris) - ping command returned with output:
PING 192.168.2.24 (192.168.2.24) 56(84) bytes of data.

--- 192.168.2.24 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3005ms

2013.10.20 22:21:57 4: Connection accepted from telnet:127.0.0.1:38144
2013.10.20 22:21:57 5: Cmd: >{PRESENCE_ProcessLocalScan('chris|0|absent')}<
2013.10.20 22:21:57 5: PRESENCE_ProcessLocalScan: chris|0|absent
2013.10.20 22:21:57 5: Triggering chris (1 changes)
2013.10.20 22:21:57 5: Notify loop for chris absent
2013.10.20 22:21:57 5: Update structure 'einerda' to absent because device chris has changed
2013.10.20 22:21:57 5: Triggering einerda (3 changes)
2013.10.20 22:21:57 5: Notify loop for einerda LastDevice: chris
2013.10.20 22:21:57 5: Triggering HTPC_AUS_ABWESEND
2013.10.20 22:21:57 5: Cmd: >{ \
if (Value("einerda") eq "present") { \
} \
else { \
    fhem (GetHttpFile("192.168.2.3:81", "/API/shutdown request"));\
Log (3,"HTPC Ausgeschaltet weil keiner da");\
}\
}<
2013.10.20 22:21:57 4: CustomGetFileFromURL http://192.168.2.3:81/API/shutdown request: Code 200 (HTTP/1.0 200 OK)
2013.10.20 22:21:57 4: CustomGetFileFromURL http://192.168.2.3:81/API/shutdown request: Got data, length: 16
2013.10.20 22:21:57 5: Cmd: >shutdown request<
2013.10.20 22:21:57 5: Triggering global (1 changes)
2013.10.20 22:21:57 5: Notify loop for global SHUTDOWN
2013.10.20 22:21:57 0: Server shutdown
Raspberry PI3 mit allem möglichen.

betateilchen

am besten fängst Du nochmal ganz von vorne an...
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

ChrisW

Ich bin noch vorne .. es ist nach einer Anleitung Installiert alles funktioniert bis auf diese Prüfung "einerda" wenn absent dann befehl abschicken .. Das nutze ich sogar ohne Probleme unter Win hmmm

Raspberry PI3 mit allem möglichen.

ChrisW

hm Problem ist auf einmal weg ... wieso auch immer jetzt klappt es ohen das fhem abschmiert..
Raspberry PI3 mit allem möglichen.