BottlecapDave / HomeAssistant-OctopusEnergy

Unofficial Home Assistant integration for interacting with Octopus Energy
https://bottlecapdave.github.io/HomeAssistant-OctopusEnergy/
MIT License
612 stars 61 forks source link

Support weekly and monthly cost sensor breakdowns #714

Closed BottlecapDave closed 7 months ago

BottlecapDave commented 10 months ago

Describe the feature

The cost sensor should be expanded to support weekly and monthly breakdowns in addition to the current daily breakdowns.

These weekly and monthly breakdowns should have peak/off peak variations

Expected behaviour

The following sensors should be available

The day that represents the start of the week should be configurable.

The start day for the month (1-28) should be configurable and effect the month based sensors.

Use Case

I want to be able to see what my sensors cost me on a daily or monthly basis.

Confirmation

Psai commented 10 months ago

Would/should this also include export meters?

BottlecapDave commented 10 months ago

Export meters should already be supported (if they're coming through your account), as these are sensors for tracking costs of other entities within HA (e.g. television if you have a sensor reporting it's kwh usage).

RexNoctis commented 10 months ago

Just a small suggestion/request, would it also be possible to also make the start date of the month configurable? It would be nice to see costs based on the billing period?

alfwro13 commented 9 months ago

You can already do the same thing with Energy Meter (HACS integration) https://github.com/zeronounours/HA-custom-component-energy-meter

BottlecapDave commented 9 months ago

Thank you for raising this as a potential solution. The cost trackers were introduced as I wanted a solution that would adapt automatically when a persons tariff changed and would cope with tariffs with varying rates (like agile). My main issue with the integration you linked is that It's not configurable via the UI - More users who are using HA and this integration are more comfortable with a UI and don't want to be diving into yaml to configure entities. It's crazy a simple accumulation sensor that resets on a schedule isn't available natively in HA.

Meatballs1 commented 8 months ago

I just feed my cost tracker into utility meter helpers with a monthly schedule and that seems to do this unless I'm missing something.

BottlecapDave commented 7 months ago

This is now available as part of v10.2.0