Neu: 77_SMAEM - Modul für SMA Energie Meter. Alternative zum Sunny Home Manager.

Begonnen von Volker Kettenbach, 30 März 2016, 12:42:05

Vorheriges Thema - Nächstes Thema

Volker Kettenbach

Zitat von: DS_Starter am 01 Dezember 2016, 18:25:21
Hallo Volker, @all,

nachdem ich 76_SMAInverter auf non-blocking umgestellt habe, bin ich über 77_SMAEM gegangen und habe auch dieses Modul eingehend überarbeitet und ebenfalls auf eine non-blocking Arbeitsweise umgestellt.
Die Belastung von FHEM hat sich dadurch bei mir von ca 1000 ms auf ca. 30 ms ! (bei verbose=3) reduziert.

Weiterhin habe ich noch folgende Änderungen/Features eingebaut:

* Attr disable -> Modul disablen
* Attr timeout -> timeout für den Hintergrundprozess einstellbar (default 60s)
* der Schreib/Lesezugriff auf .../FHEM/FhemUtils/uniqueID wird überwacht und bei evtl. Fehlern im Log bzw. state ausgegeben
* erweiterte und verbesserte Loggings bei verbose 4/5

Ich habe es bei mir nun schon einige Zeit erfolgreich laufen.
Würde mich freuen wenn du bzw. andere SMA-User die neue Version auch testen würden und  das neue Modul dann im FHEM-Repo das bisherige SMAEM ersetzt. Die Doku muß ich dann aber noch aktualisieren.

Grüße
Heiko

Wäre es möglich dass alles Patch und pullrequest auf github zu bekommen!?
Ich habe extrem wenig Zeit und so kann ich das wesentlich schneller übernehmen

DS_Starter

Morgen Volker,

ich muß noch die Commandref anpassen (auch die Kurzbeschreibung erstellen die man seit kurzem braucht)  und probiere dann mal ob ich das mit dem pullrequest hinbekomme.
Melde mich wieder.

Grüße
Heiko

Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Xguide

Hallo Heiko,

kurze Rückmeldung auch bezüglich dieses Moduls. Läuft wie erwartet in Version 2.6.

Danke für die super Arbeit und ein schönes Wochenende,

Marcel
FHEM 5.9 - Intel NUC i3 mit Proxmox im Stretch Container
HomeMatic - VCCU mit 2 x HM-LAN-CFG
Module: SMA Peripheries - Sonos - IPCam(s) - Philips Hue - Sprinkler - TabletUI - DBlog -

DS_Starter

Hallo Marcel,

danke für die Rückinfo.
In der angehängten  Version 2.8.2 ist noch korrigiert dass präventiv gecheckt wird ob evtl. außerordentlich hohe Differenzwerte zwischen zwei Zyklen auftreten welche die Messung/Berechnung von *_Diff verfälschen würden. Im dem Fall wird der Zyklus verworfen.
Default ist 10 und kann mit dem Attr "diffAccept" verändert werden.

Die verbose 4 Ausgaben sind noch erweitert. Zum Beispiel werden die verworfenen Zyken durch diff-Überschreitung oder Timeouts seit FHEM-Start mit protokolliert und ausgegeben.

Die Commandref ist auch angepasst.

@Volker, ich schaue mal ob ich den Pullrequest irgendwann an WE erzeugen kann.

Grüße
Heiko
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

DS_Starter

Hallo Volker,

den Pullrequest habe ich nicht hinbekommen. Das Feld "Create Pull Request" bleibt immer grau. Habe mir sogar extra dafür einen Account zugelegt weil ich dachte es geht nur mit einem Logon.

Aber ich habe dir ein "git diff" gemacht und hier angehängt.
Ich hoffe es reicht so.

Grüße
Heiko

EDIT: Sieht so aus als hätte ich es doch noch hinbekommen  :) ... schau mal.
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Volker Kettenbach

