jonasbkarlsson / ev_smart_charging

Electric vehicle smart charging for Home Assistant.
MIT License
163 stars 25 forks source link

When 'Keep charger on' is selected the 'Charging' status stays active while charging is finished #295

Open CasparTheBridge opened 1 month ago

CasparTheBridge commented 1 month ago

At the moment I use a granny charger for charging my car. I like the feature to keep the charger powered when finished charging but it now doesn't work in the right way.

When I the 'EV Target SOC entity' to 80% the charge cycle is starting correctly. The switch.ev_smart_charging_keep_charger_on gets activated and using the sensor.ev_smart_charging_charging entity I start the charge cycle with my car integration. Using the examples when the sensor.ev_smart_charging_charging goes from on to off I can use my car integration to stop charging but this is not working. The entity sensor.ev_smart_charging_charging keeps active as long as the car is connected. This results in the car keeps on charging and stops at 100% instead of the selected target SOC of 80%.

Can you turn off the sensor.ev_smart_charging_charging and keep the charger activated? I think this should be the case in the status 'Keeping charger on' so sensor.ev_smart_charging_charging to OFF and the entity selected to 'Charger control switch' keep on ON.

Version of the custom_component

Version v1.11.0

Configuration

image

Describe the bug

There is no clear entity to stop the integration of the car to stop charging

Debug log

n/a

jonasbkarlsson commented 4 weeks ago

The entity sensor.ev_smart_charging_charging is intended to be used to turn on and off charging. In your case, you use this to control the charging via a car integration.

How do you want the charger to be controlled? Can you have it always active (since you control the charging via the car)?

CasparTheBridge commented 3 weeks ago

At the moment I use a power outlet which is located close at the street, I control this outlet with a Shelly relay. Ideally I would like the outlet turn on when the charging starts (this works fine - controlled by EV smart charging) and turn off when I unplug my car (this also works fine - controlled by EV smart charging). But when I have set the input_number.car_smart_charging_soc_target to 80% my car is just continuing to charge. The sensor.ev_smart_charging_charging stays active so it won't trigger to the car to stop charging.

So when switch.ev_smart_charging_keep_charger_on is active the sensor.ev_smart_charging_charging is not controlling the charging stop, it stays active when it reached the SOC target and the status will change to keeping_charger_on.