diff --git a/custom_components/frank_energie/sensor.py b/custom_components/frank_energie/sensor.py index ac7df52..7f9b655 100644 --- a/custom_components/frank_energie/sensor.py +++ b/custom_components/frank_energie/sensor.py @@ -112,6 +112,14 @@ class FrankEnergieEntityDescription(SensorEntityDescription): value_fn=lambda data: data[DATA_ELECTRICITY].current_hour.energy_tax_price, entity_registry_enabled_default=False, ), + FrankEnergieEntityDescription( + key="elec_billed", + name="Current electricity billed", + native_unit_of_measurement=f"{CURRENCY_EURO}/{ENERGY_KILO_WATT_HOUR}", + suggested_display_precision=2, + state_class=SensorStateClass.MEASUREMENT, + value_fn=lambda data: data[DATA_ELECTRICITY].current_hour.sourcing_markup_price + data[DATA_ELECTRICITY].current_hour.market_price_with_tax, + ), FrankEnergieEntityDescription( key="gas_markup", name="Current gas price (All-in)", @@ -166,6 +174,14 @@ class FrankEnergieEntityDescription(SensorEntityDescription): value_fn=lambda data: data[DATA_GAS].current_hour.energy_tax_price, entity_registry_enabled_default=False, ), + FrankEnergieEntityDescription( + key="gas_billed", + name="Current gas billed", + native_unit_of_measurement=f"{CURRENCY_EURO}/{VOLUME_CUBIC_METERS}", + suggested_display_precision=2, + state_class=SensorStateClass.MEASUREMENT, + value_fn=lambda data: data[DATA_GAS].current_hour.sourcing_markup_price + data[DATA_GAS].current_hour.market_price_with_tax, + ), FrankEnergieEntityDescription( key="gas_min", name="Lowest gas price today",