Der Pullrequest macht so keinen Sinn.
Du lädst damit eine neue Datei 77_SMAEM_V2.8.2.pm in mein Github.
Was ich brauche ist ein Pull-Request, der sich auf 77_SMAEM.pm bezieht. Github prüft dann die Korrektheit und ich kann dann (automatisch) mergen (lassen).

DS_Starter

Hmm ... Anders hab ich es nicht hinbekommen, der entsprechende Button war immer grau.  Vielleicht hast du ja eine Anleitung wie man das macht.
Möglicherweise reicht dir aber schon das angehängte gut diff.

Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Volker Kettenbach


DS_Starter

Hallo Volker,

bist du mit dem Diff klargekommen oder muß ich noch etwas tun ?

Habe übrigens in Absprache mit Thomas nun das Modul 76_SMAInverter eingecheckt und sollte morgen früh per update verfügbar sein.

viele Grüße und einen schönen Adventssontag
Heiko
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Volker Kettenbach

Hallo Heiko,

ich hatte noch keine Zeit, dass Diff an zuwenden.

Wg. 76_SMAInverter: sehr gut!
Ich muss das selbst mal installieren.
Hast Du das eigentlich in einem git repository? Hat gegenüber dem Posten im Forum massive Vorteile für alle.

Ich würde dann demnächst mal 77_SMASTP aus SVN und GIT rausnehmen und auf 76_SMAInverter verweisen.

Gruß
Volker

DS_Starter

Hi Volker,

Hast Du das eigentlich in einem git repository?

Nein, habe ich leider nicht. Habe mir erst vor kurzem einen GIT-Account zugelegt (wegen SMAEM) und bin noch nicht so vertraut mit dem ganzen Handling.
Ich sehe mir mal etwas genauer an demnächst ....

Grüße
Heiko

Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Straightforward

Hallo Zusammen,

wie hier schon beschrieben, habe ich folgendes Thema:
Zitat von: Straightforward am 21 Dezember 2016, 11:04:05
Kann mir hier bitte jemand helfen?

Das Skript perl smaem_test.pl funktioniert, es kommen auch sinnvolle Werte.

Wenn ich  das Modul /opt/fhem/FHEM/77_SMAEM.pm starte (reload 77_SMAEM) ist auch noch alles okay.

Wenn ich dann aber diesen Code in die fhem.cfg kopiere, dann kann die fhem Seite nicht mehr aufgerufen werden, bis ich das Modul lösche oder umbenenne.


Jetzt habe ich mal das logfile ausgelesen, hilft das weiter?
Zitat2016.12.21 11:03:26 3: DP11_SMAEM - Opening multicast socket...
2016.12.21 11:03:26 1: Including fhem.cfg
2016.12.21 11:03:26 3: WEB: port 8083 opened
2016.12.21 11:03:26 3: WEBphone: port 8084 opened
2016.12.21 11:03:26 3: WEBtablet: port 8085 opened
2016.12.21 11:03:26 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.21 11:03:26 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.21 11:03:26 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.21 11:03:26 3: HMLAN1 device opened
2016.12.21 11:03:26 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.21 11:03:27 0: Can't read ./FHEM/77_SMAEM.pm: No such file or directory
2016.12.21 11:03:27 3: Please define DP11_SMAEM first
2016.12.21 11:03:27 3: Please define DP11_SMAEM first
2016.12.21 11:03:27 3: Please define DP11_SMAEM first
2016.12.21 11:03:27 3: Please define DP11_SMAEM first
2016.12.21 11:03:27 3: Please define DP11_SMAEM first
2016.12.21 11:03:27 3: Please define DP11_SMAEM first
2016.12.21 11:03:27 1: Including ./log/fhem.save
2016.12.21 11:03:27 1: configfile: Cannot load module SMAEM
Please define DP11_SMAEM first
Please define DP11_SMAEM first
Please define DP11_SMAEM first
Please define DP11_SMAEM first
Please define DP11_SMAEM first
Please define DP11_SMAEM first

