THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.

Begonnen von immi, 02 Februar 2015, 11:42:16

Vorheriges Thema - Nächstes Thema

immi

Zitat von: houseowner123 am 22 Dezember 2015, 14:04:38
Do I substitute the * with the name of the parameter?
no. just delete all and restart. You will se no sideeffect.
deletereading Mythz .*
shutdown restart

immi

0.147 uploaded.

get Mythz zBackupParameters implemented

It saves all pXXX in a backupfile with a special text format.
The file makes very easy to restore all (or some) parameter with  one copy&paste in a telnet fhem session.
The filename is completed with the current date.
I suggest that you clean-up and restart fhem before using the command, so that you have fresh readings.

willybauss

FHEM auf Raspberry Pi B und 2B; THZ (THZ-303SOL), CUL_HM, TCM-EnOcean, SamsungTV, JSONMETER, SYSMON, OBIS, STATISTICS

immi

Zitat von: willybauss am 22 Dezember 2015, 19:52:47
sounds nice. In which Location do you save the file?
I read the attibute "global statefile" and change the filename;
For me ./fhem/log/Mythz-date.backup
the backup-file-path is shown after using the command.

I will probably use the backup-file 2 times in the next 15 years. after flashing the firmware or  after changing the pcb (when it will fail). Maybe other users find further benefits.
immi

willybauss

FHEM auf Raspberry Pi B und 2B; THZ (THZ-303SOL), CUL_HM, TCM-EnOcean, SamsungTV, JSONMETER, SYSMON, OBIS, STATISTICS

glücksgriff

Hallo und fröhliche Weihnachten alle zusammen,

hätte mal ne frage. Ich kann dank eurer Hilfe seit ca 1 Jahr die Daten meiner LWZ auslesen und loggen. Ausgelesen wird über Raspberry mittels USB Kabel, übertragen über WLAN. Leider habe ich dass Problem dass mir die Daten immer nur ca. 6 Wochen gespeichert werden. Dann fängt das System zu spinnen an( aktuelle Daten werden angezeigt. Logdateien aber nicht mehr abgespeichert). Wenn ich das System neu auflege, funktioniert es wieder perfekt, für ca 6 Wochen.

Kann es daran liegen dass ich auf die SD-Karte speichere. Wohin speichert Ihr.

L.G.

immi

Zitat von: glücksgriff am 27 Dezember 2015, 15:12:57
Kann es daran liegen dass ich auf die SD-Karte speichere. Wohin speichert Ihr.
fröhliche Weihnachten
Possible, very possible
My data and my fhem is  on a nas.
But you can decide also to put only the data on the nas, or make backups or ....

I would suggest you to look here.
http://forum.fhem.de/index.php/board,32.0.html 
immi

micomat

Loggst du in eine Date pro Monat oder pro Jahr?
wenns pro jahr ist, könnte das logfile einfach zu groß werden.
Synology DS218+ with fhem+iobroker in docker, 2x RasPi w. ser2net, CUL433+868, IT, EGPM2LAN, THZ/LWZ, FB_Callmonitor, HMS100TF, Homematic, 2x TX3-TH, Pushover, USB-IR-SML-Head, SONOS, GHoma, MBus, KLF200

willybauss

#323
Auch bei mir landen alle Daten auf einem NAS. Jeden Monat ein neues Logfile, sonst dauert der Aufbau der Charts einfach zu lange, weil die Dateien zu groß werden. SD-Karten sind nicht für ständiges beschreiben gebaut. Deshalb alles, was regelmäßig geschrieben werden muss, aufs NAS.
Was passiert denn nach 6 Wochen? Werden die Dateien nicht mehr gespeichert und nach einem Reboot ist alles wieder gut, oder musst Du das komplette System neu aufsetzen? Schon mal versucht, jede Woche automatisch einen Reboot zu machen, z.B. per Cron-Job? Kühlkörper auf den wichtigsten Bauteilen des Raspi und Kühlöffnungen im Gehäuse helfen sicher auch.
Du könntest auch das SYSMON-Modul von FHEM installieren, um mehr über Dein System zu erfahren (Prozessorauslastung, Speicherbedarf, Temperatur, ...). Oder erst mal einen "top" aufrufen und checken, was für Prozesse Dir in die Quere kommen.
Weißt Du denn, ob fhem oder die WLAN-Verbindung das Problem ist?

ach ja: nachträglich herzlichen Glückwunsch zu Weihnachten, oder so ähnlich
FHEM auf Raspberry Pi B und 2B; THZ (THZ-303SOL), CUL_HM, TCM-EnOcean, SamsungTV, JSONMETER, SYSMON, OBIS, STATISTICS

