fix: change solar surplus calculation

This commit is contained in:
Björn Stormwall
2026-06-23 12:35:29 +02:00
parent 14c6a5ee23
commit 27ed07f0c4
6 changed files with 186 additions and 30 deletions
@@ -3,7 +3,11 @@ DOMAIN = "easee_solar_charging"
CONF_CHARGER_ID = "charger_id"
CONF_DEVICE_ID = "device_id"
CONF_SITE_ID = "site_id"
CONF_SOLAR_EXCESS_SENSOR = "solar_excess_sensor"
CONF_SOLAR_PRODUCTION_SENSOR = "solar_production_sensor"
CONF_HOUSE_LOAD_SENSOR = "house_load_sensor"
CONF_EV_CHARGING_SENSOR = "ev_charging_sensor"
ROLLING_AVERAGE_SECONDS = 30
EASEE_DOMAIN = "easee"
EASEE_SERVICE_SET_DYNAMIC_LIMIT = "set_charger_dynamic_limit"
@@ -25,6 +29,14 @@ HYSTERESIS_A = 2 # dead-band within the charging range (fixed)
CONF_STOP_GRACE_MINUTES = "stop_grace_minutes"
DEFAULT_STOP_GRACE_MINUTES = 5
CONF_CHARGING_PROFILE = "charging_profile"
CHARGING_PROFILE_CONSERVATIVE = "conservative"
CHARGING_PROFILE_ALL_SURPLUS = "all_surplus"
DEFAULT_CHARGING_PROFILE = CHARGING_PROFILE_CONSERVATIVE
CONF_DEAD_BAND_RESYNC_MINUTES = "dead_band_resync_minutes"
DEFAULT_DEAD_BAND_RESYNC_MINUTES = 1
CONF_NOTIFY_TARGET = "notify_target"
# Watts available at each valid current step on a 3-phase 230V system (P = 3 × V × I)