A Home Assistant custom integration that brings functionality to dynamically limit allowed EV charger current on individual phases based on your settings and the load on your mains power line.
Work in progress! It's still in beta phase but should maybe work, have a try if you want! Started by creating an automation blueprint that sort of works but soon realized that for doing anything more advanced the lambda programming get too cumbersome so opted to do it as a custom integration.
For a first version it will only support the combination Slimmelezer as mains current sensor and Easee charging robot.
For instructions how you could add a new device type or integration support, see the developer guide
- Go to HACS -> Integrations
- Click the three dots on the top right and select
Custom Repositories
- Enter
https://github.com/dala318/ev_load_balancing
as repository, select the categoryIntegration
and click Add - A new custom integration shows up for installation (EV load Balancing) - install it
- Restart Home Assistant
- You need a Slimmelezer installed and configured as a ESPHome device
- You need an Easee charger robot installed
- By default some sensors are disabled on your charger, make sure to activate the
dynamic_circuit_limit
andstatus
sensors and wait until you see them with values.
- By default some sensors are disabled on your charger, make sure to activate the
- Alternatively there is some support to interact with any source or target via "templates". This is very untested and likely requires some insight into the code to get working for now.
- From your settings add new integration EV Load Balancing.
- Select what type of device for Mains current monitor and EV Changer (for now only Slimmelezer and Easee possible).
- Here you can also select to enable
developer_mode
, it basically disables some checks to make development easier.
- Here you can also select to enable
- Select the specific device for each type (for Easee select the one with the device-id, not the one name "Easee EV Charger").
- Set the rated max current on your mains circuit (or slightly below if you want some margin).
- Set the time-to-live for charger setting (this will cause the charger to reset to default limit if no new setting has been received for x minutes).
- Pair the phases, this is needed since what the Mains and Charger device has as phase1 etc. may not be the same, "crossed wires" (by default it pairs 1-to-1 etc. but match as you want). Oder has no function, just make sure to not have any duplicates (ex. two mains phase 1, it will throw and error and you have to select them again).
- Submit.
- Directly after submit or restart of Home Assistant the integration may show an error, this is likely due to the delay in Easee sensor reporting, give it some seconds and it should work.
- Start charging your vehicle and monitor the mains consumption and limits of your charger (attributes of the
dynamic_circuit_limit
sensor) if it works for you!
If you find an error of have some proposal for improvment, please look through the Issues and create a new if not reported before, or start a thread in the Discussions page.