OpenAmpere

Device knowledge

These pages are technical. They collect what the OpenAmpere contributors have found out about the devices, each fact with its source and how sure it is. They show the latest state of development, which can be ahead of the version you have installed. They are not official manufacturer information. You don't need them to set up OpenAmpere; the app explains everything you need.

Netze BW meter portal

Not official information. Compiled by the OpenAmpere contributors; can be incomplete or wrong. No affiliation with Netze BW, not legal advice. See Device knowledge.

Applies to: the customer portal of the grid operator Netze BW (Baden-Württemberg) and the smart meters ("intelligentes Messsystem") it lists · Sold as: – · OpenAmpere: grid meter provider netze_bw, src/openampere/gridmeter/netze_bw.py · Support: reading the meter's quarter-hour values (import and feed-in) · Confirmed on a real device: partly (portal behaviour seen on real accounts in #67; OpenAmpere's own import not yet tested against the portal by the maintainers)

Summary

Behaviour

FactStatusSource
The portal has no documented API. Its web app reads data from its own backend under /bff after a login through Auth0 (login.netze-bw.de) with e-mail and password.derivedcygnusb/ha-netze-bw; #60, #63
The internal interface lists the installations and gives measurements per meter for consumption and feed-in, as daily or quarter-hour values.derivedcygnusb/ha-netze-bw; #60
A login with two-factor authentication or a captcha cannot be done by a program.derived#60
Grid import (OBIS 1.8.0) and feed-in (2.8.0) of one smart meter are two installations with their own ids and the same meter number. Merging them by meter number loses one direction.confirmed#67, #68
Only active installations of type "IMS" (intelligentes Messsystem) have quarter-hour values.confirmed#67
The portal session can still be valid (/bff/auth/user answers 200) while the meter values answer 401. A complete new login helps.confirmed#67, #68
Values exist only from the installation of the smart meter on.confirmed#67
A day is published hours after it ended, at no fixed time, sometimes only in the afternoon of the next day or later. Until then the overview shows 0 kWh for it.confirmed#67, #68
A complete day has 96 quarter hours, 92 or 100 on the days the clock changes.confirmed#67, #68
CSV download: separated by ;, columns "Datum" (dd.mm.yyyy) and "Uhrzeit" (hh:mm) in German local time. The first row is the meter reading at the start; every further row is the energy in kWh (decimal comma) of the quarter hour that ends at its time.confirmed#67 (a working importer shared by a user)

Decisions in OpenAmpere

DecisionWhyIssue/PR
Fetch every 3 hours; after an error try again after an hour.The operator publishes the previous day at no fixed time.#63, #68
Read a week of quarter hours per request and walk back week by week until the meter's installation (at most about 400 days); the last 7 days are read again.Covers the running billing year; the operator may still correct recent days.#63, #68
Use only complete days; a day drops out again if a later answer is incomplete. A missing value stays unknown, never 0.Half-published days would look like low consumption.#68
Keep import and feed-in apart by the installation's own id, not by meter number.Both directions share the meter number.#68
On a 401 for meter values, drop the session and log in from scratch (once per request).The session check alone is not reliable.#68
After the portal refuses the login, do not retry by itself until the owner changes the login data.Repeated failed logins could lock the owner's account.#63, #68
Send an honest user agent that names OpenAmpere instead of a desktop browser string.Pretending to be a browser can break the portal's terms of use.#174, #180
Take only facts from other projects, no code.License and own words; credited in NOTICE.#63

Open questions

Sources

View and improve this page on GitHub