Skip to content

ems 0.12.0

Choose a tag to compare

@github-actions github-actions released this 30 Nov 22:49
· 2 commits to main since this release

Breaking changes

  • ems_flex::Session runs on s2-kit's RmSession, which owns the handshake, acknowledgements, validation and the execution-time schedule. open, on_text and on_message take now; poll_transmit returns encoded Outgoing frames; poll_timeout, on_timeout and transport_closed are new; SessionState and CloseReason are s2-kit's; SessionEvent::Refused carries the diagnostic and SessionEvent::Noted reports protocol trouble.
  • ems_flex::envelope_interval and envelope_command take now. envelope_now is gone; envelope_steps returns every step with its interval.
  • ems_drv::mbus::HeatMeter drives mbus-kit's Readout: readout(), then delivered_wh over every telegram or explain(outcome). requests is gone.
  • SlotPlan::grid: the net exchange the plan expects at the connection point (import positive, serde default None). ems-optimizer sets it.

Added

  • hemsd benchmark replays a SMART-HEMS-Benchmark scenario through the gateway's planner and compares grid only, PV only, self-consumption, ems and, with --perfect-foresight, the bound. It infers and reports the series unit and UTC offset, refuses inconsistent series, and --dispatch writes ems's quarter hours.
  • ems_forecast::Nowcast blends the last hour's clear-sky index into the next hours of the PV forecast. The gateway, the reference days and hemsd benchmark plan with it.
  • The S2 Resource Manager offers S2 JSON v1.0.0 beside 0.0.2-beta, answers an undecodable frame with a ReceptionStatus, and refuses an unoffered control type (S2-RMD-001) while keeping the session open.
  • The heat meter repeats an unanswered request up to three times and follows up to four telegrams.
  • ems-drv reads SunSpec model 124's ChaState as a battery's state of charge where model 802 is absent; a device with 124 and no inverter model is a battery.
  • ems-drv re-exports the ems-core and time types its API uses.
  • ems_drv::testing::FakeSunSpec (feature testing), a SunSpec device double that records every function code.

Changed

  • The arbiter holds a battery's tracked plan energy to the plan's grid figure: a charge planned into a surplus does not buy the shortfall at that slot's price, and a discharge planned for the house does not export. The rule only narrows what tracking asks for; the guard bounds the result.
  • hemsd starts a scheduled S2 instruction when it is due rather than at the next report tick.
  • ems-core, ems-grid and ems-drv declare MSRV 1.89, checked by the drivers CI job.
  • s2-kit 0.8 and mbus-kit 0.4.

Fixed

  • A PEBC envelope with several elements was held at its first element. hemsd follows it step by step within the instruction's lease and stops bounding the asset after the last step.
  • An appliance's S2 status could go out as EXECUTING without progress (S2-PPBC-005).
  • A wall clock that stepped back stalled every Modbus driver for the length of the step and kept a silent device's link Up. The drivers rebase their deadlines on a step, and hemsd wakes each Modbus driver at least once a second.
  • hemsd retried a TCP device that accepts a connection and closes it at once every second, for ever. The backoff resets only after the device has sent something.