Open JRascagneres opened 7 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. I also personally don't see the need for it as it doesn't have an impact on automations and I can personally wait for the data to become available as I can't see it impacting any automations. However, if you would like it sooner and wish to add the feature yourself, I'm more than happy to accept a PR. However I would hold off until https://github.com/BottlecapDave/HomeAssistant-OctopusEnergy/issues/597 and https://github.com/BottlecapDave/HomeAssistant-OctopusEnergy/issues/533 are complete as it would rely on those.
The following acceptance criteria should be met
Describe the feature
It would be nice if following a saving session there was an estimated reward field that could be populated per session. There are a couple of websites such as - https://savingsessions.streamlit.app/ (https://github.com/barnybug/savingsessions/blob/main/streamlit_app.py) that are able to calculate the reward you should get from a saving session based on past usage and usage over the saving period.
Expected behaviour
Add an
estimated_reward_octopoints
field as part of the opted-in session thats are provided on theevent.octopus_energy_**_octoplus_saving_session_events
sensor. This would populate AFTER the session using previous usage and usage over that period all of which is available through the API.Use Case
Octopus takes a week plus to calculate this and it'd be nice to get a quick estimate on the value.
Confirmation