Skip to content

Add Monitoring of DHW Temperature (MDT) use case#226

Open
andig wants to merge 2 commits into
enbility:devfrom
andig:feat/ma-mdt
Open

Add Monitoring of DHW Temperature (MDT) use case#226
andig wants to merge 2 commits into
enbility:devfrom
andig:feat/ma-mdt

Conversation

@andig

@andig andig commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Adds the ma/mdt use case: a Monitoring Appliance reading a DHW circuit's domestic hot water temperature, per the EEBus UC TS Monitoring of DHW Temperature v1.0.0 (monitoringOfDhwTemperature, actors DHW Circuit ↔ Monitoring Appliance, scenario 1, Measurement feature, scope dhwTemperature).

Replaces #123 (closed) and implements its review feedback:

  • Value state handling — non-normal readings (outOfRange / error) are ignored and reported as ErrDataInvalid, as required by the UC spec ([MDT-005]).
  • Unit handlingTemperature(entity, unit) now takes the requested unit (degC / degF / K) and converts from the unit announced in the measurement description, instead of returning a bare value in an unknown unit.

@sthelen-enqs this would be nice with OHPCF.

🤖 Generated with Claude Code

andig added 2 commits June 25, 2026 10:45
Adds the ma/mdt use case: a Monitoring Appliance reading a DHW circuit's
domestic hot water temperature. Replaces the closed enbility#123 and implements its
review feedback:

- value state handling: non-normal (out of range / erroneous) readings are
  ignored and reported as ErrDataInvalid
- unit handling: Temperature() takes the requested unit (degC/degF/K) and
  converts from the unit announced in the measurement description
The degC->degF and degC->K request cases duplicated Test_convertTemperature;
the announced-degF->degC case still covers the description-unit conversion path.
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.

1 participant