fix: change solar surplus calculation
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user