Skip to content

Fix Single threshold UI unit labels#3515

Merged
sfeilmeier merged 3 commits intoOpenEMS:developfrom
sthhs:SingleThresholdUIUnit
Feb 6, 2026
Merged

Fix Single threshold UI unit labels#3515
sfeilmeier merged 3 commits intoOpenEMS:developfrom
sthhs:SingleThresholdUIUnit

Conversation

@sthhs
Copy link
Copy Markdown
Contributor

@sthhs sthhs commented Jan 11, 2026

In the modal window of the ChannelSingleThreshold controller some units are hard coded to "W", but it's possible to use input channels with other units.
Now the labels are built with dynamic expressions that are using the input channel unit.
Since the SI-Unit for temperature is °C and not C the corresponding changes have been made in io.openems.common/src/io/openems/common/channel/Unit.java‎.

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #3515      +/-   ##
=============================================
+ Coverage      59.61%   59.62%   +0.01%     
  Complexity       105      105              
=============================================
  Files           3004     3006       +2     
  Lines         130410   130472      +62     
  Branches        9637     9639       +2     
=============================================
+ Hits           77737    77778      +41     
- Misses         49764    49783      +19     
- Partials        2909     2911       +2     
🚀 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.

@sthhs
Copy link
Copy Markdown
Contributor Author

sthhs commented Jan 11, 2026

Before:
Bildschirmfoto 2026-01-11 um 10 15 24

Now:
Bildschirmfoto 2026-01-10 um 15 55 07

Bildschirmfoto 2026-01-10 um 15 48 02 Bildschirmfoto 2026-01-10 um 15 28 52 Bildschirmfoto 2026-01-10 um 15 53 31

@sjjh
Copy link
Copy Markdown
Contributor

sjjh commented Jan 23, 2026

@lukasrgr anything you need from our side to be able to review?

Copy link
Copy Markdown
Contributor

@lukasrgr lukasrgr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx for your contribution 🚀

@sjjh
Copy link
Copy Markdown
Contributor

sjjh commented Jan 26, 2026

Ich denke @sfeilmeier ready to launch (the merge process) ;)

@lukasrgr lukasrgr requested a review from sfeilmeier February 6, 2026 08:55
@sfeilmeier sfeilmeier merged commit f06255c into OpenEMS:develop Feb 6, 2026
7 checks passed
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.

4 participants