Modul HourCounter - Betriebsstundenzähler mit einem Fensterkontakt

Begonnen von John, 08 April 2013, 22:11:55

Vorheriges Thema - Nächstes Thema

John

Hallo danni-k,

schau dir mal den folgenden Link an.
http://forum.fhem.de/index.php/topic,13508.msg105550.html#msg105550
Hier habe ich an einem Beispiel erklärt, wie das mit den Regular Expressions funktioniert.

Die Definitionen für den HourCounter sind analog zum notify oder zu FileLog vorzunehmen.

John
CubieTruck Docker Node-Red Tasmota Shelly Homematic-IP

Charles

Hallo John,

erstmal ein gutes neues Jahr 2014!
Ich hab jetzt mit der ReadingGroup Probleme. Hab im Log nachgeforscht: Vorgestern machte ich ein Update. Nach dem Neustart gibts Probleme. fhem ist zweimal abgestürzt. So siehts im Log seitdem aus (nach Neustart nach Update): Including fhem.cfg
2013.12.30 22:24:20 2: MaxCounter is starting
2013.12.30 22:24:20 2: [MaxScan] UtilsMaxScan_Initialize.68 MaxScan is starting
2013.12.30 22:24:21 3: telnetPort: port 7072 opened
2013.12.30 22:24:23 3: WEB: port 8083 opened
2013.12.30 22:24:23 3: WEBphone: port 8084 opened
2013.12.30 22:24:23 3: WEBtablet: port 8085 opened
2013.12.30 22:24:23 3: Opening CUL_0 device /dev/ttyACM0
2013.12.30 22:24:24 3: Setting CUL_0 baudrate to 9600
2013.12.30 22:24:24 3: CUL_0 device opened
2013.12.30 22:24:24 3: CUL_0: Possible commands: BCFiAZEGMRTVWXefmltux
2013.12.30 22:24:24 2: Switched CUL_0 rfmode to MAX
2013.12.30 22:24:24 3: Opening CUL_1 device /dev/ttyACM1
2013.12.30 22:24:24 3: Setting CUL_1 baudrate to 9600
2013.12.30 22:24:24 3: CUL_1 device opened
2013.12.30 22:24:24 3: CUL_1: Possible commands: BCFiAZEGMRTVWXefmltux
2013.12.30 22:24:27 3: [HourCounter] HourCounter_Initialize.156 Init Done with Version 0.99.d - 03.12.2013 (john)
2013.12.30 22:24:27 2: [CN.Test] HourCounter_Define.165 parameters: CN.Test HourCounter SHUTTER.BRENNER:onoff:.1 SHUTTER.BRENNER:onoff:.0
2013.12.30 22:24:30 3: FIRMATA: port 3030 opened
2013.12.30 22:24:30 2: error initializing Eingang: error initializing 'Eingang': Eingang, FIRMATA is not connected
2013.12.30 22:24:30 1: OWX: 1-Wire bus Eingang: interface FIRMATA is not connected to Firmata
2013.12.30 22:24:30 1: configfile: MaxCounterAT already defined, delete it first
2013.12.30 22:24:30 1: Including ./log/fhem.save
2013.12.30 22:24:31 1: statefile: Please define MAXSCAN.SHUTTER.EVENT first
2013.12.30 22:24:31 1: usb create starting
2013.12.30 22:24:32 1: usb create end
2013.12.30 22:24:32 2: Steuerung Talstr. 4
2013.12.30 22:24:32 0: Server started with 101 defined entities (version $Id: fhem.pl 4501 2013-12-29 17:59:52Z rudolfkoenig $, os linux, user root, pid 26205)
2013.12.30 22:24:33 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:24:33 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:24:33 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:24:33 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:24:33 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:24:33 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:24:33 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:24:33 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:24:36 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:24:36 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:24:40 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:24:41 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:24:41 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:24:41 3: [MaxScan] MaxScanRun.800 define MAXSCAN.SHUTTER.EVENT notify (SchlafKontakt):onoff.* { MaxScan_Shutter_Notify("@","%EVTPART0","%EVTPART1")}
2013.12.30 22:24:42 2: [CN.Test] HourCounter_Run.448 first run done
2013.12.30 22:24:42 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:24:45 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:24:45 5: opened: FHEMWEB:192.168.0.33:50907
2013.12.30 22:24:46 5: HZ_Readings: do update
2013.12.30 22:24:47 5: HZ_Readings: do update
2013.12.30 22:24:47 5: opened: FHEMWEB:192.168.0.33:50907
2013.12.30 22:24:51 5: HZ_Readings: do update
2013.12.30 22:24:52 5: HZ_Readings: do update
2013.12.30 22:24:56 5: HZ_Readings: FHEMWEB:192.168.0.33:50907 is closed, ignoring notify
2013.12.30 22:24:56 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:26:07 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:26:25 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:27:26 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:27:46 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:29:39 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:29:56 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:30:17 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:30:18 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:30:33 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:30:40 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:30:41 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:32:00 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:32:00 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:32:01 5: HZ_Readings: not on any display, ignoring notify
2013.12.30 22:33:08 5: HZ_Readings: not on any display, ignoring notify