2016.12.21 11:03:27 2: Error messages while initializing FHEM: configfile: Cannot load module SMAEM Please define DP11_SMAEM first Please define DP11_SMAEM first Please define DP11_SMAEM first Please define DP11_SMAEM first Please define DP11_SMAEM first Please define DP11_SMAEM first
2016.12.21 11:03:27 0: Server started with 130 defined entities (version $Id: fhem.pl 6913 2014-11-08 10:32:44Z rudolfkoenig $, os linux, user fhem, pid 26112)
2016.12.21 11:03:27 1: HMLAN_Parse: HMLAN1 new condition ok

Volker Kettenbach

016.12.21 11:03:27 0: Can't read ./FHEM/77_SMAEM.pm: No such file or directory

Du solltest mal die Dateiberechtigungen des Moduls überprüfen. FHEM darf die Datei nicht lesen.

Straightforward

Zitat von: Volker Kettenbach am 22 Dezember 2016, 07:12:24
016.12.21 11:03:27 0: Can't read ./FHEM/77_SMAEM.pm: No such file or directory

Du solltest mal die Dateiberechtigungen des Moduls überprüfen. FHEM darf die Datei nicht lesen.

Daran liegt es leider auch nicht:
-rwxrwxrwx 1 fhem root     22230 Dez 21 10:52 77_SMAEM.pm

