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🔗
| Quality | Meaning | In totals |
|---|---|---|
| current | fresh and plausible | yes |
| stale | older than 3 × the poll interval (at least 10 s; 60 s in the sandbox), or marked questionable by the device | no |
| implausible | power beyond 1.1 × rated, state of charge outside 0–100 %, or marked invalid by the device | no |
| no data | no connection, or no value yet | no |
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.
- Read-only. SunSpec devices are only read (Modbus function code 3); IEC 104 stations receive nothing but the start of data transfer, link tests and general interrogations. There is no code path that writes a register or sends a command.
- Reconnects politely. After a failure each connection waits 1 s, then 2, 4 … up to 60 s, with random jitter, so a failing gateway is never hammered and one device never delays another.
- Bounded. Per asset the daemon keeps the latest values, 15 minutes of recent values and two days of quarter-hour means; values for undeclared IEC 104 addresses are counted and dropped. Live history is lost on restart.
- Honest time. IEC 104 time tags carry no time zone, so the time of reception is used.
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🔗
| Method | Path | Answer |
|---|---|---|
GET | /api/v1/telemetry | Per 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/connections | Every connection with state, last value, counters and last errors |
GET | /api/v1/assets?quality=offline | The asset list filtered by quality now |
Remote clients need a token, as for the portfolio: household power curves are personal data.