V2G-liberty / addon-v2g-liberty

A HomeAssistant-based app to optimize and automate charging of your EV. Optimisation is based on FlexMeasures schedules.
Apache License 2.0
4 stars 2 forks source link

V2G-Liberty does not handle Home Assistant restarts #72

Open rhpijnacker opened 1 month ago

rhpijnacker commented 1 month ago

Since I am using HA for other things than just V2G-Liberty, I regularly (have to) restart HA after updating e.g. HACS components. With every restart V2G-Liberty looses the connection to HA. It would be nice if it would automatically reconnect without interrupting the dis-/charging session in progress.

rhpijnacker commented 1 month ago

After digging around it seems that the way to fix this is to add an extra line to the apps.yaml for every component:

    plugin: HASS

See Plugin Reloads for more details.

ArdJonker commented 1 month ago

Thanks for researching this. Did you test already? If you get good results i'll add it to the next version.

rhpijnacker commented 1 month ago

I did test this, and it looks like adding the plugin directive makes little difference.

ArdJonker commented 1 month ago

Should this issue be kept open?

rhpijnacker commented 1 month ago

Yes, please. It would nice if V2G-Liberty recovers nicely fromHA restarts.