Open redford-jones opened 6 months ago
Hello and thanks for the feature request. I'm currently reworking on how data is retrieved based on some requests by OE along with some other features so I don't have time to implement this at the moment. If you would like it sooner and wish to add the feature yourself, I'm more than happy to accept a PR under the following acceptance criteria, but would hold off until https://github.com/BottlecapDave/HomeAssistant-OctopusEnergy/issues/597 is complete.
octopus_energy_electricity_consumption_estimates
and octopus_energy_gas_consumption_estimates
) when data is updated which includes all related retrieved estimated usages and the id of the related account (see saving session). I'm assuming each item in the array represents the month for the current year? If so, the data should be returned as an array of objects with the properties date
(1st of month/year with a time of midnight) and estimate_in_kwh
.octopus_energy_{{ACOUNT_ID}}_electricity_this_month_estimated_consumption
and octopus_energy_{{ACOUNT_ID}}_gas_this_month_estimated_consumption
. The state calculation (e.g. find the current months data) should be extracted to a function and unit tested.octopus_energy_{{ACOUNT_ID}}_electricity_next_month_estimated_consumption
and octopus_energy_{{ACOUNT_ID}}_gas_next_month_estimated_consumption
. The state calculation (e.g. find the next months data) should be extracted to a function and unit tested. This could share the same function with the above sensors.octopus_energy_{{ACOUNT_ID}}_electricity_consumption_estimates
and octopus_energy_{{ACOUNT_ID}}_gas_consumption_estimates
octopus_energy_{{ACOUNT_ID}}_gas_this_month_estimated_consumption
should not be available.Thanks for the update @BottlecapDave. I have some time off over Christmas, so will try to put some time aside to implement it before the new year.
Describe the feature
It would be useful to have the balance forecast data available in this integration. Currently I can see this data either using balance forecast page on my account dashboard or via the GraphQL
livePaymentAdequacy
object.Expected behaviour
Inclusion of data as per the following query:
Which produces the following example data:
Use Case
Monitoring actual usage versus estimated usage would enable the generation of alerts when monthly payments and account balances begin to deviate beyond a set threshold. This would, in turn, enable us to make adjustments to monthly direct debits as needed.
Confirmation