Dazwischen dann mal2013.12.31 15:01:17 5: HZ_Readings: do update
2013.12.31 15:01:17 5: HZ_Readings: do update
2013.12.31 15:01:24 5: HZ_Readings: do update
2013.12.31 15:01:25 5: HZ_Readings: do update
2013.12.31 15:02:08 5: HZ_Readings: do update
2013.12.31 15:02:49 5: HZ_Readings: do update
2013.12.31 15:02:50 5: HZ_Readings: do update
2013.12.31 15:03:07 5: HZ_Readings: do update
2013.12.31 15:03:08 5: HZ_Readings: do update
2013.12.31 15:03:09 5: HZ_Readings: do update
2013.12.31 15:03:16 5: HZ_Readings: do update
2013.12.31 15:03:17 5: HZ_Readings: do update
2013.12.31 15:03:25 5: HZ_Readings: do update
2013.12.31 15:03:33 5: HZ_Readings: do update
2013.12.31 15:03:49 5: HZ_Readings: do update
2013.12.31 15:05:49 5: HZ_Readings: do update
2013.12.31 15:05:50 5: HZ_Readings: do update
2013.12.31 15:06:06 5: HZ_Readings: do update
2013.12.31 15:06:33 5: HZ_Readings: do update
2013.12.31 15:07:08 5: HZ_Readings: do update
2013.12.31 15:09:06 5: HZ_Readings: do update
2013.12.31 15:09:27 5: HZ_Readings: do update
2013.12.31 15:09:28 5: HZ_Readings: FHEMWEB:192.168.0.100:51109 is closed, ignoring notify
2013.12.31 15:09:30 5: opened: FHEMWEB:192.168.0.100:51119
2013.12.31 15:09:32 5: HZ_Readings: do update
2013.12.31 15:09:32 5: opened: FHEMWEB:192.168.0.100:51119
2013.12.31 15:09:33 5: HZ_Readings: do update
2013.12.31 15:09:43 5: HZ_Readings: FHEMWEB:192.168.0.100:51119 is closed, ignoring notify
2013.12.31 15:09:44 5: HZ_Readings: not on any display, ignoring notify
2013.12.31 15:09:45 5: HZ_Readings: not on any display, ignoring notify

Kann das an dem Update liegen? Die Datei 33_readingsGroup.pm wurde aktualisiert.

Charles

Raspberry · FB 7590 · CUL · FS20 · MAX · ESP

John

Hallo Charles,

ZitatKann das an dem Update liegen? Die Datei 33_readingsGroup.pm wurde aktualisiert.

Das sieht ganz so aus.

John
CubieTruck Docker Node-Red Tasmota Shelly Homematic-IP

Charles

Hallo John,

ich hab HZ_Reading einfach mal auskommentiert, so siehts wieder besser aus!

Schönen Feiertag noch

Charles
Raspberry · FB 7590 · CUL · FS20 · MAX · ESP

koenigd

Hallo,

habe den Betriebsstudenzähler soweit gut zum laufen bekommen.


Die Grafik über den Tagesverlauf ist ja schonmal super, Unterschiede der Brennerstarts in Abhängigkeit der Aussentemperatur sind gut sichtbar.

Ich würde jedoch gerne in einem Graf die Anzahl der täglichen Brennerstarts (Wochenansicht) darstellen und dazu die durchschnittliche Tagestemperatur.

Ich stelle mir der so vor, dass man jeden Abend um 23:59 die Anzahl Brennerstarts ins logfile schreibt, aber wie geht das?

Hat einer hierzu eine Idee??

Gruß Daniel

fhemjörg

Hallo John,

ich hoffe Du liest das noch.....
Ich habe bei mir den Gaszähler umgesetzt (Reedkontakt und Max Fensterkontakt). Nun möchte ich noch gerne mit dem mini Lichtsensor von FS20 unterscheiden ob der Brenner das Trinkwasser warm macht oder für die Heizung läuft. Meine Idee ist, sobald eine kleine LED für die Trinkwasser Aufheizung an ist soll der  Gaszähler  für Warmwasser zählen ansonsten für Heizung.

Hast Du ein Vorschlag wie ich das umsetzen kann? Dein Modul anpassen (da reichen meine Perl Erfahrungen nicht) oder reicht das über userReadings?

Gruß
Jörg

John

