VBus in fhem

Begonnen von sweetie-pie, 15 Januar 2013, 12:27:34

Vorheriges Thema - Nächstes Thema

pejonp

@rellla
Da kannst  du ja auch einen Datalogger DL2 nehmen.

Da die Preise für vbus lan und USB nicht sehr weit auseinanderliegen würde ich den vbus lan Adapter nehmen. Diesen habe ich auch im Einsatz. Den vbus kannst du ja da hin verlängern wo der nächste  lan-anschluss ist. Meine resol vbus lan Adapter ist da. 20m entfernt (4adrige telefonleitung). Probleme mit USB Schau mal einige Beiträge weiter vorne.

Pejonp
LaCrossGW 868MHz:WT470+TFA+TX37-IT+EMT7110+W136+WH25A HP1003+WH2621
SignalD(CC1101):Bresser+WS-0101(868MHz WH1080)+Velux KLF200+MAX!+HM-MOD-UART:Smoke HM-SEC-SD+VITOSOLIC 200 RESOL VBUS-LAN+SolarEdge SE5K(Modbus)+Sonnen!eco8(10kWh)+TD3511+DRT710M(Modbus)+ZigBee+Z-Wave+MQTT+vitoconnect

rellla

Danke für deine Nachricht. Der Datalogger DL2 liegt ja preislich nochmal deutlich über den anderen, kommt also eher nicht in Frage.
Problem beim Resol USB-Adapter ist dann wohl, dass er die Schnittstelle sehr belastet und FHEM gut beschäftigt? Aber grundsätzlich funktioniert er, oder?

Ich scheue mich auch nicht gegen Basteln und hätte wohl alles für https://groups.google.com/forum/#!topic/resol-vbus/3CjZffK53ig rumliegen.
Wenn ich es richtig verstehe, müsste das dann an die entsprechenden GND, RX und 3,3V meines BananaPi geführt werden, damit ich was auf dem seriellen Port bekomme. Richtig?
Das wäre dann die preislich günstigste Lösung. Wie gesagt, es geht nur ums Auslesen.
Kann mir das wer bestätigen? Wenn das funktioniert, werde ich diese Variante wählen.
Alternativ wäre zum direkten PIN-Anschluß wohl ein RS232-USB Konverter möglich, den ich mir aber wohl sparen kann.

Funktionieren auch fertige Adapter, die den VBUS direkt auf USB führen, wie z.B. der o.g. RS485-USB?

Sorry für die Newbie Fragen... und Danke.

Gruß
Andreas

Telekatz

Wenn du basteln willst, würde ich eher die Schaltung vorschlagen, die auch Resol empfiehlt (Seite 6):
https://drive.google.com/file/d/0B4wMTuLGRPi2RnU0Vm1tTG5wM1k/edit

rellla

Ok danke. Ich such mir dann mal die Bauteile zusammen und werde mich am Löten versuchen. Ich denke, das könnt ich hinkriegen.

Gruß
Andreas

Klaus0815

