Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved switch reset to eco start routine #43

Merged
merged 1 commit into from
Oct 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions custom_components/foxess_em/charge/charge_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ async def _eco_start(self, *args) -> None: # pylint: disable=unused-argument
f"Allowing battery to continue discharge until {self._perc_target}"
)

_LOGGER.debug("Resetting switches")
self._battery_controller.set_boost(False)
self._battery_controller.set_full(False)

async def _stop_force_charge(
self, *args
) -> None: # pylint: disable=unused-argument
Expand All @@ -130,7 +134,3 @@ async def _eco_end(self, *args) -> None: # pylint: disable=unused-argument

_LOGGER.debug("Releasing SoC hold")
await self._fox.set_min_soc(self._original_soc * 100)

_LOGGER.debug("Resetting switches")
self._battery_controller.set_boost(False)
self._battery_controller.set_full(False)