Hab mal mehr vom Logfile, von geht noch, bis geht wieder (geht erst wieder, wenn ich die 77_SMAEM.pm in 77_SMAEM.pm_ umbenenne:

Zitat2016.12.22 07:42:34 3: CUL_HM set Steckdose_Umwaelz_Sw statusRequest
2016.12.22 07:42:54 1: Including fhem.cfg
2016.12.22 07:42:54 3: WEB: port 8083 opened
2016.12.22 07:42:54 3: WEBphone: port 8084 opened
2016.12.22 07:42:54 3: WEBtablet: port 8085 opened
2016.12.22 07:42:54 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:42:54 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:42:54 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:42:54 3: HMLAN1 device opened
2016.12.22 07:42:54 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:42:54 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:42:55 1: Including fhem.cfg
2016.12.22 07:42:55 3: WEB: port 8083 opened
2016.12.22 07:42:55 3: WEBphone: port 8084 opened
2016.12.22 07:42:55 3: WEBtablet: port 8085 opened
2016.12.22 07:42:55 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:42:55 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:42:55 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:42:55 3: HMLAN1 device opened
2016.12.22 07:42:55 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:42:55 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:42:56 1: Including fhem.cfg
2016.12.22 07:42:56 3: WEB: port 8083 opened
2016.12.22 07:42:56 3: WEBphone: port 8084 opened
2016.12.22 07:42:56 3: WEBtablet: port 8085 opened
2016.12.22 07:42:56 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:42:56 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:42:56 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:42:56 3: HMLAN1 device opened
2016.12.22 07:42:56 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:42:57 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:42:57 1: Including fhem.cfg
2016.12.22 07:42:57 3: WEB: port 8083 opened
2016.12.22 07:42:57 3: WEBphone: port 8084 opened
2016.12.22 07:42:57 3: WEBtablet: port 8085 opened
2016.12.22 07:42:57 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:42:57 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:42:57 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:42:57 3: HMLAN1 device opened
2016.12.22 07:42:57 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:42:58 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:42:58 1: Including fhem.cfg
2016.12.22 07:42:58 3: WEB: port 8083 opened
2016.12.22 07:42:58 3: WEBphone: port 8084 opened
2016.12.22 07:42:58 3: WEBtablet: port 8085 opened
2016.12.22 07:42:58 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:42:58 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:42:58 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:42:58 3: HMLAN1 device opened
2016.12.22 07:42:58 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:42:59 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:42:59 1: Including fhem.cfg
2016.12.22 07:42:59 3: WEB: port 8083 opened
2016.12.22 07:42:59 3: WEBphone: port 8084 opened
2016.12.22 07:42:59 3: WEBtablet: port 8085 opened
2016.12.22 07:42:59 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:42:59 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:42:59 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:42:59 3: HMLAN1 device opened
2016.12.22 07:42:59 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:00 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:00 1: Including fhem.cfg
2016.12.22 07:43:00 3: WEB: port 8083 opened
2016.12.22 07:43:00 3: WEBphone: port 8084 opened
2016.12.22 07:43:00 3: WEBtablet: port 8085 opened
2016.12.22 07:43:01 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:01 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:01 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:01 3: HMLAN1 device opened
2016.12.22 07:43:01 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:01 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:02 1: Including fhem.cfg
2016.12.22 07:43:02 3: WEB: port 8083 opened
2016.12.22 07:43:02 3: WEBphone: port 8084 opened
2016.12.22 07:43:02 3: WEBtablet: port 8085 opened
2016.12.22 07:43:02 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:02 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:02 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:02 3: HMLAN1 device opened
2016.12.22 07:43:02 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:02 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:03 1: Including fhem.cfg
2016.12.22 07:43:03 3: WEB: port 8083 opened
2016.12.22 07:43:03 3: WEBphone: port 8084 opened
2016.12.22 07:43:03 3: WEBtablet: port 8085 opened
2016.12.22 07:43:03 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:03 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:03 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:03 3: HMLAN1 device opened
2016.12.22 07:43:03 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:04 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:04 1: Including fhem.cfg
2016.12.22 07:43:04 3: WEB: port 8083 opened
2016.12.22 07:43:04 3: WEBphone: port 8084 opened
2016.12.22 07:43:04 3: WEBtablet: port 8085 opened
2016.12.22 07:43:04 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:04 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:04 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:04 3: HMLAN1 device opened
2016.12.22 07:43:04 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:05 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:05 1: Including fhem.cfg
2016.12.22 07:43:05 3: WEB: port 8083 opened
2016.12.22 07:43:05 3: WEBphone: port 8084 opened
2016.12.22 07:43:05 3: WEBtablet: port 8085 opened
2016.12.22 07:43:05 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:05 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:05 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:05 3: HMLAN1 device opened
2016.12.22 07:43:05 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:06 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:06 1: Including fhem.cfg
2016.12.22 07:43:06 3: WEB: port 8083 opened
2016.12.22 07:43:06 3: WEBphone: port 8084 opened
2016.12.22 07:43:06 3: WEBtablet: port 8085 opened
2016.12.22 07:43:06 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:06 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:06 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:06 3: HMLAN1 device opened
2016.12.22 07:43:06 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:07 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:07 1: Including fhem.cfg
2016.12.22 07:43:07 3: WEB: port 8083 opened
2016.12.22 07:43:07 3: WEBphone: port 8084 opened
2016.12.22 07:43:08 3: WEBtablet: port 8085 opened
2016.12.22 07:43:08 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:08 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:08 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:08 3: HMLAN1 device opened
2016.12.22 07:43:08 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:08 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:09 1: Including fhem.cfg
2016.12.22 07:43:09 3: WEB: port 8083 opened
2016.12.22 07:43:09 3: WEBphone: port 8084 opened
2016.12.22 07:43:09 3: WEBtablet: port 8085 opened
2016.12.22 07:43:09 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:09 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:09 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:09 3: HMLAN1 device opened
2016.12.22 07:43:09 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:10 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:10 1: Including fhem.cfg
2016.12.22 07:43:10 3: WEB: port 8083 opened
2016.12.22 07:43:10 3: WEBphone: port 8084 opened
2016.12.22 07:43:10 3: WEBtablet: port 8085 opened
2016.12.22 07:43:10 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:10 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:10 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:10 3: HMLAN1 device opened
2016.12.22 07:43:10 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:11 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:11 1: Including fhem.cfg
2016.12.22 07:43:11 3: WEB: port 8083 opened
2016.12.22 07:43:11 3: WEBphone: port 8084 opened
2016.12.22 07:43:11 3: WEBtablet: port 8085 opened
2016.12.22 07:43:11 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:11 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:11 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:11 3: HMLAN1 device opened
2016.12.22 07:43:11 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:12 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:12 1: Including fhem.cfg
2016.12.22 07:43:12 3: WEB: port 8083 opened
2016.12.22 07:43:12 3: WEBphone: port 8084 opened
2016.12.22 07:43:12 3: WEBtablet: port 8085 opened
2016.12.22 07:43:12 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:12 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:12 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:12 3: HMLAN1 device opened
2016.12.22 07:43:12 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:13 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:13 1: Including fhem.cfg
2016.12.22 07:43:13 3: WEB: port 8083 opened
2016.12.22 07:43:13 3: WEBphone: port 8084 opened
2016.12.22 07:43:13 3: WEBtablet: port 8085 opened
2016.12.22 07:43:13 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:13 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:13 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:13 3: HMLAN1 device opened
2016.12.22 07:43:13 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:14 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:14 1: Including fhem.cfg
2016.12.22 07:43:15 3: WEB: port 8083 opened
2016.12.22 07:43:15 3: WEBphone: port 8084 opened
2016.12.22 07:43:15 3: WEBtablet: port 8085 opened
2016.12.22 07:43:15 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:15 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:15 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:15 3: HMLAN1 device opened
2016.12.22 07:43:15 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:15 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:16 1: Including fhem.cfg
2016.12.22 07:43:16 3: WEB: port 8083 opened
2016.12.22 07:43:16 3: WEBphone: port 8084 opened
2016.12.22 07:43:16 3: WEBtablet: port 8085 opened
2016.12.22 07:43:16 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:16 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:16 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:16 3: HMLAN1 device opened
2016.12.22 07:43:16 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:16 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:17 1: Including fhem.cfg
2016.12.22 07:43:17 3: WEB: port 8083 opened
2016.12.22 07:43:17 3: WEBphone: port 8084 opened
2016.12.22 07:43:17 3: WEBtablet: port 8085 opened
2016.12.22 07:43:17 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:17 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:17 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:17 3: HMLAN1 device opened
2016.12.22 07:43:17 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:18 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:18 1: Including fhem.cfg
2016.12.22 07:43:18 3: WEB: port 8083 opened
2016.12.22 07:43:18 3: WEBphone: port 8084 opened
2016.12.22 07:43:18 3: WEBtablet: port 8085 opened
2016.12.22 07:43:18 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:18 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:18 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:18 3: HMLAN1 device opened
2016.12.22 07:43:18 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:19 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:19 1: Including fhem.cfg
2016.12.22 07:43:19 3: WEB: port 8083 opened
2016.12.22 07:43:19 3: WEBphone: port 8084 opened
2016.12.22 07:43:19 3: WEBtablet: port 8085 opened
2016.12.22 07:43:19 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:19 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:19 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:19 3: HMLAN1 device opened
2016.12.22 07:43:19 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:20 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:20 1: Including fhem.cfg
2016.12.22 07:43:20 3: WEB: port 8083 opened
2016.12.22 07:43:20 3: WEBphone: port 8084 opened
2016.12.22 07:43:20 3: WEBtablet: port 8085 opened
2016.12.22 07:43:20 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:21 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:21 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:21 3: HMLAN1 device opened
2016.12.22 07:43:21 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:21 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:21 1: Including fhem.cfg
2016.12.22 07:43:22 3: WEB: port 8083 opened
2016.12.22 07:43:22 3: WEBphone: port 8084 opened
2016.12.22 07:43:22 3: WEBtablet: port 8085 opened
2016.12.22 07:43:22 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:22 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:22 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:22 3: HMLAN1 device opened
2016.12.22 07:43:22 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:22 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:23 1: Including fhem.cfg
2016.12.22 07:43:23 3: WEB: port 8083 opened
2016.12.22 07:43:23 3: WEBphone: port 8084 opened
2016.12.22 07:43:23 3: WEBtablet: port 8085 opened
2016.12.22 07:43:23 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:23 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:23 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:23 3: HMLAN1 device opened
2016.12.22 07:43:23 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:23 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:24 1: Including fhem.cfg
2016.12.22 07:43:24 3: WEB: port 8083 opened
2016.12.22 07:43:24 3: WEBphone: port 8084 opened
2016.12.22 07:43:24 3: WEBtablet: port 8085 opened
2016.12.22 07:43:24 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:24 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:24 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:24 3: HMLAN1 device opened
2016.12.22 07:43:24 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:25 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:25 1: Including fhem.cfg
2016.12.22 07:43:25 3: WEB: port 8083 opened
2016.12.22 07:43:25 3: WEBphone: port 8084 opened
2016.12.22 07:43:25 3: WEBtablet: port 8085 opened
2016.12.22 07:43:25 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:25 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:25 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:25 3: HMLAN1 device opened
2016.12.22 07:43:25 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:26 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:26 1: Including fhem.cfg
2016.12.22 07:43:26 3: WEB: port 8083 opened
2016.12.22 07:43:26 3: WEBphone: port 8084 opened
2016.12.22 07:43:26 3: WEBtablet: port 8085 opened
2016.12.22 07:43:26 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:26 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:26 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:26 3: HMLAN1 device opened
2016.12.22 07:43:26 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:27 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:27 1: Including fhem.cfg
2016.12.22 07:43:27 3: WEB: port 8083 opened
2016.12.22 07:43:27 3: WEBphone: port 8084 opened
2016.12.22 07:43:27 3: WEBtablet: port 8085 opened
2016.12.22 07:43:27 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:27 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:27 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:27 3: HMLAN1 device opened
2016.12.22 07:43:27 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:28 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:28 1: Including fhem.cfg
2016.12.22 07:43:28 3: WEB: port 8083 opened
2016.12.22 07:43:29 3: WEBphone: port 8084 opened
2016.12.22 07:43:29 3: WEBtablet: port 8085 opened
2016.12.22 07:43:29 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:29 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:29 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:29 3: HMLAN1 device opened
2016.12.22 07:43:29 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:29 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:30 1: Including fhem.cfg
2016.12.22 07:43:30 3: WEB: port 8083 opened
2016.12.22 07:43:30 3: WEBphone: port 8084 opened
2016.12.22 07:43:30 3: WEBtablet: port 8085 opened
2016.12.22 07:43:30 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:30 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:30 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:30 3: HMLAN1 device opened
2016.12.22 07:43:30 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:30 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:31 1: Including fhem.cfg
2016.12.22 07:43:31 3: WEB: port 8083 opened
2016.12.22 07:43:31 3: WEBphone: port 8084 opened
2016.12.22 07:43:31 3: WEBtablet: port 8085 opened
2016.12.22 07:43:31 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:31 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:31 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:31 3: HMLAN1 device opened
2016.12.22 07:43:31 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:32 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:32 1: Including fhem.cfg
2016.12.22 07:43:32 3: WEB: port 8083 opened
2016.12.22 07:43:32 3: WEBphone: port 8084 opened
2016.12.22 07:43:32 3: WEBtablet: port 8085 opened
2016.12.22 07:43:32 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:32 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:32 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:32 3: HMLAN1 device opened
2016.12.22 07:43:32 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:33 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:33 1: Including fhem.cfg
2016.12.22 07:43:33 3: WEB: port 8083 opened
2016.12.22 07:43:33 3: WEBphone: port 8084 opened
2016.12.22 07:43:33 3: WEBtablet: port 8085 opened
2016.12.22 07:43:33 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:33 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:33 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:33 3: HMLAN1 device opened
2016.12.22 07:43:33 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:34 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:34 1: Including fhem.cfg
2016.12.22 07:43:34 3: WEB: port 8083 opened
2016.12.22 07:43:34 3: WEBphone: port 8084 opened
2016.12.22 07:43:34 3: WEBtablet: port 8085 opened
2016.12.22 07:43:34 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:34 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:34 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:34 3: HMLAN1 device opened
2016.12.22 07:43:34 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:35 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:35 1: Including fhem.cfg
2016.12.22 07:43:35 3: WEB: port 8083 opened
2016.12.22 07:43:35 3: WEBphone: port 8084 opened
2016.12.22 07:43:35 3: WEBtablet: port 8085 opened
2016.12.22 07:43:36 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:36 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:36 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:36 3: HMLAN1 device opened
2016.12.22 07:43:36 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:36 3: DP11_SMAEM - Opening multicast socket...
2016.12.22 07:43:37 1: Including fhem.cfg
2016.12.22 07:43:37 3: WEB: port 8083 opened
2016.12.22 07:43:37 3: WEBphone: port 8084 opened
2016.12.22 07:43:37 3: WEBtablet: port 8085 opened
2016.12.22 07:43:37 2: eventTypes: loaded 3846 events from ./log/eventTypes.txt
2016.12.22 07:43:37 1: HMLAN_Parse: HMLAN1 new condition disconnected
2016.12.22 07:43:37 3: Opening HMLAN1 device 192.168.178.59:1000
2016.12.22 07:43:37 3: HMLAN1 device opened
2016.12.22 07:43:37 1: HMLAN_Parse: HMLAN1 new condition init
2016.12.22 07:43:37 0: Can't read ./FHEM/77_SMAEM.pm: No such file or directory
2016.12.22 07:43:37 3: Please define DP11_SMAEM first
2016.12.22 07:43:37 3: Please define DP11_SMAEM first
2016.12.22 07:43:37 3: Please define DP11_SMAEM first
2016.12.22 07:43:37 3: Please define DP11_SMAEM first
2016.12.22 07:43:37 3: Please define DP11_SMAEM first
2016.12.22 07:43:37 3: Please define DP11_SMAEM first
2016.12.22 07:43:37 3: Please define DP11_SMAEM first
2016.12.22 07:43:37 3: Please define DP11_SMAEM first
2016.12.22 07:43:37 1: Including ./log/fhem.save
2016.12.22 07:43:37 1: configfile: Cannot load module SMAEM
Please define DP11_SMAEM first
Please define DP11_SMAEM first
Please define DP11_SMAEM first
Please define DP11_SMAEM first
Please define DP11_SMAEM first
Please define DP11_SMAEM first
Please define DP11_SMAEM first
Please define DP11_SMAEM first

2016.12.22 07:43:37 2: Error messages while initializing FHEM: configfile: Cannot load module SMAEM Please define DP11_SMAEM first Please define DP11_SMAEM first Please define DP11_SMAEM first Please define DP11_SMAEM first Please define DP11_SMAEM first Please define DP11_SMAEM first Please define DP11_SMAEM first Please define DP11_SMAEM first
2016.12.22 07:43:37 0: Server started with 131 defined entities (version $Id: fhem.pl 6913 2014-11-08 10:32:44Z rudolfkoenig $, os linux, user fhem, pid 1410)
2016.12.22 07:43:37 1: HMLAN_Parse: HMLAN1 new condition ok
2016.12.22 07:43:42 3: Device CUL_HM_HM_ES_PMSw1_Pl_2741D7 added to ActionDetector with 000:10 time

DS_Starter

Guten Morgen,

ich kann mir noch kein richtiges Bild machen. Aber hier scheint mehr als ein Problem zusammenzukommen.
Eins davon ist sicherlich dass deine Installation hornalt ist:

Zitat(version $Id: fhem.pl 6913 2014-11-08 10:32:44Z

Dann die Meldungen, die vielen Wiederholungen von "Including fhem.cfg".  fhem.cfg wird normal nur einmal included.
Du hast geschrieben, du hast deinen Code in die fhem.cfg kopiert. Sollte man nicht tun, das macht fhem.

Aber in der jetzigen Situation würde ich zwei Dinge tun:

- fhem komplett aktualisieren auf den neuesetn Stand
- in der fhem.cfg alle Definitionen rausnehmen was mit SMAEM zu tun hat

Danach neu starten , auf ein sauberes Logfile achten und dann deinen Energymeter mit

define <Name> SMAEM

definieren.

viele Grüße
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter