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

octopus_energy_octoplus_join_saving_session.yml: Add end date/time

Open reedy opened this issue 1 year ago • 2 comments

Fixes https://github.com/BottlecapDave/HomeAssistant-OctopusEnergy/issues/786

reedy avatar Mar 02 '24 15:03 reedy

I wasn't sure about trying to use next_joined_event_duration_in_minutes, but it would seem "easier" if the event when fired included the duration (maybe?).

https://github.com/BottlecapDave/HomeAssistant-OctopusEnergy/blob/b06499c86548847b5c75c17a487a87178f59b64a/custom_components/octopus_energy/coordinators/saving_sessions.py#L73-L81

reedy avatar Mar 02 '24 15:03 reedy

@reedy Thanks for the addition. The blueprint doesn't use the events so that it can recover if the registration API fails.

I think including the duration as part of the events would be better as it's unlikely that a session event would span multiple days. The docs would need to be updated as well.

BottlecapDave avatar Apr 03 '24 18:04 BottlecapDave

This has been updated to include the duration in minutes, which is part of v10.3.0.

BottlecapDave avatar Apr 15 '24 08:04 BottlecapDave