Skip to content

Charge Cap Hours incorrectly calculated #1814

Description

@Ron-ski

Describe the bug

When on Octopus Intelligent Go, you have a total of 6 hours actual charging, 12:00 PM to 12:00 PM.

Currently Charge Cap Hours adds up the half hour slots, for example:

01:30 to 01:45
02:30 to 02:50

Is calculated as one hour, as it covers two half hour slots.

This is not the total of half slots used, but actual accumulated charging time, once you reach 6 hours, you'll be charged at peak rate (even in off peak hours for EV charging), and if outside off peak hours house usage will revert to peak rate as well.

I currently do have a sensor that adds up the time my Zappi is using above 200w, and this resets at 12:00 PM

Reproduction steps

The sensor.octopus_energy_{{DEVICE_ID}}_intelligent_charge_cap_hours is adding up the half hour slots, instead of actual charging time.

Expected behaviour

The sensor should add the actual charging time, for instance, if we had the following charging times.

01:30 to 01:45
02:30 to 02:50

The total charging time would be 15 minutes plus 20 minutes, making a total of 35 minutes

Tariff Code

Sorry I can't find this

Integration Version

19.0.0

Home Assistant Version

2026.8.1

Fresh Install?

Not specified

Home Assistant Logs

Not applicable

Confirmation

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

AI Triage

  • I consent to this issue, including any text or logs I provide, being processed by an AI assistant for automated triage

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions