Flatpeak supports instant energy cost (for imports) and value (for exports) calculation at both Device and Location levels (i.e. property address).Use device-level reporting when calculating costs for a specific device — this allows additional devices to be added to the same location later without losing historical data (recommended).To implement:
1
Create device identifier
Call create-a-device endpoint; add you internal device ID for cross-reference.
Store the returned device_id permanently in your system.
This step only needs to be performed once per device.
If a PV system is installed at the location and you have access to its production records, submit them as they arrive. This is particularly important if you use Solar Generation Forecasts, as it ensures accurate generation data for cost calculations.Submitted records are applied immediately in all energy cost calculations. The per-kWh cost is assumed to be zero unless the customer uses the Connect to set a local generation price.
To estimate energy cost without storing the data, pass the non_persistent=true in your request.
This lets you model scenarios without affecting actual meter data or triggering downstream reporting.