FoundryNet / Fields / energy_kwh
Canonical field reference

energy_kwh

Cumulative energy consumption. The consumption-side counterpart to energy_delivered_kwh, kept distinct so a site that both draws and exports does not net the two into a meaningless single number.

Get an API key All canonical fields

Vendor tag table

How vendors spell energy_kwh

Real tag spellings from Forge's vendor packs, as the device or controller emits them. The reason cross-vendor telemetry is hard is visible in a single column.

Vendor / packRaw tag as the device emits it
FanucENERGYKWH(J)
ENERGYKWH_Wh
ENERGYKWH_kW
ENERGY_KWH_J
ENERGYKWH [W]
ENERGYKWH(Wh)
Siemensenergieverbrauch(J)
energieverbrauch(W)
energieverbrauch_Wh
energieverbrauch (J)
energieverbrauch(Wh)
CarrierkWh
EnergyKWH
SungrowDaily PV generation & battery discharge

These spellings come from the vendor packs in Forge's free sandbox image (ghcr.io/foundrynet/forge-sandbox), which is a different build from prod. To see how prod maps a tag, send it to /v1/normalize: the response names the canonical field, the match_type and the confidence.


Unit contract

What Forge guarantees about the value

The canonical field is not just a name. It is a contract about units, sign convention and plausible range, enforced on the way in and re-checked at read time.

SI / canonical unitkWh
Accepted input unitsJ MWh Wh kJ kWh
Converted on ingestJ MWh Wh kJ → kWh
Physics bounds0.0 to 1000000000000.0 kWh
Measurement typecumulative : resets are expected; a decrease is a counter reset, not a negative reading

Normalization

Raw tag in, canonical field out

# Fanuc emits its own spelling; Forge returns the canonical field
curl -s -X POST https://forge.foundrynet.io/v1/normalize \
-H "Authorization: Bearer $FORGE_KEY" \
-H "Content-Type: application/json" \
-d '{"data": {"ENERGYKWH(J)": 0}, "oem": "fanuc"}'
# the response names the canonical field, its match_type and confidence

No mapping table to maintain, and no per-vendor branch in your code. The same request shape works for every OEM in the table above.

# Same thing with no key and no account: the sandbox ships the packs
docker run -p 8000:8000 ghcr.io/foundrynet/forge-sandbox

Where this field appears

Protocols

Transports this field is carried on in the corpus.

BACnet/IP Modbus TCP
Every one of these tag names is someone’s integration project. The Machine Agent, weekly. Read it →
Get the thesis behind this infrastructure: The Machine Agent, weekly.