Probleme mit 2 JEELINKs und dblog

Begonnen von thburkhart, 21 Juni 2016, 09:49:52

Vorheriges Thema - Nächstes Thema

thburkhart

Guten Morgen,
seit einiger Tagen treten bei mir folgende Probleme bei meinen JEElinksauf eimen Raspberry PI3 auf.

Ich verwende einen für LaCrosse, den anderen für PCA301 (Stromverbrauch)

Ich habe sie wie folgt definiert:
### JEELINK 0 # JLPCA301 PCA301 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
# für Stromverbrauch
define JLPCA301 JeeLink /dev/ttyUSB0@57600
attr JLPCA301 alias JLPCA301 blaue LED
attr JLPCA301 flashCommand avrdude -p atmega328P -c arduino -P [PORT] -D -U flash:w:[HEXFILE] 2>[LOGFILE]

### JEELINK 1 # JLLaCR LaCrosse <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
# für Temperatur, Luftfeuchtigkeit
define JLLaCR JeeLink /dev/ttyUSB1@57600
attr JLLaCR alias JLLaCR Robin
attr JLLaCR flashCommand avrdude -p atmega328P -c arduino -P [PORT] -D -U flash:w:[HEXFILE] 2>[LOGFILE]
attr JLLaCR room Unsorted

und dazu die zugehörige logdb:

define dblog_THB DbLog ./configDB.conf .*:(temperature|valveposition|humidity|battery|consumptionTotal|power).*
attr dblog_THB DbLogType History,frontend

die PCA301 werden so autofiniert:

define PCA301_0E7B3A PCA301 0E7B3A 05
attr PCA301_0E7B3A IODev JLLaCR
attr PCA301_0E7B3A devStateIcon on:on:toggle off:off:toggle set.*:light_exclamation:off
attr PCA301_0E7B3A room PCA301
attr PCA301_0E7B3A userReadings consumptionTotal:consumption monotonic {ReadingsVal($name,'consumption',0)}
attr PCA301_0E7B3A webCmd on:off:toggle:statusRequest
define FileLog_PCA301_0E7B3A FileLog ./log/PCA301-%Y-%m.log PCA301_0E7B3A
attr FileLog_PCA301_0E7B3A logtype text
attr FileLog_PCA301_0E7B3A room PCA301

im startlog finde ich dabei folgendes:


2016.06.21 08:52:03 3: Connecting to database mysql:database=fhem;host=localhost;port=3306 with user root
2016.06.21 08:52:03 3: Connection to db mysql:database=fhem;host=localhost;port=3306 established for pid 3031
2016.06.21 08:52:03 3: Connection to db mysql:database=fhem;host=localhost;port=3306 established
2016.06.21 08:52:03 3: TX25IT_01: I/O device is JLLaCR
2016.06.21 08:52:03 3: TX29_01: I/O device is JLLaCR
2016.06.21 08:52:03 3: TX29DTH_00: I/O device is JLLaCR
2016.06.21 08:52:03 3: TX29DTH_01: I/O device is JLLaCR
2016.06.21 08:52:03 3: TX29DTH_02: I/O device is JLLaCR
2016.06.21 08:52:03 3: TX29DTH_03: I/O device is JLLaCR
2016.06.21 08:52:03 3: TX29DTH_04: I/O device is JLLaCR
2016.06.21 08:52:03 3: TX29DTH_05: I/O device is JLLaCR
2016.06.21 08:52:03 3: TX29DTH_06: I/O device is JLLaCR
2016.06.21 08:52:03 3: TX29DTH_07: I/O device is JLLaCR
2016.06.21 08:52:03 3: XLaCross_01: I/O device is JLLaCR
2016.06.21 08:52:04 1: Including ./log/fhem.save
2016.06.21 08:52:04 3: PCA301 Unknown device 09F347, please define it
2016.06.21 08:52:04 2: autocreate: define PCA301_09F347 PCA301 09F347 06
2016.06.21 08:52:04 3: PCA301_09F347: I/O device is JLLaCR
2016.06.21 08:52:04 2: autocreate: define FileLog_PCA301_09F347 FileLog ./log/PCA301-%Y-%m.log PCA301_09F347

und danach:

2016.06.21 08:52:35 3: Connecting to database mysql:database=fhem;host=localhost;port=3306 with user root
2016.06.21 08:52:35 3: Connection to db mysql:database=fhem;host=localhost;port=3306 established for pid 24598
2016.06.21 08:52:35 3: Connection to db mysql:database=fhem;host=localhost;port=3306 established
2016.06.21 08:52:35 3: TX25IT_01: I/O device is JLLaCR
2016.06.21 08:52:35 3: TX29_01: I/O device is JLLaCR
2016.06.21 08:52:35 3: TX29DTH_00: I/O device is JLLaCR
2016.06.21 08:52:35 3: TX29DTH_01: I/O device is JLLaCR
2016.06.21 08:52:35 3: TX29DTH_02: I/O device is JLLaCR
2016.06.21 08:52:35 3: TX29DTH_03: I/O device is JLLaCR
2016.06.21 08:52:35 3: TX29DTH_04: I/O device is JLLaCR
2016.06.21 08:52:35 3: TX29DTH_05: I/O device is JLLaCR
2016.06.21 08:52:35 3: TX29DTH_06: I/O device is JLLaCR
2016.06.21 08:52:35 3: TX29DTH_07: I/O device is JLLaCR
2016.06.21 08:52:35 3: XLaCross_01: I/O device is JLLaCR
2016.06.21 08:52:36 3: PCA301_09F347: I/O device is JLLaCR
2016.06.21 08:52:36 3: PCA301_09F384: I/O device is JLLaCR
2016.06.21 08:52:36 3: PCA301_0C3BE9: I/O device is JLLaCR
2016.06.21 08:52:36 3: PCA301_0D8AFC: I/O device is JLLaCR
2016.06.21 08:52:36 3: PCA301_0D8B39: I/O device is JLLaCR
2016.06.21 08:52:36 3: PCA301_019AAA: I/O device is JLLaCR
2016.06.21 08:52:36 3: PCA301_09F25D: I/O device is JLLaCR
2016.06.21 08:52:36 3: PCA301_0E7B3A: I/O device is JLLaCR

d.h. die PCA301-Devices werden dem laCrosse-Jeelink statt dem PCA301 zugewiesen.


Dennoch hat das immer wieder ein paar Tage funktioniert, bis ich feststellte, dass typischerweise die readings temparature,consumption und consumptionTotal nicht mehr in die db geschrieben wurden; in die Filelog aber sehr wohl.

Wenn ich die PCA301-Definitionen lösche und wieder neu erkennen lasse wird wieder in die DB geschrieben; dies aber nur 2 bis 3 Tage.

Die DB-Log habe ich dabei täglich mit "dblog xxxxx reduelog " verdichtet.
"event-on-change-reading" habe ich vermieden, da ich darin das Nichtschreiben in die DB vermutete.



Woran kann das liegen?

Ich bitte um Hilfe.

bg
Thomas