flexpool

Telemetry

What every asset does now: simulated in the sandbox, read from SunSpec and IEC 104 devices in operation — read-only, with quality you can trust.

flexpool knows each asset's power (kW, feed-in and discharge positive, consumption and charge negative) and, for batteries, its state of charge (%). Every value carries a quality, and every total says how many assets it includes.

Quality🔗

QualityMeaningIn totals
currentfresh and plausibleyes
staleolder than 3 × the poll interval (at least 10 s; 60 s in the sandbox), or marked questionable by the deviceno
implausiblepower beyond 1.1 × rated, state of charge outside 0–100 %, or marked invalid by the deviceno
no datano connection, or no value yetno

Values age into stale by themselves: nothing has to write them again for the desk to stop trusting them. The desk shows quality as a word and an icon, never by colour alone.

In the sandbox🔗

In scenario mode every asset of the portfolio reports simulated values on the test clock — PV follows the sun and shared clouds, batteries charge at midday and discharge in the evening, heat pumps and wallboxes draw power. The values are a pure function of the asset, the scenario's seed and the time: replaying a day twice gives the same telemetry, and nothing after the test clock is ever shown. Scenario files can disturb assets — see Sandbox and scenarios.

Real devices🔗

Declare devices in edge.toml next to portfolio.toml. flexpool portfolio check checks it with the portfolio and names every mistake with its line; a broken file stops the daemon.

[[sunspec]]                     # SunSpec over Modbus TCP: power and state of charge (model 802)
id = "bess-hamburg-1-inverter"
asset = "bess-hamburg-1"
host = "10.20.0.11"
port = 502
unit = 1
poll_secs = 5

[[iec104]]                      # a plant controller over IEC 60870-5-104
id = "park-nord-rtu"
host = "10.30.0.5"
port = 2404
common_address = 1
poll_secs = 60                  # general interrogation interval
points = [
  { ioa = 3001, asset = "pv-nord-1", quantity = "power", scale = 1000.0 },   # MW → kW
]

A complete example lives in examples/edge/. flexpoold reads devices only when no scenario is configured; in the sandbox the simulator stands in for every device.

The desk's Integrationen view (g i) shows every connection: state and since when, the age of the last value, counters and the last ten errors.

API🔗

MethodPathAnswer
GET/api/v1/telemetryPer pool and in total: feed-in, consumption, net, stored energy, assets by quality
GET/api/v1/assets/{id}/telemetry?day=Latest values with quality and age, the day's quarter hours up to now, the last 15 minutes
GET/api/v1/connectionsEvery connection with state, last value, counters and last errors
GET/api/v1/assets?quality=offlineThe asset list filtered by quality now

Remote clients need a token, as for the portfolio: household power curves are personal data.

Edit this page