Hallo liebe FHEM Gemeinde,
ich habe meinen Gaszähler mit einem Wemos mit Reedkontakt bestückt. Darüber trigger ich den Hourcounter, der wieder den Gascounter beschickt.
Da ich in einem SVG gerne den Gasverbrauch der letzten viertel bzw. ganzen Stunde an Aussen-, Vorlauf- und Rücklauftemperatur hätte, sowie den aufgelaufenen Tagesverbrauch in m^3, habe ich mir ein paar Userreadings erzeugt in die ich dann alle 15 bzw. 60 Minuten per AT die Werte schreibe und dann ganz einfach immer neuer Wert abzüglich alter Wert rechne.
Der Gascounter hat wohl eine Genauigkeit von drei Nachkommastellen, meine "Puffer"-Userreadings entsprechend auch.
Aber... meine 15/60 Minuten Werte sind leider etwas aus der Art geschlagen. Woran kann das liegen???
Grüße Marc
"list" des AT Devices bitte
Stündlich:
Internals:
COMMAND set GC.Gascounter zzz_GC_countsOverall_Meter_alt {(ReadingsNum("GC.Gascounter","zzz_GC_countsOverall_Meter_neu",0))};
set GC.Gascounter zzz_GC_countsOverall_Meter_neu {(ReadingsNum("GC.Gascounter","HC.Gaszaehler_countsOverall_Meter",0))};
set GC.Gascounter zzz_GC_Verbrauch_stuendlich {((ReadingsNum("GC.Gascounter","zzz_GC_countsOverall_Meter_neu",0)) - (ReadingsNum("GC.Gascounter","zzz_GC_countsOverall_Meter_alt",0)))}
DEF +*01:00:00 set GC.Gascounter zzz_GC_countsOverall_Meter_alt {(ReadingsNum("GC.Gascounter","zzz_GC_countsOverall_Meter_neu",0))};
set GC.Gascounter zzz_GC_countsOverall_Meter_neu {(ReadingsNum("GC.Gascounter","HC.Gaszaehler_countsOverall_Meter",0))};
set GC.Gascounter zzz_GC_Verbrauch_stuendlich {((ReadingsNum("GC.Gascounter","zzz_GC_countsOverall_Meter_neu",0)) - (ReadingsNum("GC.Gascounter","zzz_GC_countsOverall_Meter_alt",0)))}
NAME AT.GC.GascounterVerbrauch
NR 209
NTM 17:00:00
PERIODIC yes
RELATIVE yes
REP -1
STATE Next: 17:00:00
TIMESPEC 01:00:00
TRIGGERTIME 1543248000
TRIGGERTIME_FMT 2018-11-26 17:00:00
TYPE at
READINGS:
2018-11-26 16:23:01 state Next: 17:00:00
Attributes:
alignTime 00:00
disable 0
room AAA AAA,ESPEasy
verbose 0
viertel Stündlich:
Internals:
COMMAND set GC.Gascounter zzz_GC_countsOverall_Meter_alt_15 {(ReadingsNum("GC.Gascounter","zzz_GC_countsOverall_Meter_neu_15",0))};set GC.Gascounter zzz_GC_countsOverall_Meter_neu_15 {(ReadingsNum("GC.Gascounter","HC.Gaszaehler_countsOverall_Meter",0))}; set GC.Gascounter zzz_GC_Verbrauch_15 {((ReadingsNum("GC.Gascounter","zzz_GC_countsOverall_Meter_neu_15",0))-(ReadingsNum("GC.Gascounter","zzz_GC_countsOverall_Meter_alt_15",0)))}
DEF +*0:15:00 set GC.Gascounter zzz_GC_countsOverall_Meter_alt_15 {(ReadingsNum("GC.Gascounter","zzz_GC_countsOverall_Meter_neu_15",0))};set GC.Gascounter zzz_GC_countsOverall_Meter_neu_15 {(ReadingsNum("GC.Gascounter","HC.Gaszaehler_countsOverall_Meter",0))}; set GC.Gascounter zzz_GC_Verbrauch_15 {((ReadingsNum("GC.Gascounter","zzz_GC_countsOverall_Meter_neu_15",0))-(ReadingsNum("GC.Gascounter","zzz_GC_countsOverall_Meter_alt_15",0)))}
NAME AT.GC.GascounterVerbrauch15
NR 306
NTM 16:45:00
PERIODIC yes
RELATIVE yes
REP -1
STATE Next: 16:45:00
TIMESPEC 0:15:00
TRIGGERTIME 1543247100
TRIGGERTIME_FMT 2018-11-26 16:45:00
TYPE at
READINGS:
2018-11-26 16:30:00 state Next: 16:45:00
Attributes:
alignTime 00:00
disable 0
room AAA AAA,ESPEasy
verbose 0
Ok das kommt dann nicht von einer Klakulation im At. Dann ist wahrscheinlich eher Hourcounter der Täter. Ich würde einfach die Werte mit sprintf formattieren.
Hmmm... der Hourcounter liefert mir nur ganz Zahlen.
Darum verstehe ich ja auch nicht wo diese minimalen "unschärfen" herkommen.
Wenn es nicht anders geht sprintf, aber irgendwo muss ja ein "Problem" sein!?
Um weiter zu gucken, brauche ich ein vollständiges "list" vom Gaszähler und vom Hourcounter. Und Logauszüge vom Gaszähler mit verbose hoch genug um die Setzung von den Readings zu sehen.
Ein paar Log Befehle in den ATs könnte auch helfen, den Täter zu finden.
Das "set GC.Gascounter zzz_GC_countsOverall_Meter_alt_15 {}" und die Benutzeung von userAttr finde ich schon komisch. Wäre es nicht besser mit Readings und setreading? Weil hier bei jeder Aktualisierung solltest Du die Konfig mit "save" speichern, oder? Was passiert sonst bei einem shutdown/restart?
Hi,
also mit den "userAttr" arbeite ich nicht (zu mindest nicht bewusst), nur mit userreadings, weil ich gerne Werte hätte die es so nicht gibt.
Ich möchte ja keine vorhandenen Readings "kaputt" schreiben... oder verstehe ich Dich falsch?!
Bezüglich Neustart, habe ich mich noch nie gefragt... aber ich habe auch keine Probleme.
Hier das "list" vom Gascounter:
Internals:
DEF HC.Gaszaehler:countsOverall.*
NAME GC.Gascounter
NOTIFYDEV HC.Gaszaehler
NR 204
NTFY_ORDER 10-GC.Gascounter
REGEXP HC.Gaszaehler:countsOverall.*
STATE T: 7.69999999999982 m^3 / G: 6106.800 m^3
TYPE GasCalculator
READINGS:
2018-11-28 08:48:57 HC.Gaszaehler_countsOverall_EnergyCostDay 3.935
2018-11-28 00:26:57 HC.Gaszaehler_countsOverall_EnergyCostDayLast 2.197
2018-11-28 08:48:57 HC.Gaszaehler_countsOverall_EnergyCostMeter 463.375
2018-11-28 08:48:57 HC.Gaszaehler_countsOverall_EnergyCostMonth 56.925
2018-11-01 00:07:29 HC.Gaszaehler_countsOverall_EnergyCostMonthLast 27.849
2018-11-28 08:48:57 HC.Gaszaehler_countsOverall_EnergyCostYear 463.375
2018-11-28 08:48:57 HC.Gaszaehler_countsOverall_EnergyDay 77.000
2018-11-28 00:26:57 HC.Gaszaehler_countsOverall_EnergyDayLast 43.000
2018-11-28 08:48:57 HC.Gaszaehler_countsOverall_EnergyMeter 9068.000
2018-11-28 08:48:57 HC.Gaszaehler_countsOverall_EnergyMonth 1114.000
2018-11-01 00:07:29 HC.Gaszaehler_countsOverall_EnergyMonthLast 545.000
2018-11-28 08:48:57 HC.Gaszaehler_countsOverall_EnergyYear 9068.000
2018-11-28 08:48:57 HC.Gaszaehler_countsOverall_FinanceReserve 196.332
2018-11-28 08:48:57 HC.Gaszaehler_countsOverall_Meter 6106.800
2018-11-28 08:48:57 HC.Gaszaehler_countsOverall_MonthMeterReading 11
2018-11-28 08:48:57 HC.Gaszaehler_countsOverall_PowerCurrent 0.000
2018-11-28 08:48:57 HC.Gaszaehler_countsOverall_PowerDayAver 7.643
2018-11-28 07:48:57 HC.Gaszaehler_countsOverall_PowerDayMax 61.000
2018-11-28 00:26:57 HC.Gaszaehler_countsOverall_PowerDayMin 0.000
2018-11-28 00:26:57 HC.Gaszaehler_countsOverall_Vol1stDay 6099.1
2018-06-23 17:29:36 HC.Gaszaehler_countsOverall_Vol1stMeter 5200
2018-11-01 00:07:29 HC.Gaszaehler_countsOverall_Vol1stMonth 5995.400
2018-06-23 17:24:09 HC.Gaszaehler_countsOverall_Vol1stYear 5200
2018-11-28 00:26:57 HC.Gaszaehler_countsOverall_VolLastDay 6099.100
2018-06-22 19:36:37 HC.Gaszaehler_countsOverall_VolLastMeter 5913.200
2018-11-01 00:07:29 HC.Gaszaehler_countsOverall_VolLastMonth 5995.400
2018-06-22 19:36:37 HC.Gaszaehler_countsOverall_VolLastYear 5913.200
2018-06-22 18:36:36 HC.Gaszaehler_countsPerDay_EnergyCostDay 0.102
2018-06-22 00:00:00 HC.Gaszaehler_countsPerDay_EnergyCostDayLast 0.051
2018-06-22 18:36:36 HC.Gaszaehler_countsPerDay_EnergyCostMeter -0.102
2018-06-22 18:36:36 HC.Gaszaehler_countsPerDay_EnergyCostMonth -0.102
2018-06-22 18:36:36 HC.Gaszaehler_countsPerDay_EnergyCostYear -0.102
2018-06-22 18:36:36 HC.Gaszaehler_countsPerDay_EnergyDay 2.000
2018-06-22 00:00:00 HC.Gaszaehler_countsPerDay_EnergyDayLast 1.000
2018-06-22 18:36:36 HC.Gaszaehler_countsPerDay_EnergyMeter -2.000
2018-06-22 18:36:36 HC.Gaszaehler_countsPerDay_EnergyMonth -2.000
2018-06-22 18:36:36 HC.Gaszaehler_countsPerDay_EnergyYear -2.000
2018-06-22 18:36:36 HC.Gaszaehler_countsPerDay_FinanceReserve 359.942
2018-06-22 18:36:36 HC.Gaszaehler_countsPerDay_Meter 5913.200
2018-06-22 18:36:36 HC.Gaszaehler_countsPerDay_MonthMeterReading 6
2018-06-22 18:36:36 HC.Gaszaehler_countsPerDay_PowerCurrent 0.000
2018-06-22 18:36:36 HC.Gaszaehler_countsPerDay_PowerDayAver -0.120
2018-06-22 13:31:29 HC.Gaszaehler_countsPerDay_PowerDayMax 4.000
2018-06-22 00:00:00 HC.Gaszaehler_countsPerDay_PowerDayMin -8
2018-06-22 00:00:00 HC.Gaszaehler_countsPerDay_Vol1stDay 5913
2018-06-21 19:45:13 HC.Gaszaehler_countsPerDay_Vol1stMeter 5913.4
2018-06-21 19:45:13 HC.Gaszaehler_countsPerDay_Vol1stMonth 5913.4
2018-06-21 19:45:13 HC.Gaszaehler_countsPerDay_Vol1stYear 5913.4
2018-06-22 00:00:00 HC.Gaszaehler_countsPerDay_VolLastDay 5913.500
2018-06-21 19:45:13 HC.Gaszaehler_countsPerDay_VolLastMeter 5913.300
2018-06-21 19:45:13 HC.Gaszaehler_countsPerDay_VolLastMonth 5913.300
2018-06-21 19:45:13 HC.Gaszaehler_countsPerDay_VolLastYear 5913.300
2018-11-28 09:15:00 zzz_GC_Verbrauch_15 0
2018-11-28 09:00:00 zzz_GC_Verbrauch_stuendlich 0
2018-11-28 08:48:57 zzz_GC_Verbrauch_taeglich 7.69999999999982
2018-11-28 09:00:00 zzz_GC_countsOverall_Meter_alt 6106.800
2018-11-28 09:15:00 zzz_GC_countsOverall_Meter_alt_15 6106.800
2018-11-28 09:00:00 zzz_GC_countsOverall_Meter_neu 6106.800
2018-11-28 09:15:00 zzz_GC_countsOverall_Meter_neu_15 6106.800
system:
SiPrefixPowerFactor 1
Attributes:
BasicPricePerAnnum 156.32
Currency €
GasCounterOffset 5935
GasCubicPerCounts 0.1
GasNominalHeatingValue 10
GasPricePerKWh 0.0511
GaszValue 1
MonthOfAnnualReading 1
MonthlyPayment 73
ReadingDestination CalculatorDevice
SiPrefixPower W
Volume m³
event-min-interval 900
event-on-change-reading .*
event-on-update-reading .*
icon clock
room AAA AAA,ESPEasy
stateFormat T: zzz_GC_Verbrauch_taeglich m^3 / G: HC.Gaszaehler_countsOverall_Meter m^3
userReadings zzz_GC_Verbrauch_taeglich:HC.Gaszaehler_countsOverall_Meter.* {(ReadingsNum("GC.Gascounter","HC.Gaszaehler_countsOverall_Meter",0)) - (ReadingsNum("GC.Gascounter","HC.Gaszaehler_countsOverall_VolLastDay",0))}, zzz_GC_countsOverall_Meter_neu, zzz_GC_countsOverall_Meter_alt, zzz_GC_Verbrauch_stuendlich, zzz_GC_countsOverall_Meter_neu_15, zzz_GC_countsOverall_Meter_alt_15, zzz_GC_Verbrauch_15
verbose 0
Ich schätze mal, so was im Log ist von Interesse?!
2018.11.28 10:13:27 5: GC.Gascounter : GasCalculator - notify x_sets list: HC.Gaszaehler_countsOverall_EnergyMonth HC.Gaszaehler_countsOverall_Vol1stMeter HC.Gaszaehler_countsOverall_VolLastMeter HC.Gaszaehler_countsPerDay_EnergyCostDayLast HC.Gaszaehler_countsOverall_Vol1stDay HC.Gaszaehler_countsOverall_Vol1stMonth zzz_GC_countsOverall_Meter_alt_15 zzz_GC_Verbrauch_taeglich HC.Gaszaehler_countsOverall_EnergyMeter HC.Gaszaehler_countsOverall_EnergyCostDay HC.Gaszaehler_countsPerDay_VolLastMonth .HC.Gaszaehler_countsPerDay_PowerDaySum zzz_GC_countsOverall_Meter_neu_15 HC.Gaszaehler_countsOverall_EnergyDay HC.Gaszaehler_countsPerDay_Vol1stDay HC.Gaszaehler_countsPerDay_EnergyMonth HC.Gaszaehler_countsOverall_VolLastDay HC.Gaszaehler_countsPerDay_VolLastDay HC.Gaszaehler_countsPerDay_FinanceReserve .HC.Gaszaehler_countsPerDay_LastDt HC.Gaszaehler_countsPerDay_EnergyDayLast HC.Gaszaehler_countsPerDay_Vol1stYear HC.Gaszaehler_countsPerDay_EnergyCostDay .HC.Gaszaehler_countsPerDay_LastDV HC.Gaszaehler_countsOverall_VolLastYear HC.Gaszaehler_countsPerDay_Meter HC.Gaszaehler_countsOverall_PowerCurrent zzz_GC_countsOverall_Meter_alt .HC.Gaszaehler_countsOverall_LastDV HC.Gaszaehler_countsOverall_EnergyDayLast HC.Gaszaehler_countsPerDay_PowerCurrent zzz_GC_Verbrauch_15 HC.Gaszaehler_countsPerDay_VolLastYear HC.Gaszaehler_countsPerDay_EnergyCostMonth HC.Gaszaehler_countsPerDay_VolLastMeter HC.Gaszaehler_countsOverall_EnergyYear HC.Gaszaehler_countsPerDay_Vol1stMonth .HC.Gaszaehler_countsOverall_PrevRead HC.Gaszaehler_countsOverall_EnergyCostMonth HC.Gaszaehler_countsPerDay_EnergyCostYear HC.Gaszaehler_countsPerDay_EnergyDay .HC.Gaszaehler_countsOverall_PowerDayCount HC.Gaszaehler_countsPerDay_EnergyCostMeter HC.Gaszaehler_countsPerDay_MonthMeterReading HC.Gaszaehler_countsOverall_EnergyCostMeter HC.Gaszaehler_countsPerDay_Vol1stMeter HC.Gaszaehler_countsPerDay_PowerDayMax HC.Gaszaehler_countsOverall_EnergyMonthLast HC.Gaszaehler_countsPerDay_PowerDayAver HC.Gaszaehler_countsOverall_Meter .HC.Gaszaehler_countsPerDay_PowerDayCount HC.Gaszaehler_countsPerDay_EnergyMeter HC.Gaszaehler_countsOverall_MonthMeterReading .HC.Gaszaehler_countsOverall_LastDt HC.Gaszaehler_countsOverall_PowerDayAver zzz_GC_countsOverall_Meter_neu .HC.Gaszaehler_countsOverall_PowerDaySum HC.Gaszaehler_countsOverall_VolLastMonth zzz_GC_Verbrauch_stuendlich HC.Gaszaehler_countsOverall_EnergyCostDayLast HC.Gaszaehler_countsOverall_FinanceReserve HC.Gaszaehler_countsOverall_PowerDayMin HC.Gaszaehler_countsOverall_EnergyCostYear HC.Gaszaehler_countsPerDay_EnergyYear HC.Gaszaehler_countsOverall_EnergyCostMonthLast .HC.Gaszaehler_countsPerDay_PrevRead HC.Gaszaehler_countsOverall_PowerDayMax HC.Gaszaehler_countsPerDay_PowerDayMin HC.Gaszaehler_countsOverall_Vol1stYear
2018.11.28 10:13:42 5: GC.Gascounter : GasCalculator - notify x_sets list: HC.Gaszaehler_countsOverall_PowerCurrent HC.Gaszaehler_countsPerDay_Meter HC.Gaszaehler_countsOverall_VolLastYear HC.Gaszaehler_countsPerDay_EnergyCostDay .HC.Gaszaehler_countsPerDay_LastDV HC.Gaszaehler_countsPerDay_Vol1stYear HC.Gaszaehler_countsPerDay_Vol1stMonth HC.Gaszaehler_countsPerDay_VolLastMeter HC.Gaszaehler_countsOverall_EnergyYear HC.Gaszaehler_countsPerDay_PowerCurrent zzz_GC_Verbrauch_15 HC.Gaszaehler_countsPerDay_VolLastYear HC.Gaszaehler_countsPerDay_EnergyCostMonth zzz_GC_countsOverall_Meter_alt HC.Gaszaehler_countsOverall_EnergyDayLast .HC.Gaszaehler_countsOverall_LastDV zzz_GC_Verbrauch_taeglich HC.Gaszaehler_countsOverall_EnergyMeter zzz_GC_countsOverall_Meter_alt_15 HC.Gaszaehler_countsPerDay_EnergyCostDayLast HC.Gaszaehler_countsOverall_Vol1stDay HC.Gaszaehler_countsOverall_Vol1stMonth HC.Gaszaehler_countsOverall_EnergyMonth HC.Gaszaehler_countsOverall_Vol1stMeter HC.Gaszaehler_countsOverall_VolLastMeter HC.Gaszaehler_countsOverall_VolLastDay HC.Gaszaehler_countsPerDay_VolLastDay .HC.Gaszaehler_countsPerDay_LastDt HC.Gaszaehler_countsPerDay_FinanceReserve HC.Gaszaehler_countsPerDay_EnergyDayLast HC.Gaszaehler_countsPerDay_EnergyMonth zzz_GC_countsOverall_Meter_neu_15 HC.Gaszaehler_countsOverall_EnergyDay HC.Gaszaehler_countsPerDay_Vol1stDay HC.Gaszaehler_countsOverall_EnergyCostDay HC.Gaszaehler_countsPerDay_VolLastMonth .HC.Gaszaehler_countsPerDay_PowerDaySum zzz_GC_Verbrauch_stuendlich HC.Gaszaehler_countsOverall_EnergyCostDayLast HC.Gaszaehler_countsOverall_FinanceReserve zzz_GC_countsOverall_Meter_neu .HC.Gaszaehler_countsOverall_PowerDaySum HC.Gaszaehler_countsOverall_VolLastMonth HC.Gaszaehler_countsOverall_Vol1stYear HC.Gaszaehler_countsOverall_PowerDayMax HC.Gaszaehler_countsPerDay_PowerDayMin HC.Gaszaehler_countsPerDay_EnergyYear HC.Gaszaehler_countsOverall_EnergyCostYear HC.Gaszaehler_countsOverall_EnergyCostMonthLast .HC.Gaszaehler_countsPerDay_PrevRead HC.Gaszaehler_countsOverall_PowerDayMin HC.Gaszaehler_countsOverall_EnergyCostMeter HC.Gaszaehler_countsPerDay_Vol1stMeter .HC.Gaszaehler_countsOverall_PowerDayCount HC.Gaszaehler_countsPerDay_EnergyCostMeter HC.Gaszaehler_countsPerDay_MonthMeterReading HC.Gaszaehler_countsPerDay_EnergyCostYear HC.Gaszaehler_countsPerDay_EnergyDay .HC.Gaszaehler_countsOverall_PrevRead HC.Gaszaehler_countsOverall_EnergyCostMonth HC.Gaszaehler_countsOverall_PowerDayAver .HC.Gaszaehler_countsOverall_LastDt HC.Gaszaehler_countsPerDay_EnergyMeter HC.Gaszaehler_countsOverall_MonthMeterReading .HC.Gaszaehler_countsPerDay_PowerDayCount HC.Gaszaehler_countsOverall_EnergyMonthLast HC.Gaszaehler_countsPerDay_PowerDayMax HC.Gaszaehler_countsPerDay_PowerDayAver HC.Gaszaehler_countsOverall_Meter
2018.11.28 10:13:57 5: GC.Gascounter : GasCalculator - notify x_sets list: HC.Gaszaehler_countsOverall_VolLastYear HC.Gaszaehler_countsOverall_PowerCurrent HC.Gaszaehler_countsPerDay_Meter HC.Gaszaehler_countsPerDay_Vol1stYear .HC.Gaszaehler_countsPerDay_LastDV HC.Gaszaehler_countsPerDay_EnergyCostDay HC.Gaszaehler_countsPerDay_VolLastMeter HC.Gaszaehler_countsOverall_EnergyYear HC.Gaszaehler_countsPerDay_Vol1stMonth zzz_GC_countsOverall_Meter_alt .HC.Gaszaehler_countsOverall_LastDV HC.Gaszaehler_countsOverall_EnergyDayLast HC.Gaszaehler_countsPerDay_PowerCurrent zzz_GC_Verbrauch_15 HC.Gaszaehler_countsPerDay_EnergyCostMonth HC.Gaszaehler_countsPerDay_VolLastYear zzz_GC_countsOverall_Meter_alt_15 zzz_GC_Verbrauch_taeglich HC.Gaszaehler_countsOverall_EnergyMeter HC.Gaszaehler_countsOverall_EnergyMonth HC.Gaszaehler_countsOverall_VolLastMeter HC.Gaszaehler_countsOverall_Vol1stMeter HC.Gaszaehler_countsPerDay_EnergyCostDayLast HC.Gaszaehler_countsOverall_Vol1stMonth HC.Gaszaehler_countsOverall_Vol1stDay HC.Gaszaehler_countsPerDay_EnergyMonth HC.Gaszaehler_countsOverall_VolLastDay HC.Gaszaehler_countsPerDay_VolLastDay .HC.Gaszaehler_countsPerDay_LastDt HC.Gaszaehler_countsPerDay_EnergyDayLast HC.Gaszaehler_countsPerDay_FinanceReserve HC.Gaszaehler_countsOverall_EnergyCostDay HC.Gaszaehler_countsPerDay_VolLastMonth .HC.Gaszaehler_countsPerDay_PowerDaySum zzz_GC_countsOverall_Meter_neu_15 HC.Gaszaehler_countsPerDay_Vol1stDay HC.Gaszaehler_countsOverall_EnergyDay zzz_GC_countsOverall_Meter_neu .HC.Gaszaehler_countsOverall_PowerDaySum HC.Gaszaehler_countsOverall_VolLastMonth zzz_GC_Verbrauch_stuendlich HC.Gaszaehler_countsOverall_EnergyCostDayLast HC.Gaszaehler_countsOverall_FinanceReserve HC.Gaszaehler_countsOverall_PowerDayMax HC.Gaszaehler_countsPerDay_PowerDayMin HC.Gaszaehler_countsOverall_Vol1stYear HC.Gaszaehler_countsOverall_PowerDayMin HC.Gaszaehler_countsPerDay_EnergyYear HC.Gaszaehler_countsOverall_EnergyCostYear .HC.Gaszaehler_countsPerDay_PrevRead HC.Gaszaehler_countsOverall_EnergyCostMonthLast .HC.Gaszaehler_countsOverall_PowerDayCount HC.Gaszaehler_countsPerDay_EnergyCostMeter HC.Gaszaehler_countsPerDay_MonthMeterReading HC.Gaszaehler_countsOverall_EnergyCostMeter HC.Gaszaehler_countsPerDay_Vol1stMeter HC.Gaszaehler_countsOverall_EnergyCostMonth .HC.Gaszaehler_countsOverall_PrevRead HC.Gaszaehler_countsPerDay_EnergyDay HC.Gaszaehler_countsPerDay_EnergyCostYear HC.Gaszaehler_countsPerDay_EnergyMeter HC.Gaszaehler_countsOverall_MonthMeterReading HC.Gaszaehler_countsOverall_PowerDayAver .HC.Gaszaehler_countsOverall_LastDt HC.Gaszaehler_countsOverall_EnergyMonthLast HC.Gaszaehler_countsPerDay_PowerDayMax HC.Gaszaehler_countsOverall_Meter HC.Gaszaehler_countsPerDay_PowerDayAver .HC.Gaszaehler_countsPerDay_PowerDayCount
2018.11.28 10:14:12 5: GC.Gascounter : GasCalculator - notify x_sets list: zzz_GC_Verbrauch_stuendlich HC.Gaszaehler_countsOverall_EnergyCostDayLast HC.Gaszaehler_countsOverall_FinanceReserve zzz_GC_countsOverall_Meter_neu .HC.Gaszaehler_countsOverall_PowerDaySum HC.Gaszaehler_countsOverall_VolLastMonth HC.Gaszaehler_countsPerDay_EnergyYear HC.Gaszaehler_countsOverall_EnergyCostYear .HC.Gaszaehler_countsPerDay_PrevRead HC.Gaszaehler_countsOverall_EnergyCostMonthLast HC.Gaszaehler_countsOverall_PowerDayMin HC.Gaszaehler_countsOverall_Vol1stYear HC.Gaszaehler_countsOverall_PowerDayMax HC.Gaszaehler_countsPerDay_PowerDayMin HC.Gaszaehler_countsPerDay_EnergyCostYear HC.Gaszaehler_countsPerDay_EnergyDay .HC.Gaszaehler_countsOverall_PrevRead HC.Gaszaehler_countsOverall_EnergyCostMonth HC.Gaszaehler_countsOverall_EnergyCostMeter HC.Gaszaehler_countsPerDay_Vol1stMeter .HC.Gaszaehler_countsOverall_PowerDayCount HC.Gaszaehler_countsPerDay_EnergyCostMeter HC.Gaszaehler_countsPerDay_MonthMeterReading .HC.Gaszaehler_countsPerDay_PowerDayCount HC.Gaszaehler_countsPerDay_PowerDayMax HC.Gaszaehler_countsOverall_EnergyMonthLast HC.Gaszaehler_countsOverall_Meter HC.Gaszaehler_countsPerDay_PowerDayAver .HC.Gaszaehler_countsOverall_LastDt HC.Gaszaehler_countsOverall_PowerDayAver HC.Gaszaehler_countsPerDay_EnergyMeter HC.Gaszaehler_countsOverall_MonthMeterReading .HC.Gaszaehler_countsPerDay_LastDV HC.Gaszaehler_countsPerDay_EnergyCostDay HC.Gaszaehler_countsPerDay_Vol1stYear HC.Gaszaehler_countsOverall_PowerCurrent HC.Gaszaehler_countsPerDay_Meter HC.Gaszaehler_countsOverall_VolLastYear HC.Gaszaehler_countsPerDay_PowerCurrent zzz_GC_Verbrauch_15 HC.Gaszaehler_countsPerDay_VolLastYear HC.Gaszaehler_countsPerDay_EnergyCostMonth zzz_GC_countsOverall_Meter_alt HC.Gaszaehler_countsOverall_EnergyDayLast .HC.Gaszaehler_countsOverall_LastDV HC.Gaszaehler_countsPerDay_Vol1stMonth HC.Gaszaehler_countsPerDay_VolLastMeter HC.Gaszaehler_countsOverall_EnergyYear HC.Gaszaehler_countsPerDay_EnergyCostDayLast HC.Gaszaehler_countsOverall_Vol1stDay HC.Gaszaehler_countsOverall_Vol1stMonth HC.Gaszaehler_countsOverall_EnergyMonth HC.Gaszaehler_countsOverall_Vol1stMeter HC.Gaszaehler_countsOverall_VolLastMeter zzz_GC_Verbrauch_taeglich HC.Gaszaehler_countsOverall_EnergyMeter zzz_GC_countsOverall_Meter_alt_15 zzz_GC_countsOverall_Meter_neu_15 HC.Gaszaehler_countsPerDay_Vol1stDay HC.Gaszaehler_countsOverall_EnergyDay HC.Gaszaehler_countsOverall_EnergyCostDay HC.Gaszaehler_countsPerDay_VolLastMonth .HC.Gaszaehler_countsPerDay_PowerDaySum HC.Gaszaehler_countsOverall_VolLastDay HC.Gaszaehler_countsPerDay_VolLastDay .HC.Gaszaehler_countsPerDay_LastDt HC.Gaszaehler_countsPerDay_FinanceReserve HC.Gaszaehler_countsPerDay_EnergyDayLast HC.Gaszaehler_countsPerDay_EnergyMonth
2018.11.28 10:14:27 5: GC.Gascounter : GasCalculator - notify x_sets list: HC.Gaszaehler_countsPerDay_Vol1stDay HC.Gaszaehler_countsOverall_EnergyDay zzz_GC_countsOverall_Meter_neu_15 .HC.Gaszaehler_countsPerDay_PowerDaySum HC.Gaszaehler_countsPerDay_VolLastMonth HC.Gaszaehler_countsOverall_EnergyCostDay .HC.Gaszaehler_countsPerDay_LastDt HC.Gaszaehler_countsPerDay_EnergyDayLast HC.Gaszaehler_countsPerDay_FinanceReserve HC.Gaszaehler_countsPerDay_VolLastDay HC.Gaszaehler_countsOverall_VolLastDay HC.Gaszaehler_countsPerDay_EnergyMonth HC.Gaszaehler_countsOverall_Vol1stMonth HC.Gaszaehler_countsOverall_Vol1stDay HC.Gaszaehler_countsPerDay_EnergyCostDayLast HC.Gaszaehler_countsOverall_Vol1stMeter HC.Gaszaehler_countsOverall_VolLastMeter HC.Gaszaehler_countsOverall_EnergyMonth HC.Gaszaehler_countsOverall_EnergyMeter zzz_GC_Verbrauch_taeglich zzz_GC_countsOverall_Meter_alt_15 HC.Gaszaehler_countsPerDay_EnergyCostMonth HC.Gaszaehler_countsPerDay_VolLastYear zzz_GC_Verbrauch_15 HC.Gaszaehler_countsPerDay_PowerCurrent HC.Gaszaehler_countsOverall_EnergyDayLast .HC.Gaszaehler_countsOverall_LastDV zzz_GC_countsOverall_Meter_alt HC.Gaszaehler_countsPerDay_Vol1stMonth HC.Gaszaehler_countsOverall_EnergyYear HC.Gaszaehler_countsPerDay_VolLastMeter .HC.Gaszaehler_countsPerDay_LastDV HC.Gaszaehler_countsPerDay_EnergyCostDay HC.Gaszaehler_countsPerDay_Vol1stYear HC.Gaszaehler_countsPerDay_Meter HC.Gaszaehler_countsOverall_PowerCurrent HC.Gaszaehler_countsOverall_VolLastYear .HC.Gaszaehler_countsPerDay_PowerDayCount HC.Gaszaehler_countsOverall_Meter HC.Gaszaehler_countsPerDay_PowerDayAver HC.Gaszaehler_countsOverall_EnergyMonthLast HC.Gaszaehler_countsPerDay_PowerDayMax HC.Gaszaehler_countsOverall_PowerDayAver .HC.Gaszaehler_countsOverall_LastDt HC.Gaszaehler_countsOverall_MonthMeterReading HC.Gaszaehler_countsPerDay_EnergyMeter HC.Gaszaehler_countsPerDay_EnergyCostYear HC.Gaszaehler_countsPerDay_EnergyDay HC.Gaszaehler_countsOverall_EnergyCostMonth .HC.Gaszaehler_countsOverall_PrevRead HC.Gaszaehler_countsPerDay_Vol1stMeter HC.Gaszaehler_countsOverall_EnergyCostMeter HC.Gaszaehler_countsPerDay_MonthMeterReading HC.Gaszaehler_countsPerDay_EnergyCostMeter .HC.Gaszaehler_countsOverall_PowerDayCount .HC.Gaszaehler_countsPerDay_PrevRead HC.Gaszaehler_countsOverall_EnergyCostMonthLast HC.Gaszaehler_countsPerDay_EnergyYear HC.Gaszaehler_countsOverall_EnergyCostYear HC.Gaszaehler_countsOverall_PowerDayMin HC.Gaszaehler_countsOverall_Vol1stYear HC.Gaszaehler_countsPerDay_PowerDayMin HC.Gaszaehler_countsOverall_PowerDayMax HC.Gaszaehler_countsOverall_FinanceReserve HC.Gaszaehler_countsOverall_EnergyCostDayLast zzz_GC_Verbrauch_stuendlich HC.Gaszaehler_countsOverall_VolLastMonth .HC.Gaszaehler_countsOverall_PowerDaySum zzz_GC_countsOverall_Meter_neu
2018.11.28 10:14:42 5: GC.Gascounter : GasCalculator - notify x_sets list: HC.Gaszaehler_countsOverall_PowerDayMax HC.Gaszaehler_countsPerDay_PowerDayMin HC.Gaszaehler_countsOverall_Vol1stYear HC.Gaszaehler_countsOverall_PowerDayMin HC.Gaszaehler_countsOverall_EnergyCostMonthLast .HC.Gaszaehler_countsPerDay_PrevRead HC.Gaszaehler_countsPerDay_EnergyYear HC.Gaszaehler_countsOverall_EnergyCostYear zzz_GC_countsOverall_Meter_neu HC.Gaszaehler_countsOverall_VolLastMonth .HC.Gaszaehler_countsOverall_PowerDaySum HC.Gaszaehler_countsOverall_EnergyCostDayLast zzz_GC_Verbrauch_stuendlich HC.Gaszaehler_countsOverall_FinanceReserve HC.Gaszaehler_countsPerDay_EnergyMeter HC.Gaszaehler_countsOverall_MonthMeterReading .HC.Gaszaehler_countsOverall_LastDt HC.Gaszaehler_countsOverall_PowerDayAver HC.Gaszaehler_countsPerDay_PowerDayMax HC.Gaszaehler_countsOverall_EnergyMonthLast HC.Gaszaehler_countsPerDay_PowerDayAver HC.Gaszaehler_countsOverall_Meter .HC.Gaszaehler_countsPerDay_PowerDayCount HC.Gaszaehler_countsPerDay_EnergyCostMeter .HC.Gaszaehler_countsOverall_PowerDayCount HC.Gaszaehler_countsPerDay_MonthMeterReading HC.Gaszaehler_countsPerDay_Vol1stMeter HC.Gaszaehler_countsOverall_EnergyCostMeter HC.Gaszaehler_countsOverall_EnergyCostMonth .HC.Gaszaehler_countsOverall_PrevRead HC.Gaszaehler_countsPerDay_EnergyCostYear HC.Gaszaehler_countsPerDay_EnergyDay HC.Gaszaehler_countsPerDay_VolLastMeter HC.Gaszaehler_countsOverall_EnergyYear HC.Gaszaehler_countsPerDay_Vol1stMonth .HC.Gaszaehler_countsOverall_LastDV HC.Gaszaehler_countsOverall_EnergyDayLast zzz_GC_countsOverall_Meter_alt HC.Gaszaehler_countsPerDay_EnergyCostMonth HC.Gaszaehler_countsPerDay_VolLastYear HC.Gaszaehler_countsPerDay_PowerCurrent zzz_GC_Verbrauch_15 HC.Gaszaehler_countsOverall_VolLastYear HC.Gaszaehler_countsPerDay_Meter HC.Gaszaehler_countsOverall_PowerCurrent HC.Gaszaehler_countsPerDay_Vol1stYear .HC.Gaszaehler_countsPerDay_LastDV HC.Gaszaehler_countsPerDay_EnergyCostDay HC.Gaszaehler_countsPerDay_EnergyMonth HC.Gaszaehler_countsOverall_VolLastDay .HC.Gaszaehler_countsPerDay_LastDt HC.Gaszaehler_countsPerDay_EnergyDayLast HC.Gaszaehler_countsPerDay_FinanceReserve HC.Gaszaehler_countsPerDay_VolLastDay HC.Gaszaehler_countsOverall_EnergyCostDay HC.Gaszaehler_countsPerDay_VolLastMonth .HC.Gaszaehler_countsPerDay_PowerDaySum zzz_GC_countsOverall_Meter_neu_15 HC.Gaszaehler_countsOverall_EnergyDay HC.Gaszaehler_countsPerDay_Vol1stDay zzz_GC_countsOverall_Meter_alt_15 zzz_GC_Verbrauch_taeglich HC.Gaszaehler_countsOverall_EnergyMeter HC.Gaszaehler_countsOverall_EnergyMonth HC.Gaszaehler_countsOverall_VolLastMeter HC.Gaszaehler_countsOverall_Vol1stMeter HC.Gaszaehler_countsOverall_Vol1stDay HC.Gaszaehler_countsOverall_Vol1stMonth HC.Gaszaehler_countsPerDay_EnergyCostDayLast
2018.11.28 10:14:57 5: GC.Gascounter : GasCalculator - notify x_sets list: .HC.Gaszaehler_countsPerDay_LastDV HC.Gaszaehler_countsPerDay_EnergyCostDay HC.Gaszaehler_countsPerDay_Vol1stYear HC.Gaszaehler_countsPerDay_Meter HC.Gaszaehler_countsOverall_PowerCurrent HC.Gaszaehler_countsOverall_VolLastYear zzz_GC_Verbrauch_15 HC.Gaszaehler_countsPerDay_PowerCurrent HC.Gaszaehler_countsPerDay_EnergyCostMonth HC.Gaszaehler_countsPerDay_VolLastYear zzz_GC_countsOverall_Meter_alt HC.Gaszaehler_countsOverall_EnergyDayLast .HC.Gaszaehler_countsOverall_LastDV HC.Gaszaehler_countsPerDay_Vol1stMonth HC.Gaszaehler_countsOverall_EnergyYear HC.Gaszaehler_countsPerDay_VolLastMeter HC.Gaszaehler_countsPerDay_EnergyCostDayLast HC.Gaszaehler_countsOverall_Vol1stDay HC.Gaszaehler_countsOverall_Vol1stMonth HC.Gaszaehler_countsOverall_VolLastMeter HC.Gaszaehler_countsOverall_Vol1stMeter HC.Gaszaehler_countsOverall_EnergyMonth HC.Gaszaehler_countsOverall_EnergyMeter zzz_GC_Verbrauch_taeglich zzz_GC_countsOverall_Meter_alt_15 HC.Gaszaehler_countsOverall_EnergyDay HC.Gaszaehler_countsPerDay_Vol1stDay zzz_GC_countsOverall_Meter_neu_15 .HC.Gaszaehler_countsPerDay_PowerDaySum HC.Gaszaehler_countsPerDay_VolLastMonth HC.Gaszaehler_countsOverall_EnergyCostDay HC.Gaszaehler_countsPerDay_VolLastDay HC.Gaszaehler_countsPerDay_FinanceReserve .HC.Gaszaehler_countsPerDay_LastDt HC.Gaszaehler_countsPerDay_EnergyDayLast HC.Gaszaehler_countsOverall_VolLastDay HC.Gaszaehler_countsPerDay_EnergyMonth HC.Gaszaehler_countsOverall_FinanceReserve zzz_GC_Verbrauch_stuendlich HC.Gaszaehler_countsOverall_EnergyCostDayLast .HC.Gaszaehler_countsOverall_PowerDaySum HC.Gaszaehler_countsOverall_VolLastMonth zzz_GC_countsOverall_Meter_neu HC.Gaszaehler_countsOverall_EnergyCostYear HC.Gaszaehler_countsPerDay_EnergyYear HC.Gaszaehler_countsOverall_EnergyCostMonthLast .HC.Gaszaehler_countsPerDay_PrevRead HC.Gaszaehler_countsOverall_PowerDayMin HC.Gaszaehler_countsOverall_Vol1stYear HC.Gaszaehler_countsPerDay_PowerDayMin HC.Gaszaehler_countsOverall_PowerDayMax HC.Gaszaehler_countsPerDay_EnergyCostYear HC.Gaszaehler_countsPerDay_EnergyDay HC.Gaszaehler_countsOverall_EnergyCostMonth .HC.Gaszaehler_countsOverall_PrevRead HC.Gaszaehler_countsOverall_EnergyCostMeter HC.Gaszaehler_countsPerDay_Vol1stMeter HC.Gaszaehler_countsPerDay_MonthMeterReading .HC.Gaszaehler_countsOverall_PowerDayCount HC.Gaszaehler_countsPerDay_EnergyCostMeter .HC.Gaszaehler_countsPerDay_PowerDayCount HC.Gaszaehler_countsPerDay_PowerDayAver HC.Gaszaehler_countsOverall_Meter HC.Gaszaehler_countsPerDay_PowerDayMax HC.Gaszaehler_countsOverall_EnergyMonthLast HC.Gaszaehler_countsOverall_PowerDayAver .HC.Gaszaehler_countsOverall_LastDt HC.Gaszaehler_countsOverall_MonthMeterReading HC.Gaszaehler_countsPerDay_EnergyMeter
2018.11.28 10:15:00 5: GC.Gascounter : GasCalculator - set zzz_GC_countsOverall_Meter_alt_15 with value: 6106.800
2018.11.28 10:15:00 5: GC.Gascounter : GasCalculator - set zzz_GC_countsOverall_Meter_neu_15 with value: 6106.900
2018.11.28 10:15:00 5: GC.Gascounter : GasCalculator - set zzz_GC_Verbrauch_15 with value: 0.0999999999994543
Da sist ja dann das was ich AT mache:
+*0:15:00 set GC.Gascounter zzz_GC_countsOverall_Meter_alt_15 {(ReadingsNum("GC.Gascounter","zzz_GC_countsOverall_Meter_neu_15",0))};set GC.Gascounter zzz_GC_countsOverall_Meter_neu_15 {(ReadingsNum("GC.Gascounter","HC.Gaszaehler_countsOverall_Meter",0))}; set GC.Gascounter zzz_GC_Verbrauch_15 {((ReadingsNum("GC.Gascounter","zzz_GC_countsOverall_Meter_neu_15",0))-(ReadingsNum("GC.Gascounter","zzz_GC_countsOverall_Meter_alt_15",0)))}
Sollte ja eigentlich 0.1 ergeben anstatt 0.0999999999994543 .
Grüße Marc
Zitat von: amenomade am 26 November 2018, 17:06:42
Ich würde einfach die Werte mit sprintf formattieren.
me2
Ich bin etwas überrascht wie schnell ihr mit dem "aufhübschen" von Zahlen seit ;D