jonasbkarlsson / ev_smart_charging

Electric vehicle smart charging for Home Assistant.
MIT License
140 stars 19 forks source link

Do not start/stop charging when switching smart charging on/off #152

Closed HWiese1980 closed 1 year ago

HWiese1980 commented 1 year ago

Is your feature request related to a problem? Please describe. I've observed that the addon toggles actual charging (by calling the turn_on service?) when I turn smart charging on or off.

Describe the solution you'd like The button to toggle smart charging should only switch on/off the scheduled charging, not mess with the current charging status.

jonasbkarlsson commented 1 year ago

Which version of the integration are you using?

There are two cases where turning on or off smart charging will toggle the charging. 1) If the charger is off, the smart charging is turn on, and a new scheduled charging is created that starts now. This will lead to charging to be turn on. 2) If there is a scheduled charging active now, and the smart charging is turn off, then the charging will be turned off.

Note that this integration has no knowledge about any changes to the charger that you might do with other means. As an example:

Is this what you have seen?

Note that if you at 10:20 use this integration's manual button to turn on charging, then the state of this integration will change from "off" to "on" at 10:20, and at 11:00 nothing will happen since the state is already "on".