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:
  1. Use FlatPeak API to find time periods when the energy price is above the daily average.
  2. Pre-heat or pre-cool before those high-cost periods.
  3. 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:

  1. Submit consumed energy to the submit-interval-meter-records endpoint with tariff_type = IMPORT and direction = IMPORT.
  2. Use calculate-energy-cost-by-time-interval to fetch costs for the IMPORT direction and present them to the customer.

Implementation