
Without optimisation: 40 kWh → €6.50. With cost/time optimisation: 38 kWh → €3.78
Design
To optimise the operation of an HVAC system by energy cost:
Once the customer completes the Connect flow, or if you imported their tariff:- Use Flatpeak API to find time periods when the energy price is above the daily average.
- Pre-heat or pre-cool before those high-cost periods.
- Reduce consumption during high-cost periods until either:
- the maximum temperature tolerance is reached, or
- the energy price falls back down.
To display energy cost:
- Submit consumed energy to the submit-interval-meter-records endpoint with tariff_type = IMPORT and direction = IMPORT.
- Use calculate-energy-cost-by-time-interval to fetch costs for the IMPORT direction and present them to the customer.
Implementation
Find periods if high energy price
Find periods if high energy price
To detect high-cost periods, use the schedules-by-price-limit endpoint.
- Request a 12 or 24 hour window and set segment=HIGH with relative=0.25 to capture the top 25% periods of high electriciy price.
- Run this periodically to generate or update the next day’s operating schedule.
Program your system
Program your system
Use the data obtained in the previous steps to program your system to minimise energy consumption during high cost periods identified in step 1 and restore energy use during lwo cost periods identified in step 2.Actions you may consider:
Asset Type | High Cost | Low Cost |
---|---|---|
Space Heating / Heat-Pumps | Lower flow temperature Widen deadband range Lower set point temperature Turn off boost function Ensure correct weather compensation | Restore deadband range to normal Reset flow temperature Restore set point temperature Consider pre-heating before high cost periods |
Air Conditioning | Increase refrigerant temperature Widen deadband range Raise set point temperature Turn off boost function | Restore deadband range to normal Reset refrigerant temperature Restore set point temperature Consider pre-cooling before high cost periods |
Water Heating | Do not heat (ECO mode if must) Avoid automatically reheating after water use | Heat to target temperature Perform bacterial heating cycle (if due) |
Also consider “pre-cooling” or “pre-heating” before high cost periods to maximise savings
Submit energy consumption to Flatpeak
Submit energy consumption to Flatpeak
Submit electricity meter readings from your system to Flatpeak API:
If your system logs meter records as intervals, call the submit-interval-meter-records endpoint.
If your system can differentiate between grid-supplied and locally generated energy (e.g. solar), set “tariff_rate”: “LOCAL” when submitting records for solar generation. This tells Flatpeak to treat the energy as zero-cost during cost calculations.
Display energy cost to your customer
Display energy cost to your customer
To display the energy cost used by your system, call the calculate-energy-cost-by-time-interval endpoint.You can request:The
- Raw (unaggregated) costs for custom processing, or
- Pre-aggregated totals by DAY or MONTH.
tariff.value
in the response is the total energy cost — ready to display directly to the customer.