Replies: 11 comments
-
Hi zibous,
but, it get more complex if you have also other gas equipment in house, greets |
Beta Was this translation helpful? Give feedback.
-
Hi Chris, - platform: template
sensors:
## see: https://github.com/emsesp/EMS-ESP32/issues/152
heating_power_heizkreis_watt:
friendly_name: "Aktuelle Leistung Raumheizung"
unit_of_measurement: "W"
value_template: >-
{%- if is_state("binary_sensor.boiler_heating_active", "on") -%}
{{ states('sensor.boiler_burner_current_power')|int(0) }}
{%- else -%}
0
{%- endif -%}
entity_id:
- sensor.boiler_burner_current_power
- binary_sensor.boiler_heating_active
heating_power_warmwasser_watt:
friendly_name: "Aktuelle Leistung Warmwasseraufbereitung"
unit_of_measurement: "W"
value_template: >-
{%- if is_state("binary_sensor.boiler_dhw_charging", "on") -%}
{{ states('sensor.boiler_burner_current_power')|int(0) }}
{%- else -%}
0
{%- endif -%}
entity_id:
- sensor.boiler_burner_current_power
- binary_sensor.boiler_dhw_charging But if I evaluate the data, then I do not understand this, because the heater consumes energy and does not use gas? SELECT sum("value") FROM "kWh" WHERE ("entity_id" = 'wug_kilowattstunde_gas_stunde') AND $timeFilter GROUP BY time(1h) fill(none)
SELECT sum("value") FROM "autogen"."W" WHERE ("entity_id" = 'heating_power_heizkreis_watt') AND $timeFilter GROUP BY time(1h) fill(null)
SELECT sum("value") FROM "autogen"."W" WHERE ("entity_id" = 'heating_power_warmwasser_watt') AND $timeFilter GROUP BY time(1m) fill(null)
Either I make a consideration error or I can not get the right data from the EMS ESP. |
Beta Was this translation helpful? Give feedback.
-
Maybe you can use the following entities to detect when Gas is used for warmwater or heating:
|
Beta Was this translation helpful? Give feedback.
-
@marc1de , Thanks for this information. Another attempt via the ## ---------------------------------------------------------------------------------
## 14.3 Betriebs- und Störungsanzeigen, die im Display angezeigt werden
## see: https://www.meinhausshop.de/media/pdf/meinhausshop-buderus-GB172-inst.pdf
## ---------------------------------------------------------------------------------
- platform: template
sensors:
## ------------------------------------------------------------------
## Sensor for warmwater and heating_circuit
## ------------------------------------------------------------------
heating_warmwater_on:
friendly_name: "Heizung Warmwasserbetrieb"
attribute_templates:
service-code: "{{states('sensor.boiler_service_code_number')|int(0)}}"
timestamp: "{{now().strftime('%Y-%m-%d %H:%M:%S')}}"
date: >
{{ now().timestamp() | timestamp_custom("%Y-%m-%d", true) }}
time: >
{{ now().timestamp() | timestamp_custom("%H:%M:%S", true) }}
value_template: >-
{%- if states('sensor.boiler_service_code_number')=='201' -%}
1
{%- else -%}
0
{%- endif -%}
heating_circuit_on:
friendly_name: "Heizung Heizkreisbetrieb"
attribute_templates:
service-code: "{{states('sensor.boiler_service_code_number')|int(0)}}"
timestamp: "{{now().strftime('%Y-%m-%d %H:%M:%S')}}"
date: >
{{ now().timestamp() | timestamp_custom("%Y-%m-%d", true) }}
time: >
{{ now().timestamp() | timestamp_custom("%H:%M:%S", true) }}
value_template: >-
{%- if states('sensor.boiler_service_code_number')=='200' -%}
1
{%- else -%}
0
{%- endif -%}
## ------------------------------------------------------------------
## service code number text
## ------------------------------------------------------------------
heating_service_code_message:
friendly_name: "Heizung Meldung"
attribute_templates:
service-code: "{{states('sensor.boiler_service_code_number')|int(0)}}"
timestamp: "{{now().strftime('%Y-%m-%d %H:%M:%S')}}"
date: >
{{ now().timestamp() | timestamp_custom("%Y-%m-%d", true) }}
time: >
{{ now().timestamp() | timestamp_custom("%H:%M:%S", true) }}
value_template: >-
{% set mapper = {
'208':'Das Gerät befindet sich im Schornsteinfegerbetrieb. Nach 30 Minuten wird der Schornsteinfegerbetrieb automatisch deaktiviert',
'200':'Das Gerät befindet sich im Heizbetrieb',
'201':'Gerät im Warmwasserbetrieb',
'202':'Taktsperre aktiv: Das Zeitintervall für das Wiedereinschalten des Brenners ist noch nicht erreicht',
'305':'Dauer Warmhaltung bei GB172-24K: Das Zeitintervall für die Wasser-Warmhaltung ist noch nicht erreicht',
'283':'Der Brenner wird gestartet',
'265':'Der Wärmebedarf ist geringer als die minimale Wärmeleistung des Geräts. Das Gerät arbeitet im Ein-/Aus-Betrieb',
'203':'Das Gerät befindet sich in Betriebsbereitschaft, kein Wärmebedarf vorhanden',
'284':'Die Gasarmatur wird geöffnet, erste Sicherheitszeit',
'270':'Die Geräteelektronik wird hochgefahren',
'204':'Die aktuelle Vorlauftemperatur ist höher als die Soll-Vorlauftemperatur. Der Kessel wird abgeschaltet',
'357':'Entlüftungsfunktion aktiv',
'358':'Blockierschutz für Heizungspumpe und 3-Wege-Ventil aktiv',
'212':'Gradientenüberwachung Heizungsvorlauf hat angesprochen',
'341':'Gradientenbegrenzung: Zu schneller Temperaturanstieg im Heizbetrieb',
'342':'Gradientenbegrenzung: Zu schneller Temperaturanstieg im Warmwasserbetrieb',
'282':'Keine Drehzahlrückmeldung der Heizungspumpe',
'268':'Das Gerät befindet sich im Testmodus',
'276':'Die Temperatur am Vorlauftemperaturfühler ist > 95 °C',
'359':'Die Temperatur am Warmwasser-Temperaturfühler ist zu hoch',
'341':'Gradientenbegrenzung: zu schneller Temperaturanstieg im Heizbetrieb',
'281':'Die Heizungspumpe erzeugt keinen Druck',
'264':'Gebläse ausgefallen.',
'273':'Der Brenner und das Gebläse waren 24 Std. ununterbrochen in Betrieb und werden zur Sicherheitskontrolle für kurze Zeit außer Betrieb genommen',
'224':'Wärmeblock-Temperaturbegrenzer',
'350':'Vorlauftemperaturfühler defekt (Kurzschluss)',
'351':'Vorlauftemperaturfühler defekt (Unterbrechung)',
'227':'Flamme wird nicht erkannt. Nach dem 4. Zündversuch wird aus der blockierenden Störung eine verriegelnde Störung',
'229':'kein Ionisationssignal während des Brennerbetriebs',
'232':'Temperaturwächter AT90 hat ausgelöst',
'290':'Interne Störung',
'217':'Gebläse läuft nicht',
'214':'Das Gebläse wird während der Sicherheitszeit abgeschaltet',
'216':'Gebläse zu langsam',
'215':'Gebläse zu schnell',
'224':'Wärmeblock-Temperaturbegrenzer oder Abgastemperaturbegrenzer hat ausgelöst',
'222':'Vorlauftemperaturfühler defekt (Kurzschluss)',
'223':'Vorlauftemperaturfühler defekt (Unterbrechung)',
'227':'Flamme wird nicht erkannt',
'228':'Obwohl Brenner abgeschaltet ist, wird Flamme erkannt',
'306':'Nach Gasabschaltung: Flamme wird erkannt',
'231':'Netzspannung war unterbrochen.',
'261':'Zeitfehler bei erster Sicherheitszeit',
'280':'Zeitfehler bei Wiederanlaufversuch',
'235':'KIM nicht kompatibel mit Basiscontroller BC25',
'360':'KIM nicht erkannt.',
'230':'Gasarmatur defekt.',
'234':'Anschlusskabel der Gasarmatur oder Gasarmatur oder Basiscontroller BC25 defekt',
'238':'Anschlusskabel der Gasarmatur oder Gasarmatur oder Basiscontroller BC25 defekt',
'233':'KIM defekt',
'259':'KIM oder Logamatic BC25 defekt'
}
%}
{% set state = states('sensor.boiler_service_code_number') %}
{% set message = mapper[state] if state in mapper %}
{{ message }}
entity_id:
- sensor.boiler_service_code_number |
Beta Was this translation helpful? Give feedback.
-
yes, I think the solution with the servicecodenumber will also work.....maybe it's just easier to use a variable that already exists (so you can skip the translation from servicecode to a binary status). I have the same hardware than you have (GB172 / 150L Boiler and RC300) and (you could also use the I think the "mistake", that you made in your first attempt, was that you tried to use the |
Beta Was this translation helpful? Give feedback.
-
Thanks. 👍 You might help me with my second problem. It's only funny that it only occurs at night, even if the conditions are almost the same as the day. My setting Thermostat: {
"datetime": "12:43:03 19.03.2022",
"floordry": "off",
"dampedoutdoortemp": 10.1,
"floordrytemp": 0,
"building": "light",
"minexttemp": -10,
"wwsettemp": 60,
"wwmode": "own_prog",
"wwsettemplow": 45,
"wwcircmode": "own_prog",
"wwchargeduration": 60,
"wwcharge": "off",
"wwextra1": 0,
"wwdisinfecting": "on",
"wwdisinfectday": "we",
"wwdisinfecttime": 180,
"hc1": {
"seltemp": 24,
"climate": "selTemp",
"mode": "auto",
"modetype": "comfort",
"ecotemp": 20,
"manualtemp": 24,
"comforttemp": 24,
"summertemp": 15,
"designtemp": 45,
"offsettemp": 0,
"minflowtemp": 25,
"maxflowtemp": 60,
"roominfluence": 0,
"roominflfactor": 4,
"curroominfl": 0,
"nofrosttemp": 0,
"targetflowtemp": 36,
"heatingtype": "radiator",
"summersetmode": "auto",
"summermode": "off",
"controlmode": "optimized",
"program": "prog_1",
"tempautotemp": 24,
"fastheatup": 0
}
} Boiler settings: {
"heatingactive": "on",
"tapwateractive": "off",
"selflowtemp": 36,
"selburnpow": 100,
"heatingpumpmod": 41,
"outdoortemp": 11.4,
"curflowtemp": 30.5,
"burngas": "on",
"burngas2": "off",
"flamecurr": 17.8,
"heatingpump": "on",
"fanwork": "on",
"ignwork": "off",
"oilpreheat": "off",
"heatingactivated": "on",
"heatingtemp": 60,
"pumpmodmax": 100,
"pumpmodmin": 10,
"pumpdelay": 5,
"burnminperiod": 10,
"burnminpower": 0,
"burnmaxpower": 100,
"boilhyston": -6,
"boilhystoff": 6,
"setflowtemp": 36,
"setburnpow": 100,
"curburnpow": 59,
"burnstarts": 5303,
"burnworkmin": 110619,
"heatworkmin": 100823,
"ubauptime": 406455,
"lastcode": "0Y(276) 24.11.2021 03:51 (0 min)",
"servicecode": "-H",
"servicecodenumber": 200,
"maintenancemessage": "H00",
"maintenance": "date",
"maintenancetime": 6000,
"maintenancedate": "07.07.2023",
"wwsettemp": 57,
"wwseltemp": 57,
"wwtype": "buffer",
"wwcomfort": "eco",
"wwflowtempoffset": 40,
"wwmaxpower": 100,
"wwcircpump": "off",
"wwchargetype": "3-way valve",
"wwhyston": -5,
"wwhystoff": 0,
"wwdisinfectiontemp": 70,
"wwcircmode": "2x3min",
"wwcirc": "off",
"wwcurtemp": 58,
"wwcurtemp2": 58,
"wwcurflow": 0,
"wwstoragetemp2": 58,
"wwactivated": "on",
"wwonetime": "off",
"wwdisinfecting": "off",
"wwcharging": "off",
"wwrecharging": "off",
"wwtempok": "on",
"wwactive": "off",
"ww3wayvalve": "off",
"wwsetpumppower": 0,
"wwstarts": 1088,
"wwworkm": 9796
} |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thank you for your information. 💯 It could be due to the 1C settings, so I have to take a look at the service menu. I have installed pressure (DFRobot SEN0257 Analog Water Pressure Sensor) and temperature sensors (DS18B20 Digital temperature sensor), but the pressure sensors have not been working for a month and therefore I only get information about the heating circuit temperature. Unfortunately, I don't get any information from the EMS-ESP (except for the error messages |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
ohhhh, will be the ESP32 or the DFRobot SEN0257 destroyed ?
i use this one: Details see: https://peter.siebler.at/posts/warmwasser-erfassen/ |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Question
I would like the cost of water heating and determine the heating costs.
I record the electricity consumption, gas consumption and also the hot water consumption via sensors and the data is available.
As I understand it, the heating circuit is disconnecte when the Boiler is heated, so it should be possible to split determining hot water and heating circuit preparation.
I want to calculate
Unfortunately, I can't find a way to do that would be grateful if someone could help me.
Screenshots
Energy Consumption
Gas per hour
Water per hour
Device information
Beta Was this translation helpful? Give feedback.
All reactions