Hallo Jörg,

wie ist das Timing der beiden Signale ?

kommt die LED explizit immer VOR dem Signal des Gaszählers, kommen beide quasi gleichzeitig oder ist das indifferent ?

John
CubieTruck Docker Node-Red Tasmota Shelly Homematic-IP

fhemjörg

Hallo John,

das ist indifferent, sobald die Ist Temp. vom Warmwasser unterhalt der Soll Temp. fällt schaltet das Ventil am Brenner bzw. Therme auf Warmwasser. Warmwasser hat immer vorrang vor Heizung.
Das eine "Unschärfe" beim Zählen entsteht ist mir bewusst. Ist es überhaupt möglich?

John

Hallo Jörg,

ich könnte mir Folgendes vorstellen:

Gesamtzähler für den Gasverbrauch, wie bisher

5 Sekunden nach positiver Flanke prüfst du, ob Anforderung Heizung oder Brauchwasser und merkst dir das Ergebnis
(die Wartezeit, bis das Kriterium sicher zu erkennen ist)

Nach der negativen Flanke wird wie üblich der Gesamtzähler inkrementiert (durch HourCounter), zusätzlich
wird das Ergebnis noch
  dem Zähler Brauchwasser zugeordnet, wenn die Anforderung Brauchwasser im Merker aktiv ist
  dem Zähler Heizung zugeordnet, wenn die Anforderung Heizung im Merker aktiv ist



John

CubieTruck Docker Node-Red Tasmota Shelly Homematic-IP

strauch

@John,

hab dein Modul gestern erst gefunden, sehr sehr gutes Teil. Vielen Dank dafür. Ich nutze es gerade für meinen Gaszähler und um mit einem FS20SD die Sonnenstunden zu zählen.
FHEM 5.6 VMware mit Debian. 1 CUL für FS20 und HMLAN für Homematic, HM-CC-RT-DN, HM-LC_Sw1PBU-FM, HM-LC-Bl1PBU-FM,  HM-SEC-SC, HM-SEC-SC-2, HM-LC-Sw1-Pl2, HM-Sec-RHS, ASH2200, FHT80B, S20KSE, Sonos, XBMC, FB_Callmonitor, SMLUSB, Arduino Firmata, uvm.

John

@strauch
danke für die Blumen.

Die Community um FHEM lebt vom Nehmen und Geben.

Mit dem HourCounter liefere ich einen kleinen Beitrag in den Geben-Topf.

John
CubieTruck Docker Node-Red Tasmota Shelly Homematic-IP

fhemjörg

Hallo John,

Danke für die Rückmeldung. Wenn ich die Hardware habe werde ich es mal versuchen. Könntest DU mir denn noch ein Tipp geben wie ich ein Merker setzten kann?

Gruß Jörg

strauch

#132
@John,

für meinen Gaszähler fände ich es schön, wenn der Hourcounter auch countsperHour ausgeben könnte. Magst du das einbauen, ich kann es auch mal "probieren" mein Perl ist stark eingerostet und du schaust noch mal drüber oder hälst du das für nicht Interessant?

Ich überlege auch ob Counts per Minute interessant sein könnte. Würde soetwas ergeben wie ein Momentanverbrauch.

Vielleicht wäre auch ein Counter interessant dessen zeit man über ein attr setzten könnte?

Grüße

strauch
FHEM 5.6 VMware mit Debian. 1 CUL für FS20 und HMLAN für Homematic, HM-CC-RT-DN, HM-LC_Sw1PBU-FM, HM-LC-Bl1PBU-FM,  HM-SEC-SC, HM-SEC-SC-2, HM-LC-Sw1-Pl2, HM-Sec-RHS, ASH2200, FHT80B, S20KSE, Sonos, XBMC, FB_Callmonitor, SMLUSB, Arduino Firmata, uvm.

John

Hallo strauch,

ich arbeite an einer Lösung, die auch CountsPerHour oder CountsPer<meinWunschzeitraum> zulässt.

Bitte noch etwas Geduld.

John
CubieTruck Docker Node-Red Tasmota Shelly Homematic-IP

strauch

Hallo John,

Geduld ist reichlich vorhanden. Danke

Grüße

Strauch

Gesendet von meinem Nexus 4 mit Tapatalk

FHEM 5.6 VMware mit Debian. 1 CUL für FS20 und HMLAN für Homematic, HM-CC-RT-DN, HM-LC_Sw1PBU-FM, HM-LC-Bl1PBU-FM,  HM-SEC-SC, HM-SEC-SC-2, HM-LC-Sw1-Pl2, HM-Sec-RHS, ASH2200, FHT80B, S20KSE, Sonos, XBMC, FB_Callmonitor, SMLUSB, Arduino Firmata, uvm.