forked from SmartEVSE/SmartEVSE-3
-
Notifications
You must be signed in to change notification settings - Fork 26
Home Assistant ~ Battery Integration
k-janssens edited this page Apr 11, 2022
·
1 revision
- Smart-EVSE with firmware v1.2.0-serkri-v3 or higher
- WiFi enabled and working
- Battery charge and discharge amperage data in HASS
- Node-RED add-on
Note: This is an installation that will prioritise a configurable amperage to the home battery Note: The flow and calculation can be altered to change this behaviour (e.g. give full solar to EV first or home battery)
- Import Node-RED flow: https://github.com/serkri/SmartEVSE-3/blob/master/integrations/home-assistant/HASS-Node-RED.json
- Change entities in the red boxes
- HTTP Request: Redirect the hostname/ip to your Smart-EVSE
- Battery Charge/Discharge: The entity containing battery charge data in WATT (Positive: Charging, Negative: Discharging)
- Battery Level: Battery percentage (0-100%)
- Voltage: This is a HASS sensor to get the actual voltage to calculate the amperage properly:
energy_voltage:
friendly_name: "Energy average voltage"
value_template: >
{% set F1_V = state_attr('sensor.sun2000_8ktl_m1', 'phase_A_voltage') %}
{% set F2_V = state_attr('sensor.sun2000_8ktl_m1', 'phase_B_voltage') %}
{% set F3_V = state_attr('sensor.sun2000_8ktl_m1', 'phase_C_voltage') %}
{{ ( (F1_V + F2_V + F3_V ) / 3) | round(0, 'ceil') }}
- Battery Reserve: A helper sensor can be setup to give the home battery a minimum ampere as priority solar charge