Welche Hardware kann denn nun zum Auslesen verwendet werden:
- VBUS Lan Adapter (http://www.resol.de/index/produktdetail/id/76/sprache/de///) -> ok
- VBUS USB Adapter (http://www.resol.de/index/produktdetail/kategorie/2/id/13/sprache/de) -> ?
- RS485-USB Konverter (https://forum.fhem.de/index.php/topic,10303.msg546451/topicseen.html#msg546451) -> ?


Wenn es günstig sein soll und Du basteln willst könntest Dir auch was mit ESPEasy basteln - läuft bei mir seit 2 Jahren problemlos.
Es gibt dort ein Plugin
https://github.com/letscontrolit/ESPEasyPluginPlayground/blob/master/_P109_RESOL_DeltaSol_Pro.ino
das Du ggfs auf Deine Resol-Steuerung anpassen musst.
Dieses stammt von chunter1, der ist hier auch im FHEM-Forum unterwegs.

Ich habe als Interface auch nur eine rel. einfache Schaltung mit Transistor und 2 Nand, Du musst ja gar nicht auf die Resol-Steuerung schreiben können, lesen reicht voll aus

Grüße
Klaus

HeikoE

Hallo,

Um den Zeitversatz durch das riesige "PARTIAL" in den Griff zu bekommen, hatte ich zuvor jede Nacht fhem neugestartet. Nach einigen Tagen wurde fhem sonst immer langsamer und die Ansicht von "vbusif" hatte sogar den Browser gekillt.

Also habe ich ein wenig geforscht und rumprobiert.

Wenn ich auf https://danielwippermann.github.io/resol-vbus/vbus-over-tcp.html alles richtig verstanden habe, werden nach dem Befehl "DATA" zyklisch Telegramme in den vbus gesendet. Mein Deltasol SLT macht das in einer solch hohen Rate, dass das Internal PARTIAL immer länger wird. Es werden viel mehr Daten über DevIo.pm vom Gerät kommend hinten angehängt, als von fhem verarbeitet werden.
Jetzt dachte ich, man könne das Senden beenden indem man "QUIT" an den vbus sendet:
Ich habe also zum Testen in "sub VBUSIF_Set" einen Set "close" eingebaut

...
  } elsif ( lc $cmd eq "close") {

     VBUSIF_Write($hash, "QUIT\n", "");  # Stop data transfer
  }

Hat leider nicht funktioniert.

Also den Dampfhammer ausgepackt und einfach das IO komplett geschlossen.
Das geht, und kann auch mit einem "set vbus open" wieder geöffent werden.

Ich habe also in der "sub VBUSIF_Read" nach dem Decodieren der Daten einen entsprechenden Closebefehl aufgerufen und einen Timer gestartet, der das Device nach 60s wieder öffnet.
Das geht zumindest, schreibt aber leider für jedes Öffnen was ins Log:

2018.03.06 21:40:01 3: Opening vbus device 192.168.178.13:7053
2018.03.06 21:40:01 3: vbus device opened

Ist für mich derzeit das geringere Übel.

Meine geänderte 19_VBUSIF.pm ist angehängt. Ob die Umsetzung besonders "schön" ist wage ich anzuzweifeln, denn ich habe mir die passenden Codeschnipsel aus dem WIKI und anderen Modulen zusammengesucht und kopiert.
Vielleicht weiss ja auch jemand, wie man das senden beenden kann, ohne das IO zu schliessen.

Viele Grüße
Heiko

pejonp

@HeikoE

mach mal ein apptime clear und dann ein apptime und schau dir deine prozesse an und wiki für apptime.

Danach versuche mal ein leeres System nur mit VBUS.
1. stoppe mal dein FHEM.
2. sichere deine fhem.cfg weg und starte mit einer leeren. ggf auch die Logs löschen/wegsichern.
3. richte nur VBUS ein.
4. Was passiert ?
5. Was steht im log ?
6. Auf was für ein System läuft FHEM ?

version:
21_VBUSDEV.pm          20181202 2018-12-02 10:10:10Z pejonp
19_VBUSIF.pm           20170226 2017-02-26 10:10:10Z awk+pejonp

Deine angepaßte Datei 19_VBUSIF.pm funktioniert bei mir nicht.

so sieht mein apptime aus und da läuft noch alles gut und schnell. DBLog wird in eine MYSQL-DB auf dem NAS(QNAP) gespeichert.

active-timers: 78; max-active timers: 80; max-timer-load: 3  min-tmrHandlingTm: 0.7ms; max-tmrHandlingTm: 161.0ms; totAvgDly: 41.6ms
min-timersortTm: 0.6ms; max-timersortTm: 3.7ms

name                                     function                               max    count      total  average   maxDly   avgDly TS Max call     param Max call
logdb                                    DbLog_Log                              869      777   28102.54    36.17     0.00     0.00 06.03. 22:23:17 HASH(logdb); HASH(WeatherStation)
LadungSolarBatNotify                     notify_Exec                            424        9     953.18   105.91     0.00     0.00 06.03. 22:25:00 HASH(LadungSolarBatNotify); HASH(SonBat)
logdb                                    DbLog_Get                              418        9     903.31   100.37     0.00     0.00 06.03. 22:25:00 HASH(logdb); logdb; ReadingsVal; SonBat; Ladezustand; 0
PWP                                      Modbus_Read                            267        9    1727.08   191.90     0.00     0.00 06.03. 22:23:59 HASH(PWP)
sduinoip868                              SIGNALduino_Read                       175       64    1541.86    24.09     0.00     0.00 06.03. 22:24:24 HASH(sduinoip868)
myHmUART                                 HMUARTLGW_Read                          62       39     148.92     3.82     0.00     0.00 06.03. 22:25:52 HASH(myHmUART)
tmr-DbLog_execmemcache                   HASH(0xc32870)                          59       18     897.50    49.86   520.08    32.09 06.03. 22:23:20 HASH(logdb)
AC_StromWR                               notify_Exec                             56        9     333.81    37.09     0.00     0.00 06.03. 22:23:59 HASH(AC_StromWR); HASH(PWP)
tmr-SYSMON_Update                        HASH(0x332b170)                         56        9     466.35    51.82     3.91     3.08 06.03. 22:24:14 HASH(rasp3i)
Thermie                                  VBUSIF_Read                             54     5546    6638.92     1.20     0.00     0.00 06.03. 22:23:06 HASH(Thermie)
WeatherStation                           Unit_DbLog_split                        47     1973   23549.81    11.94     0.00     0.00 06.03. 22:23:16 wind_direction: 248; WeatherStation
LG1                                      LaCrosseGateway_Read                    45      570    5227.23     9.17     0.00     0.00 06.03. 22:28:40 HASH(LG1)
FSK868                                   SIGNALduino_Read                        40      343    1237.22     3.61     0.00     0.00 06.03. 22:23:05 HASH(FSK868)
PV80                                     notify_Exec                             38        9     267.35    29.71     0.00     0.00 06.03. 22:23:00 HASH(PV80); HASH(SonBat)
tmr-FRITZBOX_Readout_Start               7230.Readout                            37        1      37.71    37.71     3.96     3.96 06.03. 22:26:30 7230.Readout
tmr-FRITZBOX_Readout_Start               7490.Readout                            32        1      32.33    32.33     3.32     3.32 06.03. 22:26:29 7490.Readout
tmr-ModbusLD_GetUpdate                   update                                  30        9     253.22    28.14     7.72     3.83 06.03. 22:22:59 update:PWP
Stat_58                                  statistics_Notify                       29      777     423.16     0.54     0.00     0.00 06.03. 22:22:48 HASH(Stat_58); HASH(WH1080_31)
tmr-ESPEasy_statusRequest                HASH(0x2e98830)                         27        2      53.71    26.85     3.71     3.27 06.03. 22:30:49 HASH(ESPEasy_W266_Wind)
CUL_NET                                  CUL_Read                                26       20      55.16     2.76     0.00     0.00 06.03. 22:24:05 HASH(CUL_NET)
tmr-ESPEasy_statusRequest                HASH(0x2e97eb0)                         25        2      48.96    24.48   574.72   288.71 06.03. 22:24:37 HASH(ESPEasy_W266_Rain)
Mosquitto                                MQTT::Read                              24        9     162.17    18.02     0.00     0.00 06.03. 22:23:15 HASH(Mosquitto)
tmr-ESPEasy_statusRequest                HASH(0x2ee6c90)                         24        2      48.14    24.07     3.83     3.27 06.03. 22:30:30 HASH(ESPEasy_W266_Blitz)
tmr-ESPEasy_statusRequest                HASH(0x2e96dc8)                         23        2      47.29    23.65     3.19     2.94 06.03. 22:30:37 HASH(ESPEasy_W266_W137)
tmr-ESPEasy_statusRequest                HASH(0x2ef3628)                         23        2      46.86    23.43     3.92     3.54 06.03. 22:25:01 HASH(ESPEasy_W266_W266Display)
tmr-ESPEasy_statusRequest                HASH(0x2e98f98)                         23        2      46.98    23.49     3.19     2.91 06.03. 22:22:24 HASH(ESPEasy_W266_UV)
tmr-ESPEasy_statusRequest                HASH(0x2ef2f68)                         23        2      46.36    23.18     3.01     2.85 06.03. 22:31:04 HASH(ESPEasy_W266_Bat)
tmr-ESPEasy_statusRequest                HASH(0x2f110c8)                         23        2      46.06    23.03    15.99    10.17 06.03. 22:31:05 HASH(ESPEasy_W266_WifiInfo)
tmr-CUL_HM_respPendTout                  respPend                                22        2      25.37    12.68     3.10     2.29 06.03. 22:25:47 respPend:239137
AC_FrequenzWR                            notify_Exec                             21        9     127.27    14.14     0.00     0.00 06.03. 22:23:59 HASH(AC_FrequenzWR); HASH(PWP)
AC_LeistungWR                            notify_Exec                             21        9     122.34    13.59     0.00     0.00 06.03. 22:23:59 HASH(AC_LeistungWR); HASH(PWP)
DC_LeistungWR                            notify_Exec                             21        9     129.27    14.36     0.00     0.00 06.03. 22:23:59 HASH(DC_LeistungWR); HASH(PWP)
DC_StromWR                               notify_Exec                             19        9     117.42    13.05     0.00     0.00 06.03. 22:23:59 HASH(DC_StromWR); HASH(PWP)
I_AC_Leistung_W                          dummy_Set                               13        9      78.03     8.67     0.00     0.00 06.03. 22:24:59 HASH(I_AC_Leistung_W); I_AC_Leistung_W; 0
I_DC_Leistung_W                          dummy_Set                               13        9      82.62     9.18     0.00     0.00 06.03. 22:23:59 HASH(I_DC_Leistung_W); I_DC_Leistung_W; 0
Einspeisung                              dummy_Set                               13        9      92.25    10.25     0.00     0.00 06.03. 22:23:00 HASH(Einspeisung); Einspeisung; -2634.9
I_AC_Frequenz_Hz                         dummy_Set                               13        9      78.09     8.68     0.00     0.00 06.03. 22:23:59 HASH(I_AC_Frequenz_Hz); I_AC_Frequenz_Hz; 49.99
tmr-CUL_HM_readStateTo                   sUpdt                                   12        1      12.21    12.21     2.68     2.68 06.03. 22:25:58 sUpdt:HM_239137
I_DC_Strom_A                             dummy_Set                               11        9      68.65     7.63     0.00     0.00 06.03. 22:23:59 HASH(I_DC_Strom_A); I_DC_Strom_A; 0
I_AC_StromL3_A                           dummy_Set                               11        9      66.90     7.43     0.00     0.00 06.03. 22:24:59 HASH(I_AC_StromL3_A); I_AC_StromL3_A; 0
VerbrauchHaus                            dummy_Set                               11        9      77.26     8.58     0.00     0.00 06.03. 22:24:00 HASH(VerbrauchHaus); VerbrauchHaus; 3360.1


pejonp
LaCrossGW 868MHz:WT470+TFA+TX37-IT+EMT7110+W136+WH25A HP1003+WH2621
SignalD(CC1101):Bresser+WS-0101(868MHz WH1080)+Velux KLF200+MAX!+HM-MOD-UART:Smoke HM-SEC-SD+VITOSOLIC 200 RESOL VBUS-LAN+SolarEdge SE5K(Modbus)+Sonnen!eco8(10kWh)+TD3511+DRT710M(Modbus)+ZigBee+Z-Wave+MQTT+vitoconnect

HeikoE

Zitat von: pejonp am 06 März 2018, 22:48:42
@HeikoE

mach mal ein apptime clear und dann ein apptime und schau dir deine prozesse an und wiki für apptime.

Danach versuche mal ein leeres System nur mit VBUS.
1. stoppe mal dein FHEM.
2. sichere deine fhem.cfg weg und starte mit einer leeren. ggf auch die Logs löschen/wegsichern.
3. richte nur VBUS ein.
4. Was passiert ?
5. Was steht im log ?
6. Auf was für ein System läuft FHEM ?

version:
21_VBUSDEV.pm          20181202 2018-12-02 10:10:10Z pejonp
19_VBUSIF.pm           20170226 2017-02-26 10:10:10Z awk+pejonp

Deine angepaßte Datei 19_VBUSIF.pm funktioniert bei mir nicht.

so sieht mein apptime aus und da läuft noch alles gut und schnell. DBLog wird in eine MYSQL-DB auf dem NAS(QNAP) gespeichert.

active-timers: 78; max-active timers: 80; max-timer-load: 3  min-tmrHandlingTm: 0.7ms; max-tmrHandlingTm: 161.0ms; totAvgDly: 41.6ms
min-timersortTm: 0.6ms; max-timersortTm: 3.7ms

name                                     function                               max    count      total  average   maxDly   avgDly TS Max call     param Max call
logdb                                    DbLog_Log                              869      777   28102.54    36.17     0.00     0.00 06.03. 22:23:17 HASH(logdb); HASH(WeatherStation)
LadungSolarBatNotify                     notify_Exec                            424        9     953.18   105.91     0.00     0.00 06.03. 22:25:00 HASH(LadungSolarBatNotify); HASH(SonBat)
logdb                                    DbLog_Get                              418        9     903.31   100.37     0.00     0.00 06.03. 22:25:00 HASH(logdb); logdb; ReadingsVal; SonBat; Ladezustand; 0
PWP                                      Modbus_Read                            267        9    1727.08   191.90     0.00     0.00 06.03. 22:23:59 HASH(PWP)
sduinoip868                              SIGNALduino_Read                       175       64    1541.86    24.09     0.00     0.00 06.03. 22:24:24 HASH(sduinoip868)
myHmUART                                 HMUARTLGW_Read                          62       39     148.92     3.82     0.00     0.00 06.03. 22:25:52 HASH(myHmUART)
tmr-DbLog_execmemcache                   HASH(0xc32870)                          59       18     897.50    49.86   520.08    32.09 06.03. 22:23:20 HASH(logdb)
AC_StromWR                               notify_Exec                             56        9     333.81    37.09     0.00     0.00 06.03. 22:23:59 HASH(AC_StromWR); HASH(PWP)
tmr-SYSMON_Update                        HASH(0x332b170)                         56        9     466.35    51.82     3.91     3.08 06.03. 22:24:14 HASH(rasp3i)
Thermie                                  VBUSIF_Read                             54     5546    6638.92     1.20     0.00     0.00 06.03. 22:23:06 HASH(Thermie)
WeatherStation                           Unit_DbLog_split                        47     1973   23549.81    11.94     0.00     0.00 06.03. 22:23:16 wind_direction: 248; WeatherStation
LG1                                      LaCrosseGateway_Read                    45      570    5227.23     9.17     0.00     0.00 06.03. 22:28:40 HASH(LG1)
FSK868                                   SIGNALduino_Read                        40      343    1237.22     3.61     0.00     0.00 06.03. 22:23:05 HASH(FSK868)
PV80                                     notify_Exec                             38        9     267.35    29.71     0.00     0.00 06.03. 22:23:00 HASH(PV80); HASH(SonBat)
tmr-FRITZBOX_Readout_Start               7230.Readout                            37        1      37.71    37.71     3.96     3.96 06.03. 22:26:30 7230.Readout
tmr-FRITZBOX_Readout_Start               7490.Readout                            32        1      32.33    32.33     3.32     3.32 06.03. 22:26:29 7490.Readout
tmr-ModbusLD_GetUpdate                   update                                  30        9     253.22    28.14     7.72     3.83 06.03. 22:22:59 update:PWP
Stat_58                                  statistics_Notify                       29      777     423.16     0.54     0.00     0.00 06.03. 22:22:48 HASH(Stat_58); HASH(WH1080_31)
tmr-ESPEasy_statusRequest                HASH(0x2e98830)                         27        2      53.71    26.85     3.71     3.27 06.03. 22:30:49 HASH(ESPEasy_W266_Wind)
CUL_NET                                  CUL_Read                                26       20      55.16     2.76     0.00     0.00 06.03. 22:24:05 HASH(CUL_NET)
tmr-ESPEasy_statusRequest                HASH(0x2e97eb0)                         25        2      48.96    24.48   574.72   288.71 06.03. 22:24:37 HASH(ESPEasy_W266_Rain)
Mosquitto                                MQTT::Read                              24        9     162.17    18.02     0.00     0.00 06.03. 22:23:15 HASH(Mosquitto)
tmr-ESPEasy_statusRequest                HASH(0x2ee6c90)                         24        2      48.14    24.07     3.83     3.27 06.03. 22:30:30 HASH(ESPEasy_W266_Blitz)
tmr-ESPEasy_statusRequest                HASH(0x2e96dc8)                         23        2      47.29    23.65     3.19     2.94 06.03. 22:30:37 HASH(ESPEasy_W266_W137)
tmr-ESPEasy_statusRequest                HASH(0x2ef3628)                         23        2      46.86    23.43     3.92     3.54 06.03. 22:25:01 HASH(ESPEasy_W266_W266Display)
tmr-ESPEasy_statusRequest                HASH(0x2e98f98)                         23        2      46.98    23.49     3.19     2.91 06.03. 22:22:24 HASH(ESPEasy_W266_UV)
tmr-ESPEasy_statusRequest                HASH(0x2ef2f68)                         23        2      46.36    23.18     3.01     2.85 06.03. 22:31:04 HASH(ESPEasy_W266_Bat)
tmr-ESPEasy_statusRequest                HASH(0x2f110c8)                         23        2      46.06    23.03    15.99    10.17 06.03. 22:31:05 HASH(ESPEasy_W266_WifiInfo)
tmr-CUL_HM_respPendTout                  respPend                                22        2      25.37    12.68     3.10     2.29 06.03. 22:25:47 respPend:239137
AC_FrequenzWR                            notify_Exec                             21        9     127.27    14.14     0.00     0.00 06.03. 22:23:59 HASH(AC_FrequenzWR); HASH(PWP)
AC_LeistungWR                            notify_Exec                             21        9     122.34    13.59     0.00     0.00 06.03. 22:23:59 HASH(AC_LeistungWR); HASH(PWP)
DC_LeistungWR                            notify_Exec                             21        9     129.27    14.36     0.00     0.00 06.03. 22:23:59 HASH(DC_LeistungWR); HASH(PWP)
DC_StromWR                               notify_Exec                             19        9     117.42    13.05     0.00     0.00 06.03. 22:23:59 HASH(DC_StromWR); HASH(PWP)
I_AC_Leistung_W                          dummy_Set                               13        9      78.03     8.67     0.00     0.00 06.03. 22:24:59 HASH(I_AC_Leistung_W); I_AC_Leistung_W; 0
I_DC_Leistung_W                          dummy_Set                               13        9      82.62     9.18     0.00     0.00 06.03. 22:23:59 HASH(I_DC_Leistung_W); I_DC_Leistung_W; 0
Einspeisung                              dummy_Set                               13        9      92.25    10.25     0.00     0.00 06.03. 22:23:00 HASH(Einspeisung); Einspeisung; -2634.9
I_AC_Frequenz_Hz                         dummy_Set                               13        9      78.09     8.68     0.00     0.00 06.03. 22:23:59 HASH(I_AC_Frequenz_Hz); I_AC_Frequenz_Hz; 49.99
tmr-CUL_HM_readStateTo                   sUpdt                                   12        1      12.21    12.21     2.68     2.68 06.03. 22:25:58 sUpdt:HM_239137
I_DC_Strom_A                             dummy_Set                               11        9      68.65     7.63     0.00     0.00 06.03. 22:23:59 HASH(I_DC_Strom_A); I_DC_Strom_A; 0
I_AC_StromL3_A                           dummy_Set                               11        9      66.90     7.43     0.00     0.00 06.03. 22:24:59 HASH(I_AC_StromL3_A); I_AC_StromL3_A; 0
VerbrauchHaus                            dummy_Set                               11        9      77.26     8.58     0.00     0.00 06.03. 22:24:00 HASH(VerbrauchHaus); VerbrauchHaus; 3360.1


pejonp
Ich werde das dieser Tage mal probieren. Mein fhem läuft auf einem RasPi3. Als Ersatz liegt ein Pi1 rum. Da weder ich mal ein leeres fhem aufsetzen. Mit der Performance habe ich im Prinzip keine Probleme. Was mich echt stört ist der Zeitversatz, der durch das unendlich lange PARTIAL entsteht. Einmal war das 1,5MB! lang. Deshalb der tägliche Neustart.
Ich hatte vor der Einrichtung ein Update Deiner Quellen gemacht, die sollten aktuell sein. Wird aber nochmal gecheckt.
Werde mich am WE wieder melden.
Gruß Heiko

rellla

Hallo zusammen,

ich wollte nur nochmal vermelden, dass ich mir erfolgreich ein kleines Platinchen auf Tipp von Telekatz gelötet habe. Es ist die in der Spezifikation dargestellte Schaltung ohne TX und ohne galvanische Trennung. Funktioniert wunderbar und war genau das, was ich haben wollte.
Anbei ein Foto davon. Man sieht schon, ich bin kein Lötprofi - die Rückseite zeige ich nicht her ;) Angeschlossen ist das ganze an die 3,3V, GND und RX-Pins eines BananaPi. Softwareseitige Einbindung war kein Problem.
Falls jemand Interesse hat, kann ich gerne meine KiCad Dateien zur Verfügung stellen.

Gruß
Andreas

HeikoE

Hallo pejonp,

so, hab jetzt Dein Modul auf einem RasPi1 laufen. FHEM ist ansonsten leer.
Kurz nach dem Start liefert apptime folgendes:

active-timers: 3; max-active timers: 3; max-timer-load: 1  min-tmrHandlingTm: 1.1ms; max-tmrHandlingTm: 1.8ms; totAvgDly: 5.4ms
min-timersortTm: 0.2ms; max-timersortTm: 0.3ms

name                                     function                               max    count      total  average   maxDly   avgDly TS Max call     param Max call
FileLog_KG.HZ.Solaranlage                FileLog_Get                             61        4      81.41    20.35     0.00     0.00 09.03. 21:01:39 HASH(FileLog_KG.HZ.Solaranlage); FileLog_KG.HZ.Solaranlage; CURRENT; INT; 2018-03-08_21:15:00; 2018-03-09_21:15:01; 4:KG.HZ.Solaranlage.Temperatur_01\x3a::
vbus                                     VBUSIF_Read                             53      830    7673.77     9.25     0.00     0.00 09.03. 21:00:37 HASH(vbus)
WEB_192.168.178.56_50362                 FW_Read                                 40        3      57.31    19.10     0.00     0.00 09.03. 21:01:42 HASH(WEB_192.168.178.56_50362)
vbus                                     VBUSIF_Ready                            21       52     537.86    10.34     0.00     0.00 09.03. 21:02:45 HASH(vbus)
WEB                                      FW_Read                                  6       17      45.13     2.65     0.00     0.00 09.03. 21:02:55 HASH(WEB)
WEB_192.168.178.56_50362                 FW_Notify                                4       50     181.00     3.62     0.00     0.00 09.03. 21:02:45 HASH(WEB_192.168.178.56_50362); HASH(vbus)
FileLog_KG.HZ.Solaranlage                FileLog_Set                              3        5      14.21     2.84     0.00     0.00 09.03. 20:59:24 HASH(FileLog_KG.HZ.Solaranlage); FileLog_KG.HZ.Solaranlage; ?
telnetPort                               telnet_Read                              2        1       2.90     2.90     0.00     0.00 09.03. 21:02:56 HASH(telnetPort)
Logfile                                  FileLog_Set                              2        4       9.44     2.36     0.00     0.00 09.03. 20:59:24 HASH(Logfile); Logfile; ?
FileLog_KG.HZ.Solaranlage                FileLog_Log                              2       15      26.32     1.75     0.00     0.00 09.03. 21:02:59 HASH(FileLog_KG.HZ.Solaranlage); HASH(KG.HZ.Solaranlage)
eventTypes                               eventTypes_Notify                        0       71      37.82     0.53     0.00     0.00 09.03. 21:02:28 HASH(eventTypes); HASH(vbus)
Logfile                                  FileLog_Log                              0       71      36.66     0.52     0.00     0.00 09.03. 21:02:59 HASH(Logfile); HASH(KG.HZ.Solaranlage)
tmr-FW_closeInactiveClients              0                                        0        5       2.60     0.52    20.21     5.36 09.03. 20:58:58 0
FileLog_KG.HZ.Solaranlage                FileLog_regexpFn                         0        4       1.37     0.34     0.00     0.00 09.03. 20:59:24 FileLog_KG.HZ.Solaranlage; 4:KG.HZ.Solaranlage.Temperatur_01\x3a::
WEBphone                                 FW_Set                                   0        4       1.09     0.27     0.00     0.00 09.03. 20:59:37 HASH(WEBphone); WEBphone; ?
WEB                                      FW_Set                                   0        4       1.09     0.27     0.00     0.00 09.03. 20:59:37 HASH(WEB); WEB; ?
WEBtablet                                FW_Set                                   0        4       1.07     0.27     0.00     0.00 09.03. 21:01:38 HASH(WEBtablet); WEBtablet; ?
vbus                                     VBUSIF_Set                               0       50       5.85     0.12     0.00     0.00 09.03. 21:02:12 HASH(vbus); vbus; ?
WEB                                      FW_Notify                                0       71       5.34     0.08     0.00     0.00 09.03. 21:02:11 HASH(WEB); HASH(vbus)
WEBtablet                                FW_Notify                                0       71       4.41     0.06     0.00     0.00 09.03. 21:02:21 HASH(WEBtablet); HASH(vbus)
autocreate                               autocreate_Notify                        0        4       0.56     0.14     0.00     0.00 09.03. 20:59:22 HASH(autocreate); HASH(global)
eventTypes                               eventTypes_Set                           0        4       0.49     0.12     0.00     0.00 09.03. 20:59:03 HASH(eventTypes); eventTypes; ?
WEBphone                                 FW_Notify                                0       71       4.13     0.06     0.00     0.00 09.03. 20:58:58 HASH(WEBphone); HASH(vbus)
WEB_192.168.178.56_50374                 FW_Read                                  0        1       0.00     0.00     0.00     0.00                 

Nach ca. 20min ist bei vbus schon eine deutlicher Zuwachs zu sehen:

vbus                                     VBUSIF_Read                             53     4148   37652.72     9.08     0.00     0.00 09.03. 21:00:37 HASH(vbus)

Das lasse ich jetzt bis morgen laufen und werde dann berichten.

Gruß Heiko

pejonp

Hallo HeikoE,

hast du den vbus nur so definiert oder noch mehr:

defmod Thermie VBUSIF IP:7053
attr Thermie event-min-interval .*:120

bei apptime steht so oft

FileLog_KG.HZ.Solaranlage oder KG.HZ.Solaranlage.Temperatur
Was oder wofür ist das ?

Wo kannst du die Größe von PARTIAL erkennen ?

....Was mich echt stört ist der Zeitversatz, der durch das unendlich lange PARTIAL entsteht. Einmal war das 1,5MB! lang. Deshalb der tägliche Neustart. ..


pejonp
LaCrossGW 868MHz:WT470+TFA+TX37-IT+EMT7110+W136+WH25A HP1003+WH2621
SignalD(CC1101):Bresser+WS-0101(868MHz WH1080)+Velux KLF200+MAX!+HM-MOD-UART:Smoke HM-SEC-SD+VITOSOLIC 200 RESOL VBUS-LAN+SolarEdge SE5K(Modbus)+Sonnen!eco8(10kWh)+TD3511+DRT710M(Modbus)+ZigBee+Z-Wave+MQTT+vitoconnect

mcchina

#671
gelöst! Ich hatte das Password auf dem Datenlogger geändert, aber nicht im HTTPMOD angepasst. Es gibt anscheinend einen Timeout von einigen Wochen, nachdem erst das Password von bestehenden IP Verbindungen neu validiert wird.
-danke, a.

hallo,

seltsames Problem: alle 3 Wochen stoppt in meinem FHEM auf dem Raspi der Datenempfang über VBUS/HTTPMOD, die eine Resol DL2 Webpage ausliest. Bis dahin funktioniert alles so, wie es soll. Die Wiederherstellung ist (noch) nicht deterministisch (Neustart des Webrouters, des Datenloggers, von FHEM, des Raspi ..) 

Im verbose5 log findet sich für den letzten Gut-Fall um 23:43Uhr Folgendes (HTTP Response Code 200, danach wird die Webseite gelesen und die entsprechenden Werte per Regex gefiltert):


2018.03.09 23:43:32 4: DL2: GetUpdate called (update)
2018.03.09 23:43:32 4: DL2: update timer modified: will call GetUpdate in 600.0 seconds at 2018-03-09 23:53:32
2018.03.09 23:43:32 4: DL2: AddToQueue adds update, initial queue len: 0
2018.03.09 23:43:32 5: DL2: AddToQueue adds type update to URL http://192.168.178.156/dlx/download/live?sessionAuthUsername=admin&sessionAuthPassword=admin&outputType=json&source=current, no data, no headers, retry 0
2018.03.09 23:43:32 5: DL2: HandleSendQueue called, qlen = 1
2018.03.09 23:43:32 4: DL2: HandleSendQueue sends request type update to URL http://192.168.178.156/dlx/download/live?sessionAuthUsername=admin&sessionAuthPassword=admin&outputType=json&source=current, No Data, No Header, ^M
timeout 2
2018.03.09 23:43:32 5: HttpUtils url=http://192.168.178.156/dlx/download/live?sessionAuthUsername=admin&sessionAuthPassword=admin&outputType=json&source=current
2018.03.09 23:43:32 5: HttpUtils request header:
GET /dlx/download/live?sessionAuthUsername=admin&sessionAuthPassword=admin&outputType=json&source=current HTTP/1.0^M
Host: 192.168.178.156^M
User-Agent: fhem^M
Accept-Encoding: gzip,deflate^M
Content-Length: 0^M
Content-Type: application/x-www-form-urlencoded^M

2018.03.09 23:43:32 4: http://192.168.178.156/dlx/download/live?sessionAuthUsername=admin&sessionAuthPassword=admin&outputType=json&source=current: HTTP response code 200
2018.03.09 23:43:32 5: HttpUtils http://192.168.178.156/dlx/download/live?sessionAuthUsername=admin&sessionAuthPassword=admin&outputType=json&source=current: Got data, length: 4438
2018.03.09 23:43:32 5: HttpUtils response header:
HTTP/1.0 200 OK^M
Content-Type: text/plain^M
Set-Cookie: resol-dlx-session=C2CAAB4D776B220649922905C4345A04; path=/^M
Connection: close^M
Date: Fri, 09 Mar 2018 22:43:28 GMT^M
Server: lighttpd/1.4.28
2018.03.09 23:43:32 4: DL2: Read callback: request type was update retry 0,^M
Header: HTTP/1.0 200 OK^M
Content-Type: text/plain^M
Set-Cookie: resol-dlx-session=C2CAAB4D776B220649922905C4345A04; path=/^M
Connection: close^M
Date: Fri, 09 Mar 2018 22:43:28 GMT^M
Server: lighttpd/1.4.28,^M
Body: {
        "language" : "de",
        "headers" : [
        {
                "id" : "00_0010_4278_0100",
                "description" : "VBus 0: DeltaSol BS/DrainBack",
                "channel" : 0,
                "destination_address" : 16,
                "source_address" : 17016,
                "protocol_version" : 16,


Im nächsten Poll, der 10Minuten später erfolgt, gibt es dann einen HTTP Response Code 403, Forbidden:Dann wird nicht mehr die Seite mit den Live Daten geladen, sondern die Default Webseite des Datenloggers, auf der man aber die Werte nicht mehr per Regex finden kann.

2018.03.09 23:53:34 4: http://192.168.178.156/dlx/download/live?sessionAuthUsername=admin&sessionAuthPassword=admin&outputType=json&source=current: HTTP response code 403
2018.03.09 23:53:34 5: HttpUtils http://192.168.178.156/dlx/download/live?sessionAuthUsername=admin&sessionAuthPassword=admin&outputType=json&source=current: Got data, length: 6634
2018.03.09 23:53:34 5: HttpUtils response header:
HTTP/1.0 403 Forbidden^M
Content-Type: text/html; charset=utf-8^M
Content-Length: 6634^M
Set-Cookie: resol-dlx-session=A5AEAD62BA37357BDC96BB713E0EE1D1; path=/^M
Connection: close^M
Date: Fri, 09 Mar 2018 22:53:33 GMT^M
Server: lighttpd/1.4.28
2018.03.09 23:53:34 4: DL2: Read callback: request type was update retry 0,^M
Header: HTTP/1.0 403 Forbidden^M
Content-Type: text/html; charset=utf-8^M
Content-Length: 6634^M
Set-Cookie: resol-dlx-session=A5AEAD62BA37357BDC96BB713E0EE1D1; path=/^M
Connection: close^M
Date: Fri, 09 Mar 2018 22:53:33 GMT^M
Server: lighttpd/1.4.28,^M
Body: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>RESOL DL2</title>
<base href='/' />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="Sat, 01 Dec 2001 00:00:00 GMT" />
<link type="text/css" href="/stylesheets/smoothness/jquery-ui-1.10.3.custom.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="/stylesheets/style.css" />
<script type="text/javascript" src="/javascripts/jquery-1.10.1.js"></script>
<script type="text/javascript" src="/javascripts/jquery-ui-1.10.3.custom.js"></script>
<script type="text/javascript" src="/javascripts/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/javascripts/raphael-min.js"></script>
<script type='text/javascript' src='/javascripts/json2.js'></script>
<script type='text/javascript' src='/javascripts/sprintf-0.7-beta1.js'></script>
<!--<script type='text/javascript' src='/javascripts/sproutcore.js'></script>-->
<script type='text/javascript' src='/javascripts/resol-dlx.js' charset='utf-8'></script>
</head>
<body class='resol'>
<div class='resol resol-headerContainer'>
<div class='resol resol-header'>
<div class='resol resol-navigationBar'>
<ul class='resol'>
<li class='resol resol-selected'>
<a class='resol' href='/dlx/home' >Startseite</a>
</li>



Irgendwelche Ideen, weshalb das passiert und wie es kontrolliert wiederherstellen kann??

-gruss, andreas.
---------------------------------------------------
raspi mit FHEM & Teslalogger, HTTPMod für Resol Datenlogger, diverse 433Mhz Funker, ShellyEM3, ShellyEM

HeikoE

#672
Zitat von: pejonp am 10 März 2018, 14:42:34
Hallo HeikoE,

hast du den vbus nur so definiert oder noch mehr:

defmod Thermie VBUSIF IP:7053
attr Thermie event-min-interval .*:120

bei apptime steht so oft

FileLog_KG.HZ.Solaranlage oder KG.HZ.Solaranlage.Temperatur
Was oder wofür ist das ?

Wo kannst du die Größe von PARTIAL erkennen ?

....Was mich echt stört ist der Zeitversatz, der durch das unendlich lange PARTIAL entsteht. Einmal war das 1,5MB! lang. Deshalb der tägliche Neustart. ..


pejonp

Hallo pejonp,

die Länge sieht man z.B. über ein List von vbus. Ich habe es im Browser als txt gespeichert - die Datei hat nach ca 13h über 3MB - und angehängt!
Definiert habe ich

define vbus VBUSIF 192.168.178.13:7053
attr vbus event-min-interval .*:120


Das Device KG.HZ.Solaranlage wurde automaqatisch angelegt, ich habs nur umbenannt. Das ist mein DeltaSolSLT.
Hier ein list:

Internals:
   CHANGED   
   CODE       1001
   DEF        1001
   IODev     
   LASTInputDev vbus
   MSGCNT     55537
   NAME       KG.HZ.Solaranlage
   NR         23
   STATE      Kollektor: 21.5 °C, Speicher: 22.5 °C
   TYPE       VBUSDEV
   vbus_MSGCNT 55537
   vbus_RAWMSG aa100001101000010b42220a5420d300dd009401060108020f270000000000000000000000000f270000640000000000000000000000
   vbus_TIME  2018-03-10 15:20:14
   READINGS:
     2018-03-10 15:20:14   Drehzahl_Relais_1 0 %
     2018-03-10 15:20:14   Drehzahl_Relais_2 0 %
     2018-03-10 15:20:14   Drehzahl_Relais_3 100 %
     2018-03-10 15:20:14   Drehzahl_Relais_4 0 %
     2018-03-10 15:20:14   Druck_RPS_S06   99.99 bar
     2018-03-10 15:20:14   Fehlermaske     0
     2018-03-10 15:20:14   PWM_A           0 %
     2018-03-10 15:20:14   PWM_B           0 %
     2018-03-10 15:20:14   Systemdatum     542378530
     2018-03-10 15:20:14   Temperatur_01   21.5 °C
     2018-03-10 15:20:14   Temperatur_02   22.5 °C
     2018-03-10 15:20:14   Temperatur_03   40.5 °C
     2018-03-10 15:20:14   Temperatur_04   26.5 °C
     2018-03-10 15:20:14   Temperatur_05   52 °C
     2018-03-10 15:20:14   Temperatur_S06  1000 °C
     2018-03-10 15:20:14   Volumenstrom_Flowrotor_S07 0 1/h
     2018-03-10 15:20:14   Volumenstrom_V40 0 1/h
     2018-03-10 15:20:14   Volumenstrom_VFS_S06 0 1/h
     2018-03-10 15:20:14   Warnungsmaske   0
Attributes:
   event-min-interval .*:3600
   event-on-change-reading Temperatur_0.?
   icon       sani_buffer_temp_all
   model      DeltaSol_SLT
   room       Heizung
   stateFormat {"Kollektor: ".ReadingsVal($name, "Temperatur_01",0).", Speicher: ".ReadingsVal($name, "Temperatur_02",0)}
   verbose    1

Dazu gehört ein Filelog FileLog_KG.HZ.Solaranlage. Wurde auch automatisch angelegt.

Den Zeitversatz kann ich mit dieser Konfig natürlich nicht darstellen, da die Heizungspumpen im Testsystem nicht eingebunden sind.

Ein apptime hab ich auch gerade nochmal gemacht. Das sieht jetzt so aus:

active-timers: 3; max-active timers: 3; max-timer-load: 1  min-tmrHandlingTm: 1.0ms; max-tmrHandlingTm: 5.4ms; totAvgDly: 4.6ms
min-timersortTm: 0.2ms; max-timersortTm: 0.4ms

name                                     function                               max    count      total  average   maxDly   avgDly TS Max call     param Max call
FileLog_KG.HZ.Solaranlage                FileLog_Get                           7853       36   44550.89  1237.52     0.00     0.00 10.03. 15:55:18 HASH(FileLog_KG.HZ.Solaranlage); FileLog_KG.HZ.Solaranlage; CURRENT; INT; 2018-03-09_16:00:00; 2018-03-10_16:00:01; 4:KG.HZ.Solaranlage.Temperatur_01\x3a::; 4:KG.HZ.Solaranlage.Temperatur_02\x3a::; 4:KG.HZ.Solaranlage.Temperatur_03\x3a::; 4:KG.HZ.Solaranlage.Temperatur_04\x3a::; 4:KG.HZ.Solaranlage.Temperatur_05\x3a::
vbus                                     VBUSIF_Read                            174   166714 4733681.56    28.39     0.00     0.00 10.03. 13:17:01 HASH(vbus)
vbus                                     VBUSIF_Ready                            25      724    7536.48    10.41     0.00     0.00 09.03. 21:14:46 HASH(vbus)
FileLog_KG.HZ.Solaranlage                FileLog_Log                             12     4953   10631.39     2.15     0.00     0.00 09.03. 22:36:24 HASH(FileLog_KG.HZ.Solaranlage); HASH(KG.HZ.Solaranlage)
eventTypes                               eventTypes_Notify                       10     5683    3589.76     0.63     0.00     0.00 10.03. 09:55:53 HASH(eventTypes); HASH(KG.HZ.Solaranlage)
Logfile                                  FileLog_Log                              7     5683    3856.12     0.68     0.00     0.00 10.03. 06:26:43 HASH(Logfile); HASH(KG.HZ.Solaranlage)
WEB                                      FW_Read                                  6      144     314.70     2.19     0.00     0.00 09.03. 21:02:55 HASH(WEB)
WEBtablet                                FW_Notify                                6     5683     336.25     0.06     0.00     0.00 10.03. 06:25:15 HASH(WEBtablet); HASH(KG.HZ.Solaranlage)
WEB_192.168.178.56_55134                 FW_Read                                  5        2       5.77     2.88     0.00     0.00 10.03. 15:54:37 HASH(WEB_192.168.178.56_55134)
tmr-FileLog_dailySwitch                  HASH_unnamed                             3        1       3.26     3.26     1.86     1.86 10.03. 00:00:01 HASH(0x187cf80)
FileLog_KG.HZ.Solaranlage                FileLog_Set                              3       18      47.09     2.62     0.00     0.00 09.03. 20:59:24 HASH(FileLog_KG.HZ.Solaranlage); FileLog_KG.HZ.Solaranlage; ?
telnetPort                               telnet_Read                              2        1       2.90     2.90     0.00     0.00 09.03. 21:02:56 HASH(telnetPort)
tmr-FW_closeInactiveClients              0                                        2     1137     505.98     0.45  1652.84     4.63 09.03. 22:19:58 0
Logfile                                  FileLog_Set                              2       11      25.45     2.31     0.00     0.00 10.03. 15:53:45 HASH(Logfile); Logfile; ?
FileLog_KG.HZ.Solaranlage                FileLog_regexpFn                         1       33      24.19     0.73     0.00     0.00 10.03. 10:19:33 FileLog_KG.HZ.Solaranlage; 4:KG.HZ.Solaranlage.Temperatur_01\x3a:: 4:KG.HZ.Solaranlage.Temperatur_02\x3a:: 4:KG.HZ.Solaranlage.Temperatur_03\x3a:: 4:KG.HZ.Solaranlage.Temperatur_04\x3a:: 4:KG.HZ.Solaranlage.Temperatur_05\x3a::
WEB                                      FW_Notify                                0     5683     417.10     0.07     0.00     0.00 10.03. 12:26:53 HASH(WEB); HASH(KG.HZ.Solaranlage)
eventTypes                               eventTypes_Get                           0        2       1.38     0.69     0.00     0.00 09.03. 21:40:06 HASH(eventTypes); eventTypes; list
vbus                                     VBUSIF_Set                               0      691      78.91     0.11     0.00     0.00 09.03. 21:05:56 HASH(vbus); vbus; ?
WEBphone                                 FW_Notify                                0     5683     338.04     0.06     0.00     0.00 10.03. 11:01:28 HASH(WEBphone); HASH(KG.HZ.Solaranlage)
WEBphone                                 FW_Set                                   0       11       3.20     0.29     0.00     0.00 10.03. 02:09:28 HASH(WEBphone); WEBphone; ?
WEB                                      FW_Set                                   0       11       3.02     0.27     0.00     0.00 09.03. 21:38:44 HASH(WEB); WEB; ?
WEBtablet                                FW_Set                                   0       11       2.94     0.27     0.00     0.00 09.03. 21:44:30 HASH(WEBtablet); WEBtablet; ?
SVG_FileLog_KG.HZ.Solaranlage_1          SVG_Set                                  0       13       2.08     0.16     0.00     0.00 09.03. 21:38:47 HASH(SVG_FileLog_KG.HZ.Solaranlage_1); SVG_FileLog_KG.HZ.Solaranlage_1; ?
autocreate                               autocreate_Notify                        0        6       0.88     0.15     0.00     0.00 09.03. 21:40:52 HASH(autocreate); HASH(global)
eventTypes                               eventTypes_Set                           0       11       1.38     0.13     0.00     0.00 09.03. 21:38:44 HASH(eventTypes); eventTypes; ?
SVG_FileLog_KG.HZ.Solaranlage_1          SVG_AttrFn                               0        1       0.12     0.12     0.00     0.00 09.03. 21:40:52 set; SVG_FileLog_KG.HZ.Solaranlage_1; room; Heizung


Gruß Heiko

HeikoE

#673
Zitat von: HeikoE am 06 März 2018, 21:54:39
...
Wenn ich auf https://danielwippermann.github.io/resol-vbus/vbus-over-tcp.html alles richtig verstanden habe, werden nach dem Befehl "DATA" zyklisch Telegramme in den vbus gesendet. Mein Deltasol SLT macht das in einer solch hohen Rate, dass das Internal PARTIAL immer länger wird. Es werden viel mehr Daten über DevIo.pm vom Gerät kommend hinten angehängt, als von fhem verarbeitet werden.
Jetzt dachte ich, man könne das Senden beenden indem man "QUIT" an den vbus sendet:


ich glaube übrigens mittlerweile, das Senden von Daten kann man nur durch schließen der Verbindung beenden. Auf den o.g. Website steht:

To get access to the VBus data itself the remote side has to send a command to switch from command to data mode. Once the connection entered data mode, it cannot go back into command mode. In order to do so the remote side has to establish another connection to the device.


Heiko

pejonp

#674
@HeikoE

setz doch mal dein  event-min-interval  auf  120. Wenn so viele Daten geliefert werden, wird der Speicher ja nicht geleert ??

event-min-interval .*:3600

Was hast du für ein Perl (v5.24.1)? Ist FHEM aktuell ?
Wo schreibst du deinen log hin ? Ist die SD-Karte schnell oder USB-Stick ?

Du kannst ja mal SYSMON installieren um zu sehen was dein raspi macht.
defmod rasp3i SYSMON
attr rasp3i room SYSMON


Internals:
   INTERVAL_BASE 60
   INTERVAL_MULTIPLIERS 1 1 1 10
   MODE       local
   NAME       rasp3i
   NR         435
   STATE      Initialized
   TYPE       SYSMON
   READINGS:
     2018-03-10 18:49:06   cpu0_freq       600
     2018-03-10 18:49:06   cpu0_freq_stat  600.00 1200.00 712.51
     2018-03-10 18:49:07   cpu0_idle_stat  0.00 99.93 90.20
     2018-03-10 18:49:06   cpu1_freq       600
     2018-03-10 18:49:06   cpu1_freq_stat  600.00 1200.00 712.51
     2018-03-10 18:49:07   cpu1_idle_stat  17.10 100.00 93.22
     2018-03-10 18:49:06   cpu2_freq       600
     2018-03-10 18:49:06   cpu2_freq_stat  600.00 1200.00 712.51
     2018-03-10 18:49:07   cpu2_idle_stat  1.52 100.00 97.16
     2018-03-10 18:49:06   cpu3_freq       600
     2018-03-10 18:49:06   cpu3_freq_stat  600.00 1200.00 712.51
     2018-03-10 18:49:07   cpu3_idle_stat  0.04 100.00 96.64
     2018-03-06 22:44:56   cpu_bogomips    76.80
     2018-03-10 18:49:07   cpu_core_count  4
     2018-03-10 18:49:06   cpu_freq        600
     2018-03-10 18:49:06   cpu_freq_stat   600.00 1200.00 712.51
     2018-03-10 18:49:07   cpu_idle_stat   63.26 97.59 94.36
     2018-03-06 22:44:56   cpu_model_name  ARMv7 Processor rev 4 (v7l)
     2018-03-10 18:49:07   cpu_temp        52.62
     2018-03-10 18:49:07   cpu_temp_avg    52.4
     2018-03-10 18:49:07   cpu_temp_stat   0.00 55.31 52.36
     2018-03-10 18:49:07   eth0            RX: 0.00 MB, TX: 0.00 MB, Total: 0 MB
     2018-03-10 18:49:07   eth0_diff       RX: 0.00 MB, TX: 0.00 MB, Total: 0.00 MB
     2018-03-10 18:49:07   eth0_rx         0
     2018-03-10 18:49:07   eth0_speed      10
     2018-03-10 18:49:07   eth0_tx         0
     2018-03-10 18:49:07   fhemstarttime   1520372639
     2018-03-10 18:49:07   fhemstarttime_text 06.03.2018 22:43:59
     2018-03-10 18:49:07   fhemuptime      331507
     2018-03-10 18:49:07   fhemuptime_text 3 days, 20 hours, 05 minutes
     2018-03-10 18:49:07   idletime        915087 93.00 %
     2018-03-10 18:49:07   idletime_text   10 days, 14 hours, 11 minutes (93.00 %)
     2018-03-10 18:49:07   loadavg         0.17 0.25 0.21
     2018-03-06 22:44:56   perl_version    v5.24.1
     2018-03-10 18:49:07   ram             Total: 939.22 MB, Used: 200.68 MB, 21.37 %, Free: 332.16 MB
     2018-03-10 18:49:07   ram_used_stat   88.95 694.89 201.01
     2018-03-10 18:48:07   root            Total: 29084 MB, Used: 4236 MB, 16 %, Available: 23635 MB at /
     2018-03-10 18:49:07   starttime       1519720176
     2018-03-10 18:49:07   starttime_text  27.02.2018 09:29:36
     2018-03-10 18:49:07   stat_cpu        12540844 0 5630173 366034985 201728 0 957865
     2018-03-10 18:49:07   stat_cpu0       3653115 0 1065902 86324200 104222 0 531027
     2018-03-10 18:49:07   stat_cpu0_diff  844 0 61 4731 1 0 43
     2018-03-10 18:49:07   stat_cpu0_percent 14.86 0.00 1.07 83.29 0.02 0.00 0.76
     2018-03-10 18:49:07   stat_cpu0_text  user: 14.86 %, nice: 0.00 %, sys: 1.07 %, idle: 83.29 %, io: 0.02 %, irq: 0.00 %, sirq: 0.76 %
     2018-03-10 18:49:07   stat_cpu1       1903578 0 2949874 91909292 55139 0 388684
     2018-03-10 18:49:07   stat_cpu1_diff  17 0 259 5631 1 0 26
     2018-03-10 18:49:07   stat_cpu1_percent 0.29 0.00 4.36 94.89 0.02 0.00 0.44
     2018-03-10 18:49:07   stat_cpu1_text  user: 0.29 %, nice: 0.00 %, sys: 4.36 %, idle: 94.89 %, io: 0.02 %, irq: 0.00 %, sirq: 0.44 %
     2018-03-10 18:49:07   stat_cpu2       3728066 0 775931 93693971 22934 0 19675
     2018-03-10 18:49:07   stat_cpu2_diff  0 0 7 5967 6 0 0
     2018-03-10 18:49:07   stat_cpu2_percent 0.00 0.00 0.12 99.78 0.10 0.00 0.00
     2018-03-10 18:49:07   stat_cpu2_text  user: 0.00 %, nice: 0.00 %, sys: 0.12 %, idle: 99.78 %, io: 0.10 %, irq: 0.00 %, sirq: 0.00 %
     2018-03-10 18:49:07   stat_cpu3       3256085 0 838466 94107522 19433 0 18479
     2018-03-10 18:49:07   stat_cpu3_diff  2 0 55 5935 2 0 0
     2018-03-10 18:49:07   stat_cpu3_percent 0.03 0.00 0.92 99.02 0.03 0.00 0.00
     2018-03-10 18:49:07   stat_cpu3_text  user: 0.03 %, nice: 0.00 %, sys: 0.92 %, idle: 99.02 %, io: 0.03 %, irq: 0.00 %, sirq: 0.00 %
     2018-03-10 18:49:07   stat_cpu_diff   863 0 382 22264 10 0 69
     2018-03-10 18:49:07   stat_cpu_percent 3.66 0.00 1.62 94.39 0.04 0.00 0.29
     2018-03-10 18:49:07   stat_cpu_text   user: 3.66 %, nice: 0.00 %, sys: 1.62 %, idle: 94.39 %, io: 0.04 %, irq: 0.00 %, sirq: 0.29 %
     2018-03-10 18:49:07   swap            n/a
     2018-03-10 18:49:07   swap_used_stat  0.00 0.00 0.00
     2018-03-10 18:49:07   uptime          983970
     2018-03-10 18:49:07   uptime_text     11 days, 09 hours, 19 minutes
     2018-03-10 18:49:07   wlan0           RX: 2797.31 MB, TX: 3092.08 MB, Total: 5889.39 MB
     2018-03-10 18:49:07   wlan0_diff      RX: 0.34 MB, TX: 0.61 MB, Total: 0.95 MB
     2018-03-10 18:49:07   wlan0_ip        192.xxx.xxx.xxx
     2018-03-10 18:49:07   wlan0_rx        2933196778
     2018-03-10 18:49:07   wlan0_speed     72.2
     2018-03-10 18:49:07   wlan0_tx        3242280090
   helper:
..
     excludes:
Attributes:
   room       SYSMON


pejonp
LaCrossGW 868MHz:WT470+TFA+TX37-IT+EMT7110+W136+WH25A HP1003+WH2621
SignalD(CC1101):Bresser+WS-0101(868MHz WH1080)+Velux KLF200+MAX!+HM-MOD-UART:Smoke HM-SEC-SD+VITOSOLIC 200 RESOL VBUS-LAN+SolarEdge SE5K(Modbus)+Sonnen!eco8(10kWh)+TD3511+DRT710M(Modbus)+ZigBee+Z-Wave+MQTT+vitoconnect