NaCkHaYeD

#324
Hi,

ich habe zwei Raspberry Clients als Slaves zum ermittlen von Temperatur, Feuchtigkeit, Luftqualität. Beide senden die Daten per FHEM2FHEM an den Server Raspy.
Der Server Raspi legt die Logs pro Tag an. Eines zum Wetterdienst, eines pro Raspi Client, eines für den Raspi Server, eines für das PiFace was meine Zirkulationspumpe erstellt. Interval in etwa 5min.
Alle Daten werden per Cron Job um 0:01 per Network Share an das NAS gesendet.
Ebenso werden bei allen Raspi´s die Logs älter 365 Tagen per Cron gelöscht.
Jeden Sonntag sichern sich alle Raspis per RaspiBackup komplett auf das NAS. Hier werden die letzten 5 Sicherungen gehalten.
In jedem Raspi ist eine 16GB Karte verbaut.

Mal schauen ob dies alles save ist, da der Kleine am Kabel gerupft hat und die SD karte gebrochen ist, kaum sichtbar. Fehler: SD Karte ist so heiß wie eine Herdplatte innerhalb von Sekunden. Finde ich nicht so lustig da Brandquelle. Was so eine SD Karte alles anrichten kann. Immerhin hat es der Raspi überlebt.
Morgen gibt es eine Neue, dann wird retour gesichert.

mfg
NaCkHaYeD

willybauss

Klingt interessant, obwohl so ein ganz kleines bisschen off topic. Wie sorgst Du denn beim RaspiBackup dafür, dass keine Prozesse laufen oder Dateien geöffnet sind? Nach dem Backup Reboot, um wieder alles einzuschalten?


PS:
Auch Dir Alles Gute zum Neuen Jahr  :)
FHEM auf Raspberry Pi B und 2B; THZ (THZ-303SOL), CUL_HM, TCM-EnOcean, SamsungTV, JSONMETER, SYSMON, OBIS, STATISTICS

NaCkHaYeD

Hallo Willibaus,

stimmt du hast recht, das mit den laufenden Prozessen hatte ich nicht bedacht, jedoch läuft bei mir sowieso nur FHEM.
Du kannst aber mit -o, -a Parameter Scripte vor/nach dem Backup durchführen.

FHEM wird doch wohl sowieso nur die Datei beschreiben, wenn eine Ausgabe erfolgt.

Alles in allem hat bei mir der Restore erstmal funktioniert.

P.S.: Hätte ich wissen können, da es in meiner Welt ja die Volume Shadow Copies gibt.  :P

mfg.
NaCkHaYeD

Frostie

Hallo Zusammen,

ich bin neu in diesem Forum und wollte zunächst einmal vielen Dank sagen und meinen höchsten Respekt für die tolle Arbeit und die Bereitschaft das mit anderen zu teilen ausdrücken.

Especially thanks to Immi for this great module to control the THZ. Since I bought my house 3 years ago, I was continuously trying to optimize it, but it proved to be a little bit like running in the dark. Nevertheless the module and the ability to continously read out the status helps a lot.

As I have probably one of the earliest versions of the THZ (Firmware 2.15), the system has obviously some "childhood illnesses". E.g. continuously running the heat circulation pump while Solar is enabled. For this reason I am searching for a possibility to set p80 EnableSolar only then on 1 if the Collector Temperature is high enough. To write the term should not be the problem, but it is not possible to set the necessary parameter. I am only able to set p01-p12. I'm not sure if it is related to the Firmware Version (i set 2.06 in FHEM) or if it is not possible in general.

Maybe one of you knows the reason. I imagine to have read that is also possible to set the other parameters. Thank you a lot!

Thanks
Dominik

micomat

Hi Dominik

welcome to the THZ list :)
Do you get any error message when you try to set p80?
If not, set the verbose level of the THZ module to 5 and check again. At least you could get more information.

Best
Markus
Synology DS218+ with fhem+iobroker in docker, 2x RasPi w. ser2net, CUL433+868, IT, EGPM2LAN, THZ/LWZ, FB_Callmonitor, HMS100TF, Homematic, 2x TX3-TH, Pushover, USB-IR-SML-Head, SONOS, GHoma, MBus, KLF200

immi

Hi Dominik
welcome to fhem
you cannot set p80 because it is not implemented.
It is not implemented, because I cannot test it; I have a completely different firmware.

I enabled it now.

download the following file
stop fhem
overwrite the file manually
start fhem
immi