HomeAssistant-OctopusEnergy icon indicating copy to clipboard operation
HomeAssistant-OctopusEnergy copied to clipboard

Intelligent Dispatching does not turn on if planned dispatches span 11am

Open andynash opened this issue 9 months ago • 14 comments

Describe the bug

I've realised that if planned dispatches span 11am, the Intelligent Dispatching binary sensor does not turn on, even though planned dispatches correctly records the updated dispatches from Octopus.

For example, let's say it's 8.15am (in case it is relevant, we use the car integration, not charger).

Let's also assume the current SOC is very low, that we have just been informed (not unusual in our case) we need to make a long journey at 7pm, and note that we use a 2.3kW 3-pin charger (this issue may not have been noticed by others, as I imagine most use 7.2kW chargers and/or start their journeys in the morning before 11am, and predictably).

If we request a charge to complete by 11am, we might be given some slots from (say) 8.15am to 11am, the Intelligent Dispatching sensor turns on, and all is fine.

However we are leaving at 7pm and require more charging than that.

We cannot request a time earlier than 4am, so that is what we select. Octopus then often provide planned dispatch slots between (say) 8.15am and 4am and these are correctly received by the integration. These often start before 11am and end after 11am.

In this case, the binary sensor does not turn on, even though we are currently within a planned dspatch.

I've not been able to work out whether it matters if for example there's a dispatch which completes before 11am and another that starts after 11am, or whether an individual dispatch starts before 11am and ends after 11am, as the dispatches we've received and I've observed have always included an individual dispatch that starts before 11am and finished after 11am.

If we wait until after 11am to select 4am amd receive planned dispatches (that therefore do not span 11am), the sensor then correctly turns on during the planned dispatches.

Reproduction steps

Request (and receive) planned dispatches that span 11am.

Expected behaviour

Intelligent Dispatching turns on as usual during the received planned dispatches.

Tariff Code

E-1R-INTELLI-VAR-22-10-14-M

Integration Version

10.3.1

Home Assistant Version

2024.4.4

Fresh Install?

Not specified

Home Assistant Logs

Will try and obtain logs during the period the planned dispatches are received from Octopus

Confirmation

  • [X] I confirm that I cannot find my solution within the documentation
  • [X] I confirm that I cannot find my solution within the FAQ

andynash avatar Apr 28 '24 08:04 andynash