evcc
evcc copied to clipboard
Irregular Energy read from Solar Edge Hybrid Battery
Description
Since the data is read via modbus the values look like type cast error values
This is the data from solar edge modbus via homeassistant:
Steps to Reproduce
Let evcc read the data.
Configuration (YAML)
#network: 0.0.0.0:7070 # uri for ui
interval: 10s # control cycle interval
# sponsor token: *****
#sponsortoken: *****
plant: *****
# log settings
log: info
levels:
core: info
lp-1: info
lp-2: info
# go-e: trace
# meter definitions
# name can be freely chosen and is used as reference when assigning meters to site and loadpoints
# for examples see https://github.com/evcc-io/config#meters
#meters:
# - name: grid
# type: discovergy
# user: *****
# password: *****
# meter: 1ESY1161228607
# - name: grid
# type: template
# template: solaredge-hybrid
# usage: grid
# modbus: tcpip
# id: 1
# host: 192.168.178.90 # IP-Adresse oder Hostname
# port: 502 # Port 502 (SetApp) oder 1502 (LCD) # Optional
# - name: pv
# type: template
# template: solaredge-hybrid
# usage: pv
# modbus: tcpip
# id: 1
# host: 192.168.178.90 # IP-Adresse oder Hostname
# port: 502 # Port 502 (SetApp) oder 1502 (LCD) # Optional
# - name: battery
# type: template
# template: solaredge-hybrid
# usage: battery
# modbus: tcpip
# id: 1
# host: 192.168.178.90 # IP-Adresse oder Hostname
# port: 502 # Port 502 (SetApp) oder 1502 (LCD) # Optional
# - name: pv
# type: template
# template: mqtt-meter
# usage: pv
# power:
# scalepower: 1 # Die Leistung wird in Watt erwartet. Falls z.b. kW geliefert wird, kann dies hier mit dem Wert 1000 angepasst werden # Optional
# energy: # Optional
# scaleenergy: 1 # Die Energiemenge wird in kWh erwartet. Falls z.b. Wh geliefert wird, kann dies hier mit dem Wert 0.001 angepasst werden # Optional
# soc: # Optional
# currentp1: # Optional
# currentp2: # Optional
# currentp3: # Optional
# timeout: 30s # Akzeptiere keine Daten die älter als dieser Wert sind # Optional
# - name: pv
# type: custom
# power:
# source: calc
# add:
# - source: modbus
# model: sunspec
# uri: *****
# id: 1
# value: 103:DCW
# - source: modbus
# uri: *****
# id: 1
# register:
# address: 62836 # Battery 1 Instantaneous Power
# type: holding
# decode: float32s
# - name: my_battery
# type: template
# template: mqtt-meter
# usage: battery
# power:
# scalepower: 1 # Die Leistung wird in Watt erwartet. Falls z.b. kW geliefert wird, kann dies hier mit dem Wert 1000 angepasst werden # Optional
# energy: # Optional
# scaleenergy: 1 # Die Energiemenge wird in kWh erwartet. Falls z.b. Wh geliefert wird, kann dies hier mit dem Wert 0.001 angepasst werden # Optional
# soc: # Optional
# currentp1: # Optional
# currentp2: # Optional
# currentp3: # Optional
# timeout: 30s # Akzeptiere keine Daten die älter als dieser Wert sind # Optional
# - name: battery
# type: custom
# power:
# source: modbus
# uri: *****
# id: 1
# register:
# address: 62836 # Battery 1 Instantaneous Power
# type: holding
# decode: float32s
# scale: -1
# soc:
# source: modbus
# uri: *****
# id: 1
# register:
# address: 62852 # Battery 1 State of Energy (SOE)
# type: holding
# decode: float32s
#- name: grid
# type: modbus
# model: sdm # SDM630
# uri: *****
# rtu: true # rs485 device connected using ethernet adapter
# id: 2
# power: Power # default value, optionally override
# energy: Sum # default value, optionally override
#- name: pv
# type: ...
#- name: battery
# type: ...
#- name: charge
# type: ...
# charger definitions
# name can be freely chosen and is used as reference when assigning charger to vehicle
# for examples see https://github.com/evcc-io/config#chargers
#chargers:
#- name: go-e
# type: template
# template: go-e-v3 # go-e charger
# host: 192.168.178.98 # ModBus address
# vehicle definitions
# name can be freely chosen and is used as reference when assigning vehicle to loadpoint
# for examples see https://github.com/evcc-io/config#vehicles
# site describes the EVU connection, PV and home battery
#site:
# title: Bullerbü # display name for UI
# meters:
# grid: grid # grid meter
# pv:
# - pv # list of pv inverters/ meters
# battery: battery # battery meter
# prioritySoC: 25 # give home battery priority up to this soc (empty to disable)
# bufferSoC: 90 # ignore home battery discharge above soc (empty to disable)
# loadpoint describes the charger, charge meter and connected vehicle
#loadpoints:
#- title: Carport # display name for UI
# charger: go-e # charger
# meter: charge # charge meter
# vehicle: ID.4
# vehicles: # use if multiple vehicles allowed to charge on this loadpoint
# - ID.3
# - e-Up
# mode: pv
# resetOnDisconnect: true # set defaults when vehicle disconnects
# soc:
# # polling defines usage of the vehicle APIs
# # Modifying the default settings it NOT recommended. It MAY deplete your vehicle's battery
# # or lead to vehicle manufacturer banning you from API use. USE AT YOUR OWN RISK.
# poll:
# # poll mode defines under which condition the vehicle API is called:
# # charging: update vehicle ONLY when charging (this is the recommended default)
# # connected: update vehicle when connected (not only charging), interval defines how often
# # always: always update vehicle regardless of connection state, interval defines how often (only supported for single vehicle)
# mode: charging
# # poll interval defines how often the vehicle API may be polled if NOT charging
# interval: 60m
# min: 0 # immediately charge to 0% regardless of mode unless "off" (disabled)
# target: 100 # always charge to 100%
# estimate: true # set true to interpolate between api updates
# phases: 0 # ev phases (default 3)
# enable: # pv mode enable behavior
# delay: 20s # threshold must be exceeded for this long
# threshold: 0 # grid power threshold (in Watts, negative=export). If zero, export must exceed minimum charge power to enable
# disable: # pv mode disable behavior
# delay: 1m # threshold must be exceeded for this long
# threshold: 200 # maximum import power (W)
# guardDuration: 5m # switch charger contactor not more often than this (default 10m)
# minCurrent: 6 # minimum charge current (default 6A)
# maxCurrent: 16 # maximum charge current (default 16A)
# tariffs are the fixed or variable tariffs
# cheap (tibber/awattar) can be used to define a tariff rate considered cheap enough for charging
#tariffs:
# currency: EUR # three letter ISO-4217 currency code (default EUR)
# grid:
# either static grid price
#type: fixed
#price: 0.294 # EUR/kWh
# # or variable via awattar
# type: awattar
# charges: 0.1235
# region: de # optional, choose at for Austria
# feedin:
# # rate for feeding excess (pv) energy to the grid
# type: fixed
# price: 0.09 # EUR/kWh
# mqtt message broker
mqtt:
broker: 192.168.178.90:1883
topic: evcc
user: *****
password: *****
# influx database
influx:
# url: *****
# database: evcc
# user: *****
# password: *****
# eebus credentials
eebus:
# uri: *****
# interfaces: # limit eebus to specific network interfaces
# - en0
# certificate: # local signed certificate, required, can be generated via `evcc eebus-cert`
# public: # public key
# private: # private key
# push messages
messaging:
events:
start: # charge start event
title: Charge started
msg: Started charging in "${mode}" mode
stop: # charge stop event
title: Charge finished
msg: Finished charging ${chargedEnergy:%.1fk}kWh in ${chargeDuration}.
connect: # vehicle connect event
title: Car connected
msg: "Car connected at ${pvPower:%.1fk}kW PV"
disconnect: # vehicle connected event
title: Car disconnected
msg: Car disconnected after ${connectedDuration}
soc: # vehicle soc update event
title: SoC updated
msg: Battery charged to ${vehicleSoC:%.0f}%
services:
# - type: pushover
# app: *****
# recipients: *****
# - # list of recipient ids
# - type: telegram
# token: *****
# chats: *****
# - # list of chat ids
# - type: email
# uri: *****
Configuration (UI)
{
"charger": [
{"id":24,"name":"db:24","type":"template","config":{"icon":"dryer","integrateddevice":true,"power":"sensor.terrasse_wasserlauf_derzeitiger_verbrauch","standbypower":5,"switch":"switch.terrasse_wasserlauf","template":"homeassistant-switch","uri":"***"},"deviceProduct":"Home Assistant Switch"},
{"id":21,"name":"db:21","type":"heatpump","config":{"yaml":"## required attributes [type: heatpump]
setmaxpower: # update the maximum heating power
source: js
script: console.log(maxpower); #
## optional attributes (read-only)
#getmaxpower: # heating power in W
# source: const
# value: 5000
#power: # heating power in W
# source: const
# value: 2000
#energy: # meter reading in kWh
# source: const
# value: 42.5
#temp: # current temperature (°C)
# source: const
# value: 45.5
#limittemp: # temperature limit (°C) configured in device
# source: const
# value: 60
"}},
{"id":27,"name":"db:27","type":"template","config":{"baudrate":9600,"comset":"8N1","host":"192.168.178.144","id":1,"modbus":"tcpip","phases1p3p":true,"port":502,"template":"nrggen2"},"deviceProduct":"NRGkick Gen2"},
{"id":3,"name":"db:3","type":"template","config":{"host":"192.168.178.98","template":"go-e-v3"},"deviceProduct":"go-e Charger V3"}
],
"circuits": "- name: main # unique name, used as reference, e.g. as parent in other circuits
title: Main Circuit # used in the UI
maxcurrent: 62 # 63A main circuit breaker (optional)
maxPower: 30000 # 30kW (optional)
meter: # db:30 # associated meter to monitor the power consumption (optional)
parent: # no parent, this is the root circuit
#- name: garage # unique name, used as reference, e.g. to associate loadpoints
# title: Garage # used in the UI
# maxcurrent: 24 # allow individual phase use up to 24A
# maxPower: 11000 # limit total power to 11kW
# meter: garage # dedicated meter for the garage
# parent: main # parent to the main circuit
- name: carport # unique name, used as reference, e.g. to associate loadpoints
title: Carport # used in the UI
maxCurrent: 16 # 32A circuit breaker
maxPower: # no limit, only check current
meter: # no meter, using data from loadpoints
parent: main # parent to the main circuit",
"experimental": true,
"influx": {"url":"","database":"","token":"","org":"","user":"","password":"","insecure":false},
"interval": 21,
"loadpoints": [
{"id":4,"name":"db:4","batteryBoostLimit":100,"charger":"db:3","defaultMode":"pv","limitEnergy":0,"limitSoc":0,"maxCurrent":16,"minCurrent":6,"phasesConfigured":0,"planEnergy":0,"planPrecondition":0,"planStrategy":{"continuous":false,"precondition":0},"planTime":"0001-01-01T00:00:00Z","priority":0,"smartCostLimit":0.005,"smartFeedInPriorityLimit":null,"soc":{"poll":{"mode":"charging","interval":3600000000000},"estimate":true},"thresholds":{"enable":{"delay":60000000000,"threshold":0},"disable":{"delay":180000000000,"threshold":0}},"title":"go-E"},
{"id":13,"name":"db:13","batteryBoostLimit":85,"charger":"db:27","defaultMode":"pv","limitEnergy":0,"limitSoc":0,"maxCurrent":16,"minCurrent":6,"phasesConfigured":0,"planEnergy":0,"planPrecondition":0,"planStrategy":{"continuous":false,"precondition":0},"planTime":"0001-01-01T00:00:00Z","priority":0,"smartCostLimit":0.005,"smartFeedInPriorityLimit":null,"soc":{"poll":{"mode":"charging","interval":3600000000000},"estimate":true},"thresholds":{"enable":{"delay":60000000000,"threshold":0},"disable":{"delay":180000000000,"threshold":0}},"title":"NRGkick"},
{"id":22,"name":"db:22","batteryBoostLimit":100,"charger":"db:21","defaultMode":"","limitEnergy":0,"limitSoc":0,"maxCurrent":16,"minCurrent":6,"phasesConfigured":1,"planEnergy":0,"planPrecondition":0,"planStrategy":{"continuous":false,"precondition":0},"planTime":"0001-01-01T00:00:00Z","priority":0,"smartCostLimit":null,"smartFeedInPriorityLimit":null,"soc":{"poll":{"mode":"charging","interval":3600000000000},"estimate":true},"thresholds":{"enable":{"delay":60000000000,"threshold":0},"disable":{"delay":180000000000,"threshold":0}},"title":"Klima Schlafzimmer"},
{"id":25,"name":"db:25","batteryBoostLimit":50,"charger":"db:24","defaultMode":"","limitEnergy":0,"limitSoc":0,"maxCurrent":1,"minCurrent":0.125,"phasesConfigured":1,"planEnergy":0,"planPrecondition":0,"planStrategy":{"continuous":false,"precondition":0},"planTime":"0001-01-01T00:00:00Z","priority":0,"smartCostLimit":0.025,"smartFeedInPriorityLimit":null,"soc":{"poll":{"mode":"charging","interval":3600000000000},"estimate":true},"thresholds":{"enable":{"delay":60000000000,"threshold":0},"disable":{"delay":180000000000,"threshold":0}},"title":"Wasserspiel"}
],
"meter": [
{"id":10,"name":"db:10","type":"template","config":{"energy":"sensor.waschmaschine_energy","maxacpower":"0","power":"sensor.waschmaschine_power","template":"homeassistant","uri":"***","usage":"charge"},"deviceIcon":"laundry","deviceProduct":"Home Assistant","deviceTitle":"Waschmaschine"},
{"id":11,"name":"db:11","type":"template","config":{"energy":"sensor.waschetrockner_energy","maxacpower":"0","power":"sensor.waschetrockner_power","template":"homeassistant","uri":"***","usage":"charge"},"deviceIcon":"laundry","deviceProduct":"Home Assistant","deviceTitle":"Wäschetrockner"},
{"id":31,"name":"db:31","type":"template","config":{"currentL1":"","energy":"","maxacpower":"0","power":"sensor.wohnzimmer_entertainment_derzeitiger_verbrauch","template":"homeassistant","uri":"***","usage":"charge","voltageL1":""},"deviceIcon":"desktop","deviceProduct":"Home Assistant","deviceTitle":"Fernseher"},
{"id":8,"name":"db:8","type":"template","config":{"baudrate":9600,"comset":"8N1","host":"192.168.178.90","id":1,"maxacpower":9000,"maxdischargepower":"5000","modbus":"tcpip","port":"502","template":"solaredge-hybrid","usage":"pv","watchdog":"60s"},"deviceProduct":"SolarEdge Hybrid Inverter","deviceTitle":"SolarEdge"},
{"id":32,"name":"db:32","type":"template","config":{"baudrate":9600,"comset":"8N1","host":"192.168.178.90","id":1,"maxacpower":"0","maxdischargepower":"5000","modbus":"tcpip","port":502,"template":"solaredge-hybrid","usage":"grid","watchdog":"60s"},"deviceProduct":"SolarEdge Hybrid Inverter"},
{"id":6,"name":"db:6","type":"template","config":{"baudrate":9600,"capacity":8.82,"comset":"8N1","host":"192.168.178.90","id":1,"maxacpower":"0","maxchargepower":5000,"maxdischargepower":"5000","maxsoc":82,"minsoc":10,"modbus":"tcpip","port":"502","template":"solaredge-hybrid","usage":"battery","watchdog":"60s"},"deviceProduct":"SolarEdge Hybrid Inverter","deviceTitle":"SolarEdge LG ESS"},
{"id":29,"name":"db:29","type":"template","config":{"baudrate":115200,"capacity":"5.12","comset":"8N1","host":"192.168.178.90","id":1,"maxchargepower":"2500","maxdischargepower":2500,"maxsoc":"100","minsoc":"11","modbus":"tcpip","port":503,"template":"marstek-venus-e-v3","usage":"battery","work_mode_normal":"1"},"deviceProduct":"Marstek Venus E Gen 3.0","deviceTitle":"Marstek Venus E"}
],
"modbusproxy": [{"port":502,"readonly":"false","settings":{"uri":"192.168.178.92:1502","rtu":false}},{"port":503,"readonly":"false","settings":{"uri":"192.168.178.67:502","rtu":false}}],
"mqtt": {"broker":"192.168.178.90:1883","user":"evccmqtt","password":"***","clientID":"","insecure":false,"caCert":"","clientCert":"","clientKey":"","topic":"evcc"},
"residualPower": 100,
"shm": {"vendorId":"","deviceId":"","deviceSerial":""},
"site": {"title":"Bullerbü","grid":"db:32","pv":["db:8"],"battery":["db:6","db:29"],"aux":null,"ext":["db:10","db:11","db:31"]},
"tariff": [
{"id":14,"name":"db:14","type":"template","config":{"price":0.09,"template":"fixed"},"deviceProduct":"Fester Preis"},
{"id":16,"name":"db:16","type":"template","config":{"template":"grünstromindex","zip":"***"},"deviceProduct":"Grünstromindex"},
{"id":20,"name":"db:20","type":"template","config":{"apikey":"***","az":90,"dec":25,"interval":"2h","kwp":4.07,"lat":"***","lon":"***","template":"forecast-solar"},"deviceProduct":"Forecast.Solar","deviceTitle":"West"},
{"id":18,"name":"db:18","type":"template","config":{"apikey":"***","az":-90,"dec":25,"interval":"2h","kwp":3.93,"lat":"***","lon":"***","template":"forecast-solar"},"deviceProduct":"Forecast.Solar","deviceTitle":"Ost"},
{"id":19,"name":"db:19","type":"template","config":{"apikey":"***","az":0,"dec":6,"interval":"2h","kwp":1.98,"lat":"***","lon":"***","template":"forecast-solar"},"deviceProduct":"Forecast.Solar","deviceTitle":"Süd"},
{"id":15,"name":"db:15","type":"template","config":{"charges":0.1284,"formula":"math.Max((price) * (1 + tax) + charges, 0.0)","region":"DE","tax":0.19,"template":"awattar"},"deviceProduct":"Awattar"},
{"id":17,"name":"db:17","type":"template","config":{"average":true,"charges":0.1284,"formula":"math.Max((price) * (1 + tax) + charges, 0.0)","region":"DE","tax":0.19,"template":"epex-predictor","uri":"***"},"deviceProduct":"EPEX Predictor Predicted EPEX spot prices"}
],
"tariffRefs": {"grid":"db:15","feedIn":"db:14","co2":"db:16","planner":"db:17","solar":["db:18","db:19","db:20"]},
"vehicle": [
{"id":1,"name":"db:1","type":"template","config":{"cache":"15m","capacity":77,"icon":"car","mode":"pv","password":"***","phases":"","priority":0,"template":"skoda","title":"Enyaq","user":"***"},"deviceProduct":"Skoda"},
{"id":2,"name":"db:2","type":"template","config":{"cache":"15m","capacity":77,"icon":"car","mode":"pv","password":"***","phases":"","priority":1,"template":"vw","timeout":"10s","title":"ID4","user":"***"},"deviceProduct":"Volkswagen We Connect ID"},
{"id":23,"name":"db:23","type":"template","config":{"capacity":77,"climater":"","finishTime":"sensor.kleiner_onkel_charging_time_left","icon":"car","limitSoc":"number.kleiner_onkel_battery_target_charge_level","mode":"pv","odometer":"sensor.kleiner_onkel_odometer_2","priority":0,"range":"sensor.kleiner_onkel_electric_range","soc":"sensor.kleiner_onkel_battery_level","start_charging":"switch.kleiner_onkel_charging","status":"","streaming":"true","template":"homeassistant","title":"ID.4","uri":"***","wakeup":""},"deviceProduct":"Home Assistant"},
{"id":28,"name":"db:28","type":"template","config":{"brand":"Volkswagen","cache":"15m","capacity":77,"icon":"car","mode":"pv","password":"***","priority":0,"template":"drivesomethinggreater","title":"Kleiner Onkel ","user":"***"},"deviceProduct":"Volkswagen EU Data Act"}
]
}
Logs
[lp-1 ] DEBUG 2026/06/13 11:10:53 charge currents: [0 0 0]A
[carport] DEBUG 2026/06/13 11:10:53 power: 0W
[carport] DEBUG 2026/06/13 11:10:53 current: 0A
[main ] DEBUG 2026/06/13 11:10:53 power: 0W
[main ] DEBUG 2026/06/13 11:10:53 current: 0A
[site ] DEBUG 2026/06/13 11:10:53 ext 2 power: 0W
[site ] DEBUG 2026/06/13 11:10:53 ext 1 power: 1W
[site ] DEBUG 2026/06/13 11:10:53 ext 3 power: 4W
[site ] DEBUG 2026/06/13 11:10:53 grid power: -134W
[site ] DEBUG 2026/06/13 11:10:53 battery 1 power: -0W
[site ] DEBUG 2026/06/13 11:10:53 battery 2 power: 0W
[site ] DEBUG 2026/06/13 11:10:54 pv 1 power: 1954W
[site ] DEBUG 2026/06/13 11:10:54 grid powers: [-306 35 129]W
[site ] DEBUG 2026/06/13 11:10:54 battery 1 soc: 99%
[site ] DEBUG 2026/06/13 11:10:54 battery 2 soc: 80%
[site ] DEBUG 2026/06/13 11:10:54 battery power: 0W
[site ] DEBUG 2026/06/13 11:10:54 battery soc: 92%
[site ] DEBUG 2026/06/13 11:10:54 grid currents: [-4.87 3.1 3.05]A
[site ] DEBUG 2026/06/13 11:10:54 site power: -34W
[lp-4 ] DEBUG 2026/06/13 11:10:54 session energy: 0.140kWh
[lp-4 ] DEBUG 2026/06/13 11:10:54 charger status: C
[lp-4 ] DEBUG 2026/06/13 11:10:54 !! plan: plan time zero
[lp-4 ] DEBUG 2026/06/13 11:10:54 pv charge current: 0.305A = 0.155A + 0.15A (-34W @ 1p)
[lp-4 ] DEBUG 2026/06/13 11:10:54 set charge current limit: 0.305A
[site ] DEBUG 2026/06/13 11:10:54 solar forecast: produced 7.700kWh, forecasted 6.481kWh, scale 1.188
Version
v0.309.0
System
linux/amd64, CEST +02:00
You are welcome to use the issue template
@premultiply. Exactly that would have become obvious if the issue template were followed…