Skip to content

Book Cheap Hours With Flows ​

Use this pattern when you want to run a device for a fixed number of cheap hours before a chosen time, without using a target-based Smart task.

The common EV example is: "Allow charging during the 5 cheapest hours before 07:00, but still let PELS reduce the charger if the home gets close to the hard cap."

Homey Flow that enables capacity control during cheap hours and disables it outside those hoursFigure 1. One Flow can check the cheapest-hour condition every hour, enable PELS control when the condition is true, and disable control plus stop charging when it is false.

When to Use This Instead of a Smart Task ​

Use Flow-booked hours when:

  • You know how many hours you want.
  • You want the cheapest hours in a fixed window.
  • You prefer to own the schedule in Homey Flows.
  • You do not need PELS to calculate a battery or temperature target.

Use a Smart task instead when you want PELS to plan from a target and ready-by time.

What You Are Building ​

You will create two Flows:

  1. A Flow that enables Power-limit control in a selected hour. If the device uses Leave off until turned on again, the Flow also needs to turn it on when the booked window opens.
  2. A Flow that disables Power-limit control outside those selected hours and tells the device app to stop or turn off.

The device stays managed by PELS. Your Flow decides when it may run. During allowed hours, PELS can limit its power to help protect the hard cap.

This pattern does not create a Smart task plan or history entry. The Flow owns the schedule; PELS owns power-limit decisions while the device is allowed to run.

Step 1: Configure the Device ​

In More -> Apps -> PELS -> Settings -> Devices:

  1. Enable Managed by PELS for the device.
  2. Configure the device's normal PELS control setup.
  3. Turn Power-limit control off as the default if the device should only run during booked hours.

For an EV charger, also complete Configure an EV Charger so PELS can control the charging current.

Step 2: Enable Control During the Cheapest Hours ​

Create a Flow like this:

Flow partCard
WhenPELS: Current price is one of the lowest before a time
ThenPELS: Enable power-limit control for device

If Leave off until turned on again is enabled and the previous window ended by turning the device off, add a device-on action at the start of the next booked window. PELS can then limit and resume it while that window is open.

Card arguments:

ArgumentExampleMeaning
Hours12Look back over the 12-hour window before the end hour.
Lowest count5Match the 5 cheapest hours in that window.
End hour7The window ends at 07:00 local time.

With those values, PELS matches the 5 cheapest hours in the 12 hours before 07:00.

The trigger includes ties at the cutoff price. That means you may get more than the selected count when several hours have the same price.

Step 3: Disable Control and Stop the Device Outside the Booked Hours ​

Create a second Flow that runs when the hour changes and the same condition is false.

One common shape is:

Flow partCard
WhenEvery hour
AndPELS: Current price is one of the lowest before a time is false
ThenPELS: Disable power-limit control for device
ThenCharger, heater, or device app: stop charging, turn off, or set output to idle

Use the same Hours, Lowest count, and End hour values as the enabling Flow.

Disabling Power-limit control stops PELS from starting the device when power is available. The separate stop action ends a run when the booked hour ends. If the device keeps running or starts again while Power-limit control is off, its draw still counts toward the hard cap and PELS cannot limit it to protect that cap.

Example: EV Charging 5 Cheap Hours Before 07:00 ​

Recommended device setup:

  • EV charger is Managed by PELS.
  • EV charger uses the Automatic control model where offered, otherwise EV 1-phase or EV 3-phase.
  • Current control is configured for the charger: built-in control for a supported charger, otherwise the EV charger current (A) Flow tag.
  • Power-limit control is off by default.

Flows:

PurposeCards
Allow charging in selected hoursCurrent price is one of the lowest before a time with Hours = 12, Lowest count = 5, End hour = 7 -> Enable power-limit control for device
Start a charger held off by Leave off until turned on againAt the start of the booked window, use the charger app’s start action.
Stop allowing charging outside selected hoursHourly trigger + same lowest-price condition is false -> Disable power-limit control for device -> charger app: stop charging

During selected hours, PELS can start or increase charging only when the hard cap and priority rules allow it. Outside those hours, the closing Flow stops the charger and Power-limit control stays off.

Example: Water Heater 3 Cheap Hours Before 06:00 ​

Use the same pattern with:

  • Hours = 10
  • Lowest count = 3
  • End hour = 6

This lets the water heater run in the 3 cheapest hours before 06:00. If the home is already close to the hard cap, PELS can still limit the heater even inside a selected hour.

Common Pitfalls ​

ProblemFix
The device runs outside selected hoursMake sure Power-limit control is disabled outside the chosen hours and that the Flow also tells the device app to stop or turn off.
The device never runsCheck prices and available power. If the device says Turned off elsewhere — turn it on to resume, have the opening Flow turn it on at the start of the booked window.
More hours match than expectedTies at the cutoff price are included.
The wrong night is selectedUse Current price is one of the lowest before a time, not today's-only pricing, when the window crosses midnight.
Charging current does not changeFor a supported charger, check that built-in control is on and not paused by a Flow. For other EV chargers, check the current-control Flow and EV charger current (A).

Built for Homey Pro users who need tighter control over large loads.