mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Add dsmr monthly and yearly totals (#48253)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
70e3fc430c
commit
4487565232
@ -325,4 +325,160 @@ DEFINITIONS = {
|
|||||||
"enable_default": True,
|
"enable_default": True,
|
||||||
"icon": "mdi:flash",
|
"icon": "mdi:flash",
|
||||||
},
|
},
|
||||||
|
"dsmr/current-month/electricity1": {
|
||||||
|
"name": "Current month low tariff usage",
|
||||||
|
"enable_default": True,
|
||||||
|
"device_class": DEVICE_CLASS_ENERGY,
|
||||||
|
"unit": ENERGY_KILO_WATT_HOUR,
|
||||||
|
},
|
||||||
|
"dsmr/current-month/electricity2": {
|
||||||
|
"name": "Current month high tariff usage",
|
||||||
|
"enable_default": True,
|
||||||
|
"device_class": DEVICE_CLASS_ENERGY,
|
||||||
|
"unit": ENERGY_KILO_WATT_HOUR,
|
||||||
|
},
|
||||||
|
"dsmr/current-month/electricity1_returned": {
|
||||||
|
"name": "Current month low tariff returned",
|
||||||
|
"enable_default": True,
|
||||||
|
"device_class": DEVICE_CLASS_ENERGY,
|
||||||
|
"unit": ENERGY_KILO_WATT_HOUR,
|
||||||
|
},
|
||||||
|
"dsmr/current-month/electricity2_returned": {
|
||||||
|
"name": "Current month high tariff returned",
|
||||||
|
"enable_default": True,
|
||||||
|
"device_class": DEVICE_CLASS_ENERGY,
|
||||||
|
"unit": ENERGY_KILO_WATT_HOUR,
|
||||||
|
},
|
||||||
|
"dsmr/current-month/electricity_merged": {
|
||||||
|
"name": "Current month power usage total",
|
||||||
|
"enable_default": True,
|
||||||
|
"device_class": DEVICE_CLASS_ENERGY,
|
||||||
|
"unit": ENERGY_KILO_WATT_HOUR,
|
||||||
|
},
|
||||||
|
"dsmr/current-month/electricity_returned_merged": {
|
||||||
|
"name": "Current month power return total",
|
||||||
|
"enable_default": True,
|
||||||
|
"device_class": DEVICE_CLASS_ENERGY,
|
||||||
|
"unit": ENERGY_KILO_WATT_HOUR,
|
||||||
|
},
|
||||||
|
"dsmr/current-month/electricity1_cost": {
|
||||||
|
"name": "Current month low tariff cost",
|
||||||
|
"enable_default": True,
|
||||||
|
"icon": "mdi:currency-eur",
|
||||||
|
"unit": CURRENCY_EURO,
|
||||||
|
},
|
||||||
|
"dsmr/current-month/electricity2_cost": {
|
||||||
|
"name": "Current month high tariff cost",
|
||||||
|
"enable_default": True,
|
||||||
|
"icon": "mdi:currency-eur",
|
||||||
|
"unit": CURRENCY_EURO,
|
||||||
|
},
|
||||||
|
"dsmr/current-month/electricity_cost_merged": {
|
||||||
|
"name": "Current month power total cost",
|
||||||
|
"enable_default": True,
|
||||||
|
"icon": "mdi:currency-eur",
|
||||||
|
"unit": CURRENCY_EURO,
|
||||||
|
},
|
||||||
|
"dsmr/current-month/gas": {
|
||||||
|
"name": "Current month gas usage",
|
||||||
|
"enable_default": True,
|
||||||
|
"icon": "mdi:counter",
|
||||||
|
"unit": VOLUME_CUBIC_METERS,
|
||||||
|
},
|
||||||
|
"dsmr/current-month/gas_cost": {
|
||||||
|
"name": "Current month gas cost",
|
||||||
|
"enable_default": True,
|
||||||
|
"icon": "mdi:currency-eur",
|
||||||
|
"unit": CURRENCY_EURO,
|
||||||
|
},
|
||||||
|
"dsmr/current-month/fixed_cost": {
|
||||||
|
"name": "Current month fixed cost",
|
||||||
|
"enable_default": True,
|
||||||
|
"icon": "mdi:currency-eur",
|
||||||
|
"unit": CURRENCY_EURO,
|
||||||
|
},
|
||||||
|
"dsmr/current-month/total_cost": {
|
||||||
|
"name": "Current month total cost",
|
||||||
|
"enable_default": True,
|
||||||
|
"icon": "mdi:currency-eur",
|
||||||
|
"unit": CURRENCY_EURO,
|
||||||
|
},
|
||||||
|
"dsmr/current-year/electricity1": {
|
||||||
|
"name": "Current year low tariff usage",
|
||||||
|
"enable_default": True,
|
||||||
|
"device_class": DEVICE_CLASS_ENERGY,
|
||||||
|
"unit": ENERGY_KILO_WATT_HOUR,
|
||||||
|
},
|
||||||
|
"dsmr/current-year/electricity2": {
|
||||||
|
"name": "Current year high tariff usage",
|
||||||
|
"enable_default": True,
|
||||||
|
"device_class": DEVICE_CLASS_ENERGY,
|
||||||
|
"unit": ENERGY_KILO_WATT_HOUR,
|
||||||
|
},
|
||||||
|
"dsmr/current-year/electricity1_returned": {
|
||||||
|
"name": "Current year low tariff returned",
|
||||||
|
"enable_default": True,
|
||||||
|
"device_class": DEVICE_CLASS_ENERGY,
|
||||||
|
"unit": ENERGY_KILO_WATT_HOUR,
|
||||||
|
},
|
||||||
|
"dsmr/current-year/electricity2_returned": {
|
||||||
|
"name": "Current year high tariff usage",
|
||||||
|
"enable_default": True,
|
||||||
|
"device_class": DEVICE_CLASS_ENERGY,
|
||||||
|
"unit": ENERGY_KILO_WATT_HOUR,
|
||||||
|
},
|
||||||
|
"dsmr/current-year/electricity_merged": {
|
||||||
|
"name": "Current year power usage total",
|
||||||
|
"enable_default": True,
|
||||||
|
"device_class": DEVICE_CLASS_ENERGY,
|
||||||
|
"unit": ENERGY_KILO_WATT_HOUR,
|
||||||
|
},
|
||||||
|
"dsmr/current-year/electricity_returned_merged": {
|
||||||
|
"name": "Current year power returned total",
|
||||||
|
"enable_default": True,
|
||||||
|
"device_class": DEVICE_CLASS_ENERGY,
|
||||||
|
"unit": ENERGY_KILO_WATT_HOUR,
|
||||||
|
},
|
||||||
|
"dsmr/current-year/electricity1_cost": {
|
||||||
|
"name": "Current year low tariff cost",
|
||||||
|
"enable_default": True,
|
||||||
|
"icon": "mdi:currency-eur",
|
||||||
|
"unit": CURRENCY_EURO,
|
||||||
|
},
|
||||||
|
"dsmr/current-year/electricity2_cost": {
|
||||||
|
"name": "Current year high tariff cost",
|
||||||
|
"enable_default": True,
|
||||||
|
"icon": "mdi:currency-eur",
|
||||||
|
"unit": CURRENCY_EURO,
|
||||||
|
},
|
||||||
|
"dsmr/current-year/electricity_cost_merged": {
|
||||||
|
"name": "Current year power total cost",
|
||||||
|
"enable_default": True,
|
||||||
|
"icon": "mdi:currency-eur",
|
||||||
|
"unit": CURRENCY_EURO,
|
||||||
|
},
|
||||||
|
"dsmr/current-year/gas": {
|
||||||
|
"name": "Current year gas usage",
|
||||||
|
"enable_default": True,
|
||||||
|
"icon": "mdi:counter",
|
||||||
|
"unit": VOLUME_CUBIC_METERS,
|
||||||
|
},
|
||||||
|
"dsmr/current-year/gas_cost": {
|
||||||
|
"name": "Current year gas cost",
|
||||||
|
"enable_default": True,
|
||||||
|
"icon": "mdi:currency-eur",
|
||||||
|
"unit": CURRENCY_EURO,
|
||||||
|
},
|
||||||
|
"dsmr/current-year/fixed_cost": {
|
||||||
|
"name": "Current year fixed cost",
|
||||||
|
"enable_default": True,
|
||||||
|
"icon": "mdi:currency-eur",
|
||||||
|
"unit": CURRENCY_EURO,
|
||||||
|
},
|
||||||
|
"dsmr/current-year/total_cost": {
|
||||||
|
"name": "Current year total cost",
|
||||||
|
"enable_default": True,
|
||||||
|
"icon": "mdi:currency-eur",
|
||||||
|
"unit": CURRENCY_EURO,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user