Repository navigation
Releases
Releases · hupe1980/ems
ems 0.12.0
Breaking changes
ems_flex::Sessionruns on s2-kit'sRmSession, which owns the handshake, acknowledgements, validation and the execution-time schedule.open,on_textandon_messagetakenow;poll_transmitreturns encodedOutgoingframes;poll_timeout,on_timeoutandtransport_closedare new;SessionStateandCloseReasonare s2-kit's;SessionEvent::Refusedcarries the diagnostic andSessionEvent::Notedreports protocol trouble.ems_flex::envelope_intervalandenvelope_commandtakenow.envelope_nowis gone;envelope_stepsreturns every step with its interval.ems_drv::mbus::HeatMeterdrives mbus-kit'sReadout:readout(), thendelivered_whover every telegram orexplain(outcome).requestsis gone.SlotPlan::grid: the net exchange the plan expects at the connection point (import positive, serde defaultNone).ems-optimizersets it.
Added
hemsd benchmarkreplays 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--dispatchwrites ems's quarter hours.ems_forecast::Nowcastblends the last hour's clear-sky index into the next hours of the PV forecast. The gateway, the reference days andhemsd benchmarkplan with it.- The S2 Resource Manager offers S2 JSON
v1.0.0beside0.0.2-beta, answers an undecodable frame with aReceptionStatus, 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-drvreads SunSpec model 124'sChaStateas a battery's state of charge where model 802 is absent; a device with 124 and no inverter model is a battery.ems-drvre-exports theems-coreandtimetypes its API uses.ems_drv::testing::FakeSunSpec(featuretesting), 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-gridandems-drvdeclare MSRV 1.89, checked by thedriversCI 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
EXECUTINGwithoutprogress(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.
ems 0.11.0
Breaking changes
ems-serviceis no longer published. It is the daemon shell, and only the EMS daemons use it. Versions up to 0.10.0 stay on crates.io.ems-eventsis now the catalogue only. It has no dependencies with default features, isno_stdand declares MSRV 1.85. The CloudEvents envelope and Standard Webhooks signing moved toems_service::{envelope, webhook}. There is no re-export.- Catalogue types are
ems_events::EventTypevalues that only the catalogue can construct. Each one carries itsdataschemaURI, data classification and GDPR category.is_knownis gone; usestr::parse::<EventType>(). - The catalogue lists the 12 types EMS sends. The 18 types that had no sender are removed.
cargo xtask check-eventsnow fails on a catalogued type with no sender outside integration tests. - Every event now carries
partitionkey(the site),dataclassification, and for personal datadataregulation: GDPRanddatacategory. These are taken from the catalogue.dataschemais required, andtimeis UTC. Receivers refuse a missing or unrecognised value, a different schema and a missing partition key.obsdalso refuses a partition key that is not the signing site's. schemas/events/publishes a closed schema for all 12 types, including the fleet reportsde.ems.site.day.reportedandde.ems.site.departure.rehearsed.platform.tomllists them all.
Added
- Every MCP tool declares its autonomy level in
_meta["x-mcp"].level(the stack's AUT-1), with areadOnlyHintthat agrees. All 20 tools acrossagentd,fleetd,forecastd,histd,obsdandtariffdareread, and there is noactlevel. A daemon refuses to mount its MCP surface when a tool declares no level or a contradicting hint. The conformance probe checks the level of every listed tool.
Security
curve25519-dalek5.1.0 (RUSTSEC-2026-0620, the AVX-512 scalar multiplication backend).
Changed
AGENTS.mdandSECURITY.mdat the repository root: how to build and test, the stack rules an agent follows, what it must never touch, and how to report a vulnerability.opcua-kitandmeterstoreare required by caret rather than exact version.eebus0.16. A § 14a or § 9 limit reaches the guard as the exact decimal the Energy Guard wrote: 4200.5 W stays 4200.5 W, with nof64rounding on the way in. Logged limit values print exactly. Partial SPINE notifications are merged onto the driver's own snapshot as before. Disconnect handling is unchanged, because the Controllable System's failsafe runs off the stopped heartbeat.s2-kit0.7. The S2 session, descriptions and instructions are unchanged. ems already reads a3_PHASE_SYMMETRICvalue as the total over three phases, which is how s2-kit now defines it (S2 erratum E32). ems uses neitherExplanation::electric_powernorSteps, whose meaning changed.metering0.29,meterstore0.21 andocpp-kit0.9. metering and meterstore moved fromtimetojiff. ems still speakstime, andems_core::calendaris the single place where instants and dates convert between the two. The conversion is exact to the nanosecond.- The § 14a minimum power the guard grants is now whole watts rounded up, because it is a guaranteed minimum
[BK6-22-300 A1 4.5]: 0.4 × 20.001 kW is 8 000.4 W and grants 8 001 W, never 8 000. - Energy-sharing credits use
metering's exact intermediates for each quarter hour and its window, with the quantity rounding (each nominal share cut to six decimals, then capped at consumption). - OCPP instants reach the departure evidence exactly. They were truncated to whole seconds before.
- The optional industrial OpenADR simulation uses
openadr0.11, required by caret. Report values are exact decimals: a fractional kWh reading such as 285.001 reads back exactly, with no arbitrary-precision JSON needed. The simulation usesopenadr::model::Decimaland no longer depends onrust_decimaldirectly. Its receipts are unchanged.
ems 0.10.0
Breaking changes
- Gateway and collector webhook keys must use
whsec_followed by standard Base64 encoding 24–64 random bytes. Replace literal keys on both ends and removewebhook_tolerance_s. The Standard Webhooks SDK enforces a five-minute window. - The fleet update schema requires a fresh development database and site enrolment.
Added
- Household Setup commissions SunSpec model 203 meters over RS-485 and reads cumulative thermal Wh from a wired M-Bus heat meter. Setup and doctor flag silent, unexpected and unusable replies.
- Industrial sites can commission a pinned OPC UA import register and compare exact Wh against independent quarter-hour closes in JSON or offline HTML.
- The operator desk shows up to 90 days of import and export, gateway freshness and staged update results. Households can inspect missing days, peak readings and EV departure receipts.
hemsd winter-dayfollows storage, heating and EV charging across a metered winter day.house --keep-historyretains the gateway ledger andsimulate --site-fromreuses the installed inventory.- Releases include gateway and tariff OCI images, architecture-specific conformance receipts, and ten downloadable CloudEvents schemas.
just interfacesexercises REST, CloudEvents, signed webhooks and MCP.
Changed
- Local power history uses Chronix 0.11 and reopens 0.10 directories in place. On Chronix 0.9, export historical readings before configuring a fresh series directory. Keep the separate redb ledger.
- The wired heat-meter driver uses mbus-kit 0.2.0. Gateway events identify their versioned payload schema in
dataschema.
Fixed
- Commissioning keeps the language switch and meter identity within a 320-pixel viewport.
- Gateway sign-in restores the requested view. Losing access to a departure receipt preserves visible energy history.
- EV planning accounts for midnight departures and complete charging quarters. The gateway checks write acknowledgements, and the simulated outlet accounts for partial-interval charging.
- A full heat-pump request permits full output. The tank distinguishes unmet hot-water demand from standing losses.
hemsd simulate --json --storekeeps diagnostics on stderr. Enabling the example levy or Modul 3 tables preserves the feed-in rate and standing charge.
ems 0.9.0
Added
- Households can sign in through OIDC to compare 7 or 30 calendar days of import, export and generation. The portal distinguishes missing reports from measured zeroes and shows the latest simulated EV departure receipt.
- Operators can search and filter the fleet desk, check gateway and feeder freshness independently and load one site's check-in history.
- The building simulator compares two OCPP charging stations with a KNX feeder meter and reserves heating capacity using BACnet/IP zone readings. Its replays cover station reconnects, sensor faults and incomplete tenant readings.
hemsd ev-departurerehearses an OCPP charging interruption and reconciles outlet delivery with SunSpec whole-house import.hemsd house --run --manage-storageexercises battery setpoints, measured AC power and timed release.cemsd reconcile --format htmlproduces an offline interval review with links to meter exceptions and explicit offsets for the repeated Berlin hour.
Changed
- Household cold starts use a project-owned synthetic demand profile in place of the bundled BDEW H25 table.
- Day and Month show savings only for comparable service and expose comparison coverage. Daily bills require a unique priced reading for every quarter. Setup shows the signed unit price and UTC offset for the active contract.
- SunSpec meters of types 201–204 report import and export. The driver checks write acknowledgements and rediscovers inverter controls after reconnecting. Gateway readiness follows the Steuerbox connection.
ems 0.8.0
EMS 0.8.0 ships three local edge daemons for homes, buildings and industrial sites on the German grid.
- Home ·
hemsdsupports browser commissioning, tariff verification and quarter-hour power history. Plan previews the cost of changing a household goal. - Building ·
bemsdreplays a charging reduction across two simulated OCPP stations and compares community electricity allocations. - Industrial ·
cemsdcompares battery dispatch times and reconciles meter traces. The Linux archive includes a sample trace. Run./cemsd reconcile examples/shift-trace.jsonafter extraction.
Upgrading household history requires exporting the Chronix 0.9 tier and starting a fresh Chronix directory. Keep the separate redb store. The changelog covers the environment variable, historian and API changes. 0.8.0 changelog
Download the archive for your daemon and Linux architecture below. SHA256SUMS covers all six archives and three CycloneDX inventories. You can also try both scenarios in a browser. Industrial peak challenge · Household solar charging
ems 0.7.0
hems 0.6.0
hems 0.5.0
hems 0.4.0
hems 0.3.0
Full Changelog: https://github.com/hupe1980/hems/commits/v0.3.0