Thank you! This may need to be made clearer in the documentation. ![]()
Consider that done Clarify use of custom sensors · dirkgroenen/hass-evse-load-balancer@94f08cc · GitHub ![]()
[EDIT]
Seems to work now. I deleted and added EVSE once again after changing to kW readings.
I also pushed L1 a bit further to around 22A and then it immediately limited charging current.
New test with P1 reader set to kW (Amina S still set to W):
Amina charge limit set to 10A.
Attached snapshots when boiling water and L1 peaked 18A without any charge limit from EVSE Load Balancer. Is that expected?
This is house in idle mode (no charging, no boiling etc):
Which fuse sizes did you configure when setting up the integration?
The way how it works it that it will calculate the active current based on your active power and voltage, it will then deduct that from the configured fuse size.
In your case (given it idles at 0) it looks like your fuse size might be configured as 0? In which case it’s deducting your active current (17) from 0, resulting in -17.
Hello @dirkgroenen, first of all congrats for this integration, it sounds very nice from the description and documentation. I would also like to have this since I have to split 32A of total power between my apartment and my garage. The charging station I use is a Lektri.co TRI model (3-phase 22kW) which is wired only in 1-phase installation (7.4kW - 32A at 230V). I have an interest to make this charger work with your integration, but I took a look at charger.py and also at the example (easee) and it’s not very clear for me how the code for my charger should look. If you can give me some hints/help, I can try to write the script. I would like to mention that this charger has a fully local HA official integration provided by manufacturer and it’s already exposing in HA everything needed. I can provide here the link for this integration - Lektrico Charging Station - Home Assistant
Thanks @lsc597! Easiest would be if you create an issue and/or PR in the Github repo so I can assist you there and track progress.
What I normally do when integrating a new charger:
- Copy the Easee implementation
- Look at the source implementation of the Home Assistant Integration, specifically looking at
sensor.py. - Map the translation keys of these sensors to the integration, such that the
_get_entity_state_by_translation_keymethod ca grab the state’s value.
For example if we want to get the configured max current of the charger (via get_max_current_limit) we need in the case of Lektrico the installation_current sensor value.
Let me know if this makes sense. If not I can give it a first stab myself when I have some time left, after which I would like to ask you to test it.
Ah, seems like I indeed missed something. I just pushed a fix which should resolve this issue. Fix missing meter init · dirkgroenen/hass-evse-load-balancer@c8b93ce · GitHub
Hey, tested it and the installation works now.
but it’s difficult to monitor what’s it doing, beause the Diagnostics don’t work:
It’s configured as 16A. I’m not sure if this really works as expected?
So if my house is idling, available A should be 16, not 0?
Hmm that’s a bit weird indeed. If your house is idling it should indeed report an availability of 16. See the below, which is my own house (fuse of 25A, right side if current going through meter (positive in this case due to production, left side is EVSE Load Balancer)
Would you mind opening an issue in GitHub · Where software is built, and report all your configured sensors and their states, so I can have a look at it?
I dont know why, but re added the integration and now it works. No load = 16A, full charging power = 0A.
Played around boiling water again and suddenly it cut down to 11A so everything seems to work ![]()
I´ll get back to you with an issue if the problem shows up again
Hey, yes, i know, they where already enabled, and it worked with with the custom integration but not with the P1.
Please enable the integration’s “debug logs” via the HASS UI (on the integration’s page, left-side) and check your Home Assistant Logs. It might give you some indications there of unavailable sensors or sth related.
By default the P1 integration might not be exposing all required sensors. This will be showin the logs if so, in which case you can enable those.
(It’s on the issue list to make this part of the “hass problem diagnose” UI)
i don’t see any message in the logsbooks, all P1 integration are exposed. But i’m getting this error on the EVSE
i just checked in integration to and i goes immediatly to full power and stays there so it doesn’t work yet completly.
But i don’t know where todo more debugging?
It’s according to the message no longer being provided by the integration, which makes me assume it’s disabled or something else is going on. You can try:
- Remove the integration and delete (manually) all entities
- Re-configure the integration
- Enable Debug Logs
- Show the output of your logs
Hello Dirk, i specialy made a account because i was already long time searsching for a good load balancer that i can use with my lifepo4 solar accu’s so i can reply to you. i am wondering if your nice project can be used for my charger? i have this smart reader in my p1 poort: https://www.zuidwijk.com/product/slimmelezer-plus/?add-to-cart=5040 and my charger acceps 0-10v input to control 0-50 amp (at 55v) this is done by a shelly device https://www.shelly.com/de/products/shelly-0-1-10v-dimmer-pm-gen3?_gl=1&srsltid=AfmBOooaFKJ-82Dh88KOlSZDtz373fupvcBNhNBb33n8l8Qw0dnqoYPC can you give me your opinion if i can use/adapt your nice project to my situation? (i want use my solar over production to charge my accu’s)
Hi! At the moment that’s not really fit for the project. Right now the goal is to prevent EV chargers from blowing the main circuit’s fuse, followed by a goal to allow chargers to only consume the amount over power produced by a PV system.
Your interest in having the battery inverter charge based on PV production is a bridge too far at the moment I’m afraid. Might be worth exploring in a later stage once at least PV surplus support is implemented, but as mentioned that’s also just a plan at the moment and not yet executed.
Hi, thank you for your fast and clear answer, your next goal to allow chargers to only consume the amount over power produced by a PV system is exacly what i need so i can charge solar accu’s when i have over production (now i have it already working different way but it used a lot of complex hardware) now its continu variabel charging based on amp’s flowing trough dc cable’s from solar panel to inverter, and its adjusted around zero use from grid. if your project is in the next phase (only charge from over production) and i can add a 0-10v signal to adjust charger power i am there. again thank you and have a nice evening!








