Nachdem mir, aus welchen Gründen auch immer, mein RPi nicht mehr gestartet hat, habe ich das komplette System neu aufgesetzt, die Perl Pakete nachinstalliert und mein gesicherten FHEM Ordner komplett auf den Pi kopiert. Irgendetwas hat aber nicht funktioniert, denn einerseits funktioniert fhem nicht (die Befehle scheinen nicht anzukommen, was in den Logs der einzelnen AKtoren aber nicht erkenntlich wird), anderserseits funktionieren zahlreiche fhem Befehle nicht (z.B. update-> unknown command). Als ziemlicher Laie bei Fhem und Linux ist es mir nicht möglich, die Fehler zu finden. Alleine das FHEM Log liefert schon zahlreiche Hinweise, die ich aber nicht nutzen kann, um das Problem zu lösen, weil ich sie nicht verstehe. Zur Info: Fhem hat mit dem von mir eingespielten Backup vorher funktioniert.
Für HIlfe wäre ich dankbar. Die Forumsuche hat Ansätze zu meinem Fehler geliefert, die Lösungen trafen aber alle nicht zu.
Hier die Log Entry:
2017.12.10 11:52:32 1: reload: Error:Modul 98_update deactivated:
Unrecognized character \x08; marked by <-- HERE after next af<-- HERE near column 12 at ./FHEM/98_update.pm line 216.
2017.12.10 11:52:32 0: Unrecognized character \x08; marked by <-- HERE after next af<-- HERE near column 12 at ./FHEM/98_update.pm line 216.
2017.12.10 11:52:54 1: reload: Error:Modul 98_version deactivated:
Unrecognized character \xE1; marked by <-- HERE after pack<-- HERE near column 5 at ./FHEM/98_version.pm line 2.
2017.12.10 11:52:54 0: Unrecognized character \xE1; marked by <-- HERE after pack<-- HERE near column 5 at ./FHEM/98_version.pm line 2.
2017.12.10 12:52:36 0: Server shutdown
2017.12.10 12:52:43 1: Including fhem.cfg
2017.12.10 12:52:43 3: telnetPort: port 7072 opened
2017.12.10 12:52:43 3: WEB: port 8083 opened
2017.12.10 12:52:43 3: WEBphone: port 8084 opened
2017.12.10 12:52:43 3: WEBtablet: port 8085 opened
2017.12.10 12:52:43 2: eventTypes: loaded 535 events from ./log/eventTypes.txt
2017.12.10 12:52:44 3: TABLETUI: new ext defined infix:dk: dir:./www/tablet/:
2017.12.10 12:52:44 3: Registering HTTPSRV TABLETUI for URL /dk and assigned link dk ...
2017.12.10 12:52:44 1: Including ./log/fhem.save
2017.12.10 12:52:44 3: WARNING: unsupported character in reading groupi$ (not A-Za-z/\d_\.-), notify the MAX module maintainer.
2017.12.10 12:52:44 3: WARNING: unsupported character in reading minimumTemperatur% (not A-Za-z/\d_\.-), notify the MAX module maintainer.
2017.12.10 12:52:44 3: WARNING: unsupported character in reading weekprofile-�-Thu-tioe (not A-Za-z/\d_\.-), notify the MAX module maintainer.
2017.12.10 12:52:44 3: No I/O device found for ZWave_SWITCH_MULTILEVEL_3.02
2017.12.10 12:52:44 3: No I/O device found for MAX_16537b
2017.12.10 12:52:44 3: No I/O device found for MAX_04c189
2017.12.10 12:52:44 3: No I/O device found for MAX_051106
2017.12.10 12:52:44 3: No I/O device found for Gartenhaus
2017.12.10 12:52:44 3: No I/O device found for ZWave_SWITCH_MULTILEVEL_3.01
2017.12.10 12:52:44 3: No I/O device found for MaX_1301d4
2017.12.10 12:52:44 3: No I/O device found for MAX_130da2
2017.12.10 12:52:44 3: No I/O device found for MAX_165377
2017.12.10 12:52:44 3: No I/O device found for MAX_165382
2017.12.10 12:52:44 3: No I/O device found for MAX_13b893
2017.12.10 12:52:44 3: No I/O device found for MAX_14f313
2017.12.10 12:52:44 3: No I/O device found for MAX_12c162
2017.12.10 12:52:44 3: No I/O device found for MAX_1302cf
2017.12.10 12:52:44 3: No I/O device found for MAX_14d3ac
2017.12.10 12:52:44 3: No I/O device found for MAX_0455f0
2017.12.10 12:52:44 3: No I/O device found for MAX_14d4bd
2017.12.10 12:52:44 3: No I/O device found for MAX_1655df
2017.12.10 12:52:44 3: No I/O device found for MAX_12c1d6
2017.12.10 12:52:44 3: No I/O device found for MAX_13c781
2017.12.10 12:52:44 3: No I/O device found for LAX_166048
2017.12.10 12:52:44 3: No I/O device found for MAX_13c797
2017.12.10 12:52:44 3: No I/O device found for MAX_13161e
2017.12.10 12:52:44 3: No I/O device found for MAX_16615f
2017.12.10 12:52:44 1: reload: Error:Modul 98_autocreate deactivated:
Unrecognized character \xA4; marked by <-- HERE after my <-- HERE near column 12 at ./FHEM/98_autocreate.pm line 144.
2017.12.10 12:52:44 0: Unrecognized character \xA4; marked by <-- HERE after my <-- HERE near column 12 at ./FHEM/98_autocreate.pm line 144.
2017.12.10 12:52:44 3: initialUsbCheck return value: Unknown command usb, try help.
2017.12.10 12:52:44 2: SecurityCheck: WEB,WEBphone,WEBtablet has no associated allowed device with basicAuth. telnetPort has no associated allowed device with password/globalpassword. Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2017.12.10 12:52:44 0: Featurelevel: 5.8
2017.12.10 12:52:44 0: Server started with 59 defined entities (fhem.pl:15377/2017-11-01 perl:5.020002 os:linux user:fhem pid:674)
2017.12.10 12:53:47 1: reload: Error:Modul 98_update deactivated:
Unrecognized character \x08; marked by <-- HERE after next af<-- HERE near column 12 at ./FHEM/98_update.pm line 216.
2017.12.10 12:53:47 0: Unrecognized character \x08; marked by <-- HERE after next af<-- HERE near column 12 at ./FHEM/98_update.pm line 216.
2017.12.10 12:54:04 1: PERL WARNING: Subroutine update_Initialize redefined at ./FHEM/98_update.pm line 35.
2017.12.10 12:54:04 1: PERL WARNING: Subroutine updDone redefined at ./FHEM/98_update.pm line 76.
2017.12.10 12:54:04 1: PERL WARNING: Subroutine CommandUpdate redefined at ./FHEM/98_update.pm line 46.
2017.12.10 12:54:04 1: PERL WARNING: Subroutine upd_metainit redefined at ./FHEM/98_update.pm line 91.
2017.12.10 12:54:04 1: PERL WARNING: Subroutine upd_metacmd redefined at ./FHEM/98_update.pm line 108.
2017.12.10 12:54:04 1: PERL WARNING: Subroutine uLog redefined at ./FHEM/98_update.pm line 156.
2017.12.10 12:54:04 1: PERL WARNING: Subroutine update_Log2Event redefined at ./FHEM/98_update.pm line 171.
2017.12.10 12:54:04 1: PERL WARNING: Subroutine doUpdateInBackground redefined at ./FHEM/98_update.pm line 182.
2017.12.10 12:54:04 1: reload: Error:Modul 98_update deactivated:
Unrecognized character \x08; marked by <-- HERE after next af<-- HERE near column 12 at ./FHEM/98_update.pm line 216.
2017.12.10 12:54:04 0: Unrecognized character \x08; marked by <-- HERE after next af<-- HERE near column 12 at ./FHEM/98_update.pm line 216.
2017.12.10 12:59:14 3: WEB_127.0.0.1_41483: unsupported HTTP method HEAD, rejecting it.
2017.12.10 12:59:20 1: reload: Error:Modul 98_update deactivated:
Unrecognized character \x08; marked by <-- HERE after next af<-- HERE near column 12 at ./FHEM/98_update.pm line 216.
2017.12.10 12:59:20 0: Unrecognized character \x08; marked by <-- HERE after next af<-- HERE near column 12 at ./FHEM/98_update.pm line 216.
2017.12.10 12:59:37 3: WEB_127.0.0.1_41516: unsupported HTTP method HEAD, rejecting it.
2017.12.10 13:00:52 1: reload: Error:Modul 98_update deactivated:
Unrecognized character \x08; marked by <-- HERE after next af<-- HERE near column 12 at ./FHEM/98_update.pm line 216.
2017.12.10 13:00:52 0: Unrecognized character \x08; marked by <-- HERE after next af<-- HERE near column 12 at ./FHEM/98_update.pm line 216.
2017.12.10 13:00:59 1: reload: Error:Modul 98_update deactivated:
Unrecognized character \x08; marked by <-- HERE after next af<-- HERE near column 12 at ./FHEM/98_update.pm line 216.
2017.12.10 13:00:59 0: Unrecognized character \x08; marked by <-- HERE after next af<-- HERE near column 12 at ./FHEM/98_update.pm line 216.
2017.12.10 13:01:11 1: reload: Error:Modul 98_update deactivated:
Unrecognized character \x08; marked by <-- HERE after next af<-- HERE near column 12 at ./FHEM/98_update.pm line 216.
2017.12.10 13:01:11 0: Unrecognized character \x08; marked by <-- HERE after next af<-- HERE near column 12 at ./FHEM/98_update.pm line 216.
update: Ich habe per wget die neueste fhem deb (5.8) geholt und entpackt. danach noch sudo apt-get install -f. Danach läuft update command wieder. Fehler im Log sind weg, aber die Device kennt fhem scheinbar nicht mehr:
2017.12.10 13:33:08 0: Server shutdown
2017.12.10 13:33:10 1: Including fhem.cfg
2017.12.10 13:33:10 3: telnetPort: port 7072 opened
2017.12.10 13:33:11 3: WEB: port 8083 opened
2017.12.10 13:33:11 3: WEBphone: port 8084 opened
2017.12.10 13:33:11 3: WEBtablet: port 8085 opened
2017.12.10 13:33:11 2: eventTypes: loaded 535 events from ./log/eventTypes.txt
2017.12.10 13:33:11 3: TABLETUI: new ext defined infix:dk: dir:./www/tablet/:
2017.12.10 13:33:11 3: Registering HTTPSRV TABLETUI for URL /dk and assigned link dk ...
2017.12.10 13:33:11 1: Including ./log/fhem.save
2017.12.10 13:33:11 3: No I/O device found for MAX_165382
2017.12.10 13:33:11 3: No I/O device found for Gartenhaus
2017.12.10 13:33:11 3: No I/O device found for MAX_051106
2017.12.10 13:33:11 3: No I/O device found for MAX_13c797
2017.12.10 13:33:11 3: No I/O device found for MAX_14f313
2017.12.10 13:33:11 3: No I/O device found for MAX_16537b
2017.12.10 13:33:11 3: No I/O device found for ZWave_SWITCH_MULTILEVEL_3.02
2017.12.10 13:33:11 3: No I/O device found for MAX_14d4bd
2017.12.10 13:33:11 3: No I/O device found for MAX_12c162
2017.12.10 13:33:11 3: No I/O device found for MAX_04c189
2017.12.10 13:33:11 3: No I/O device found for MAX_12c1d6
2017.12.10 13:33:11 3: No I/O device found for MAX_1302cf
2017.12.10 13:33:11 3: No I/O device found for MAX_165377
2017.12.10 13:33:11 3: No I/O device found for MAX_14d3ac
2017.12.10 13:33:11 3: No I/O device found for MAX_130da2
2017.12.10 13:33:11 3: No I/O device found for MAX_13b893
2017.12.10 13:33:11 3: No I/O device found for MAX_13161e
2017.12.10 13:33:11 3: No I/O device found for ZWave_SWITCH_MULTILEVEL_3.01
2017.12.10 13:33:11 3: No I/O device found for MAX_0455f0
2017.12.10 13:33:11 3: No I/O device found for MaX_1301d4
2017.12.10 13:33:11 3: No I/O device found for MAX_1655df
2017.12.10 13:33:11 3: No I/O device found for MAX_16615f
2017.12.10 13:33:11 3: No I/O device found for MAX_13c781
2017.12.10 13:33:11 3: No I/O device found for LAX_166048
2017.12.10 13:33:12 1: usb create starting
2017.12.10 13:33:12 3: Probing CUL device /dev/ttyAMA0
2017.12.10 13:33:12 3: Probing TCM_ESP3 device /dev/ttyAMA0
2017.12.10 13:33:12 3: Probing ZWDongle device /dev/ttyAMA0
2017.12.10 13:33:12 3: Probing FRM device /dev/ttyAMA0
2017.12.10 13:33:18 3: Probing CUL device /dev/ttyS0
2017.12.10 13:33:18 1: usb create end
2017.12.10 13:33:18 2: SecurityCheck: WEB,WEBphone,WEBtablet has no associated allowed device with basicAuth. telnetPort has no associated allowed device with password/globalpassword. Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2017.12.10 13:33:18 0: Featurelevel: 5.8
2017.12.10 13:33:18 0: Server started with 59 defined entities (fhem.pl:15564/2017-12-07 perl:5.020002 os:linux user:fhem pid:7634)
FHEM kennt die Device, aber das IO Device dafür nicht. Soll heißen dein Gateway zum Senden und Empfangen von MAX Device fehlt. Such mal danach in der Everything Ansicht und schau dir den Status dazu an. Weiß nicht, welches Gerät du hast, sollte es aber per USB angeschloss gewesen sein und nicht bei ID eingebunden worden, dann wird FHEM es vermutlich nicht erkennen und deswegen den Fehler auswerfen. Vielleicht musst du aber auch nur das IO Device neu zuordnen. Wie gesagt bei dem IO Device anfangen zu suchen.
Ich verstehe nicht alles, was du da schreibst, aber ich habe versucht es zu suchen. Eigentlich werden die Max Geräte über ein MAXLAN definiert (define ml MAXLAN IP). das Gerät ml ist aber unter everything nicht zu finden, auch nicht, wenn man den Befehl erneut eingibt.
Zusätzlich habe ich ein ZWAVE Gerät eingebunden, was das gleiche Problem hat. Welches IO Device hier fehlt, weiß ich nicht.
Wie ich diese IO Devices wieder reinbekomme, weiß ich auch nicht...
edit: unter "unsorted" habe ich nun das IO Device "ml", was auch bei den einzelnen Devices als IODevice angegeben ist. Trotzdem findet fhem für meine Device das entsprechende IODevice nicht. Für mein Zwave gibt es kein IO Device.
Wenn du ein Gerät nicht findest, dann wirst du dieses vermutlich neu anlegen müssen.
Wegen des Maxlan, poste doch mal ein List des Device.
Ich weiß beim Zwave Dongle nicht, wie ich das als neues IO Device einbinde. In meinem Kit von pi3g war das eigentlich vorinstalliert.
List meines MAX Cubes:
Internals:
CFGFN
DEF 192.168.0.70
DeviceName 192.168.0.70:62910
FD 34
INTERVAL 60
LASTInputDev ml
MSGCNT 2
NAME ml
NR 125
PARTIAL
STATE opened
TYPE MAXLAN
addr 14448f
clockset 3
cubeTimeDifference 0
dutycycle 1 %
fwversion 0113
ml_MSGCNT 2
ml_TIME 2017-12-10 14:11:27
pairmode 0
persistent 1
serial MKF0061363
READINGS:
2017-12-10 14:11:27 dutycycle 1
2017-12-10 14:11:27 firmware 0.1
2017-12-10 14:11:26 state opened
2017-12-10 14:11:27 testresult 255
devices:
HASH(0x1a81cf8)
HASH(0x1a82178)
HASH(0x1a82058)
HASH(0x1a823b8)
HASH(0x1ace700)
HASH(0x1ad67f8)
HASH(0x1a82250)
HASH(0x1a81ba8)
HASH(0x1a822b0)
HASH(0x1acc928)
HASH(0x1acc9d0)
HASH(0x1acca78)
HASH(0x1acdd40)
HASH(0x1acdde8)
HASH(0x1acde90)
HASH(0x1acdf38)
HASH(0x1acdfe0)
HASH(0x1ace088)
HASH(0x1ace130)
HASH(0x1add1c0)
HASH(0x1add268)
HASH(0x1add310)
HASH(0x1add3b8)
HASH(0x1add7a8)
groups:
HASH(0x1acee20)
HASH(0x1a49078)
HASH(0x1a49288)
HASH(0x1a81ef0)
HASH(0x1a51140)
HASH(0x1a81de8)
HASH(0x1a81fc8)
HASH(0x1a81b30)
Attributes:
edit: ich habe den define Befehl wiederholt und die config gesaved (vorher scheinbar vergessen). Die Log ändert sich nun deutlich:
2017.12.10 14:13:37 0: Server shutdown
2017.12.10 14:13:40 1: Including fhem.cfg
2017.12.10 14:13:40 3: telnetPort: port 7072 opened
2017.12.10 14:13:40 3: WEB: port 8083 opened
2017.12.10 14:13:40 3: WEBphone: port 8084 opened
2017.12.10 14:13:40 3: WEBtablet: port 8085 opened
2017.12.10 14:13:40 2: eventTypes: loaded 637 events from ./log/eventTypes.txt
2017.12.10 14:13:41 3: TABLETUI: new ext defined infix:dk: dir:./www/tablet/:
2017.12.10 14:13:41 3: Registering HTTPSRV TABLETUI for URL /dk and assigned link dk ...
2017.12.10 14:13:41 1: Including ./log/fhem.save
2017.12.10 14:13:41 3: No I/O device found for Gartenhaus
2017.12.10 14:13:41 3: No I/O device found for ZWave_SWITCH_MULTILEVEL_3.02
2017.12.10 14:13:41 3: No I/O device found for MaX_1301d4
2017.12.10 14:13:41 3: No I/O device found for ZWave_SWITCH_MULTILEVEL_3.01
2017.12.10 14:13:41 3: No I/O device found for LAX_166048
2017.12.10 14:13:41 1: usb create starting
2017.12.10 14:13:41 3: Probing CUL device /dev/ttyAMA0
2017.12.10 14:13:42 3: Probing TCM_ESP3 device /dev/ttyAMA0
2017.12.10 14:13:42 3: Probing ZWDongle device /dev/ttyAMA0
2017.12.10 14:13:42 3: Probing FRM device /dev/ttyAMA0
2017.12.10 14:13:47 3: Probing CUL device /dev/ttyS0
2017.12.10 14:13:47 1: usb create end
2017.12.10 14:13:47 2: SecurityCheck: WEB,WEBphone,WEBtablet has no associated allowed device with basicAuth. telnetPort has no associated allowed device with password/globalpassword. Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2017.12.10 14:13:47 0: Featurelevel: 5.8
2017.12.10 14:13:47 0: Server started with 60 defined entities (fhem.pl:15564/2017-12-07 perl:5.020002 os:linux user:fhem pid:9936)
2017.12.10 14:13:47 3: Opening ml device 192.168.0.70:62910
2017.12.10 14:13:47 3: ml device opened
2017.12.10 14:13:48 1: Device changed type from HeatingPhermostat to HeatingThermostat
2017.12.10 14:13:48 2: Got message for undefined device 051189, and failed to guess type from msg 'Error' - ignoring
2017.12.10 14:13:48 2: Got message for undefined device 130c07, and failed to guess type from msg 'Error' - ignoring
2017.12.10 14:13:48 2: Got List response for undefined device with addr 051189
2017.12.10 14:13:48 2: Got List response for undefined device with addr 130c07
Die Maxgeräte scheinen nun zu funktionieren.
Was ist ein Kit von pi3g?? Mit dem define Befehl bindest du jedes Gerät, egal ob IO Device oder sonstiges ein. Sollte dir dies nicht bekannt sein, kann ich dir nur wärmstens Empfehlen das Anfänger Dokument zu lesen.
Die Maxgeräte funktionieren nun, nachdem ich das Device definiert habe, ja. Vielen Dank.
Pi3G? Sorry, mein Fehler. Ein Raspberry Pi Kit mit Zwave Modul und FHEM vorinstalliert, ohne Bastelei. Wenn ich dich korrekt verstehe, muss ich also rausfinden, was für ein Device in meinem Pi steckt und es dann ebenfalls über define einbinden?
korrekt :)
Edit:
Du hast ja ein Backup deiner alten Config, wenn ich es richtig lese. Öffne die Datei fhem.cfg und suche nach dem Namen deines alten Z-Wave IO-Device. Dann solltest du auch die alte Definition finden, welche du vermutlich übernehmen kannst.
Wo kann man denn inzwischen solch vorkonfigurierten Dinge kaufen?
Auf die Idee, in die alte cfg reinzugucken, bin ich noch nicht gekommen, weil ich die ja eigentlich auf den Pi kopiert hatte. Dein Hinweis hat aber geholfen, ich habe die alte ID gefunden und eingebunden. Der ZWave Dingle wird nun auch als "initialized" gezeigt, die ZWave Geräte funktionieren aber nicht. Ich probiere hier mal noch ein bisschen weiter.
Das Kit ist von pi3g.com, vertrieben zb bei pollin.de
poste mal ein List des ZWave Dongle und schau mal ins Log, ob da irgendwas steht bezüglich des Dongle.
eigentlich soll der Dongle über /dev/ttyS0 eingebunden werden, da bekomme ich aber folgende Fehler:
2017.12.10 15:22:46 3: Opening ZWAVE1 device /dev/ttyS0
2017.12.10 15:22:46 3: Can't open /dev/ttyS0: Datei oder Verzeichnis nicht gefunden
Binde ich ihn über /dev/ttyAMA0 ein, bekommt er "initialized", funktioniert aber nicht. In meiner originalen Config war es /dev/ttyS0
Internals:
CallbackNr 0
Clients :ZWave:
DEF /dev/ttyAMA0@115200
DeviceName /dev/ttyAMA0@115200
FD 33
MaxSendRetries 3
NAME ZWAVE1
NR 92
PARTIAL
STATE Initialized
SendRetries 0
SendTime 1512916170.71266
TYPE ZWDongle
WaitForAck 0
nrNAck 0
MatchList:
1:ZWave .*
READINGS:
2017-12-10 15:27:01 state Initialized
SendStack:
Attributes:
Versuch ihn by ID einzubinden: https://wiki.fhem.de/wiki/Trick_der_Woche#CUL_.26_CO_.C3.BCber_Serial_ID-einbinden ist übertragbar auf deinen Dongle
Ansonsten findest du weitere Infos hier: https://wiki.fhem.de/wiki/Z-Wave
Da ich kein ZWave habe kann ich dir vermutlich da nicht weiterhelfen. Alternativ kannst du auch im Z-Wave Forum fragen, wenn du mit dem Wiki und der Suchfunktion nicht weiterkommst.
Das habe ich nun mit deiner Hilfe auch zum Laufen bekommen. Jetzt wird zwar der Max Cube wieder nicht erreicht, aber das Problem löse ich noch. Danke!
edit: Problem gelöst: define ml maxlan IP muss vor allen anderen Max EInträgen stehen.
Korrekt, aber normal sortiert FHEM das automatisch. Sollte dem nicht so sein, den Cube wieder löschen und neu definieren.
Freut mich, dass es nun alles wieder klappt.
Edit:
Was mich noch interssieren würde ist wo genau du bei der Homepage einen PI mit FHEM gekauft hast? Ich kann dazu leider nichts finden.
Edit2:
Erledigt, bei pollin finde ich es, bei pi3g nicht. Verrückt was es alles gibt und besonders, welcher Preis da aufgerufen wird. Krasse Aktion.