easee_hass icon indicating copy to clipboard operation
easee_hass copied to clipboard

Are Disable / Enable charger safe to use?

Open hmorkemo opened this issue 3 years ago • 4 comments

I have a Hyundai Kona. Charger current limiting doesn't work with that (at least not while the car is plugged in). Neither does start/stop charging. But disable/enable works just fine! So I've made a "smart night charge" mode based on that. It's quite easy to do as well, since you have a HA switch for it! Question: Are there any problems with this way to stop/restart charging?

hmorkemo avatar Jan 12 '22 11:01 hmorkemo

I am a bit puzzled by what you are writing. Please try to describe in more detail what you have tried and why it is not working. I.e. what service for what limit etc have you tried calling? Did you get an error message in your logs? Does the corresponding sensor for that limit change after you called the service?

I assume you are talking about the "is_enabled" switch? It will end up calling the https://api.easee.cloud/api/chargers/{id}/settings API and change the "enabled" setting to true or false. I am honestly not sure what that setting does, it may write to flash memory which would be a bad thing.

Anyway, it is not the recommended way to control the charger, unless you have some sort of specific requirement you should use the circuit current limit or the pause/resume. I.e the easee.set_circuit_dynamic_limit, easee.pause or easee.resume service.

olalid avatar Jan 12 '22 14:01 olalid

Yes, it's the is_enabled switch.

When I use set_charger_dynamic_limit with current=10, charging stops and status changes from charging to awaiting_start, and reason_for_no_current=undefined. Then, after I try start or resume, nothing happens at the charger. The only way to get the charger back to life is a restart. After the restart, I've tried stop: No response.

But: pause/resume works! After pause, it pauses, and the reason_for_no_current is max_dynamic_charger_current_too_low, and that's strange, but resume restarts it again anyway, so my automation now uses pause/resume and works just fine. My car is a Hyundai Kona 2020.

hmorkemo avatar Jan 19 '22 13:01 hmorkemo

Pausing sets the dynamic charger current to 0 , hence why you get max_dynamic_charger_current_too_low, totally fine. Any property with "dynamic" in it, is safe because its stored in volatile memory, not written to the flash.

Enabling / disabling it, is more akin to switch it off, i.e. don't allow charging at all. Its not something you should be doing often though. Better to stick with pause / resume.

skela avatar Jan 24 '22 19:01 skela

There is some information on the easee developer page that is kind of required reading to understand what the different limits and functions actually does. (I guess we should link to this in the readme). https://developer.easee.cloud/docs/controlling-a-charger https://developer.easee.cloud/docs/current-limits-and-control https://developer.easee.cloud/docs/load-balancing

olalid avatar Jan 24 '22 20:01 olalid