Schedule energy
Create a schedule by setting energy use duration
If the only input available is the duration your device needs to consume or can export energy, call the schedule-by-duration endpoint.
Flatpeak uses the Location’s tariff and, if a PV array is present, the local solar generation forecast to identify the lowest (or highest) cost time slots within the specified period.
In the example below, you request the lowest-priced two-hour window within a given timeframe:

