Skip to content

[EDGE+UI] ControllerIOHeatingElement added optional Water Temperature control, UI changes for HeatingElement - #4082

Open
vision1727 wants to merge 13 commits into
OpenEMS:developfrom
vision1727:openems_ctrlIoHeatingElementwithTemp
Open

vision1727 wants to merge 13 commits into
OpenEMS:developfrom
vision1727:openems_ctrlIoHeatingElementwithTemp

Conversation

@vision1727

Copy link
Copy Markdown
Contributor

Summary

Added an optional water temperature control to "Controller.IO.HeatingElement", because during the time with excess power and when pellet heating is turned off, my wife also wants to have warm water :-)

It can be enabled in the config and requires a 'Thermometer'.
If Thermometer is disabled, behavior is unchanged.

Changes

  • New config hasWaterThermometer (default false) and waterThermometer_id. The Thermometer is an optional reference using @GenerateTargetsFromReferences, like meter.
  • Water temperature limits in °C:
    • lowWaterTemperature: below this temperature the heating element heats with Level 3, even without excess power.
    • highWaterTemperature: above this temperature the heating element is switched off, even with excess power.
    • maxWaterTemperature: safety limit, always switched off above.
  • sensorErrorLevel: Level (0-3) that is applied if the Thermometer is not available. Level 0 switches the heating element off.
  • Optional Legionella protection: if the water was not kept at or above legionellenWaterTemperature for minLegionellenTime hours within legionellenInterval days, the heating element heats until it was held long enough.
    • The heating element is switched off above the Legionella temperature + 2 K.
    • If the temperature is not held within legionellenMaxHeatingTime hours, the heating is aborted and the Channel LegionellenProtectionFailed is set. It is retried after one day.
  • Manual On respects the limits and the sensor error level. Manual Off is unchanged.
  • New Channels: WaterActual, WaterTarget (both in °C), WaterThermometerNotAvailable, LegionellenProtectionFailed.
  • The configuration is validated on activation (low < high <= max, Legionella settings).
  • bnd.bnd: added io.openems.edge.thermometer.api.
  • readme.adoc: documented the temperature control.

Notes

  • The limits max, high and the sensor error level are applied immediately and do not wait for minimumSwitchingTime. Heating because of low or the Legionella protection has priority over Work-Mode and schedule, but respects minimumSwitchingTime.
  • The Legionella countdown is kept in memory only; after a restart of the Edge the interval starts again.

Tests

  • New ControllerHeatingElementImplTest11: behavior without Thermometer, temperature limits, sensor error for all Levels, Legionella protection (hold time, temperature band, abort and retry) and Manual On.
  • MyConfig extended with the new properties (defaults keep the existing tests unchanged).
  • The old version of this code was used for a year and was running well. The code was only updated to current build of OpenEMS and a test file was written.

@codecov

codecov Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 76.97842% with 64 lines in your changes missing coverage. Please review.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #4082      +/-   ##
=============================================
+ Coverage      57.15%   57.18%   +0.03%     
- Complexity     22095    22142      +47     
=============================================
  Files           4176     4176              
  Lines         190779   191050     +271     
  Branches       16290    16364      +74     
=============================================
+ Hits          109027   109230     +203     
- Misses         77306    77352      +46     
- Partials        4446     4468      +22     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sfeilmeier

Copy link
Copy Markdown
Contributor

@alexbelkedev: Could you please check if this is compatible with our developments?

@alexbelkedev

Copy link
Copy Markdown
Contributor

@alexbelkedev: Could you please check if this is compatible with our developments?

@sfeilmeier I've checked it with our developments. It looks compatible to me.

@vision1727

Copy link
Copy Markdown
Contributor Author

updatet to java25 and rechecked

…ich the heatingelemt tries to reach the temperature
@vision1727

Copy link
Copy Markdown
Contributor Author

added a safety feature which limits the time for legionella heating time

Add the UI for the optional water temperature control of
Controller IO Heating Element:

- Settings: toggle for the temperature sensor, sensor selection,
  level on sensor failure, low/high/max temperature and the
  Legionella protection (temperature, interval, hold time,
  max. heating time); fields are hidden without a sensor
- Live: show actual and target water temperature plus warnings
  for unavailable sensor and failed Legionella protection in
  the flat widget, the home view and the settings
- History: show actual and target water temperature in the
  line chart
- Add translations (cz, de, en, es, fr, ja, lt, nl, sv)
…atingElementwithTemp

# Conflicts:
#	io.openems.edge.controller.io.heatingelement/src/io/openems/edge/controller/io/heatingelement/ControllerIoHeatingElement.java
#	io.openems.edge.controller.io.heatingelement/src/io/openems/edge/controller/io/heatingelement/ControllerIoHeatingElementImpl.java
#	io.openems.edge.controller.io.heatingelement/src/io/openems/edge/controller/io/heatingelement/Utils.java
#	io.openems.edge.controller.io.heatingelement/test/io/openems/edge/controller/io/heatingelement/MyConfig.java
@vision1727

Copy link
Copy Markdown
Contributor Author

@sfeilmeier and @alexbelkedev please review.

updatet the pr to latest development branch, including the 6 stage heating.

what's new: - latest base
- added temperature to the heating element in the ui and in the history of the heating element.
- if temperature sensor is enabled all temp settings can be made in the ui.

image image image

@vision1727 vision1727 changed the title [EDGE] ControllerIOHeatingElement added optional Water Temperature control [EDGE+UI] ControllerIOHeatingElement added optional Water Temperature control, UI changes for HeatingElement Nov 7, 2026
…atingElementwithTemp

# Conflicts:
#	ui/src/app/edge/live/Controller/Io/HeatingElement/flat/flat.ts
#	ui/src/app/edge/live/Controller/Io/HeatingElement/history/chart/chart.ts
#	ui/src/app/edge/live/Controller/Io/HeatingElement/shared/shared.ts
#	ui/src/assets/i18n/cz.json
#	ui/src/assets/i18n/de.json
#	ui/src/assets/i18n/en.json
#	ui/src/assets/i18n/es.json
#	ui/src/assets/i18n/fr.json
#	ui/src/assets/i18n/ja.json
#	ui/src/assets/i18n/lt.json
#	ui/src/assets/i18n/nl.json
#	ui/src/assets/i18n/sv.json
…atingElementwithTemp

# Conflicts:
#	io.openems.edge.controller.io.heatingelement/src/io/openems/edge/controller/io/heatingelement/ControllerIoHeatingElementImpl.java
#	ui/src/assets/i18n/cz.json
#	ui/src/assets/i18n/de.json
#	ui/src/assets/i18n/en.json
#	ui/src/assets/i18n/es.json
#	ui/src/assets/i18n/fr.json
#	ui/src/assets/i18n/ja.json
#	ui/src/assets/i18n/lt.json
#	ui/src/assets/i18n/nl.json
#	ui/src/assets/i18n/sv.json
@vision1727

Copy link
Copy Markdown
Contributor Author

Hi, I updated the branch to the latest develop, conflicts are solved and checks are green.

I also added that the Legionella time is now saved and restored after a restart.

Could someone take a look when there is time? I am also looking for help to check the translations (cz, es, fr, ja, lt, nl, sv). Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants