Without load shifting: usage = 96 kWh → cost = €49. With load shifting: usage = 98 kWh → cost = €34

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-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