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
@@ -24,6 +24,30 @@ class EaseeSolarSensorDescription(SensorEntityDescription):
SENSOR_DESCRIPTIONS: tuple[EaseeSolarSensorDescription, ...] = (
EaseeSolarSensorDescription(
key="solar_production",
data_key="solar_production_w",
name="Solar Production",
device_class=SensorDeviceClass.POWER,
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=UnitOfPower.WATT,
),
EaseeSolarSensorDescription(
key="house_load",
data_key="house_load_w",
name="House Load",
device_class=SensorDeviceClass.POWER,
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=UnitOfPower.WATT,
),
EaseeSolarSensorDescription(
key="ev_charging",
data_key="ev_charging_w",
name="EV Charging Power",
device_class=SensorDeviceClass.POWER,
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=UnitOfPower.WATT,
),
EaseeSolarSensorDescription(
key="solar_excess",
data_key="solar_excess_w",