Add DSMR Reader icons (#118329)
This commit is contained in:
parent
13ebc6fb0e
commit
38da61a5ac
2 changed files with 249 additions and 38 deletions
|
@ -141,7 +141,6 @@ SENSORS: tuple[DSMRReaderSensorEntityDescription, ...] = (
|
|||
key="dsmr/reading/extra_device_delivered",
|
||||
translation_key="gas_meter_usage",
|
||||
entity_registry_enabled_default=False,
|
||||
icon="mdi:fire",
|
||||
device_class=SensorDeviceClass.GAS,
|
||||
native_unit_of_measurement=UnitOfVolume.CUBIC_METERS,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
|
@ -266,81 +265,68 @@ SENSORS: tuple[DSMRReaderSensorEntityDescription, ...] = (
|
|||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/day-consumption/electricity1_cost",
|
||||
translation_key="daily_low_tariff_cost",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=CURRENCY_EURO,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/day-consumption/electricity2_cost",
|
||||
translation_key="daily_high_tariff_cost",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=CURRENCY_EURO,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/day-consumption/electricity_cost_merged",
|
||||
translation_key="daily_power_total_cost",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=CURRENCY_EURO,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/day-consumption/gas",
|
||||
translation_key="daily_gas_usage",
|
||||
icon="mdi:counter",
|
||||
device_class=SensorDeviceClass.GAS,
|
||||
native_unit_of_measurement=UnitOfVolume.CUBIC_METERS,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/day-consumption/gas_cost",
|
||||
translation_key="gas_cost",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=CURRENCY_EURO,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/day-consumption/total_cost",
|
||||
translation_key="total_cost",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=CURRENCY_EURO,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/day-consumption/energy_supplier_price_electricity_delivered_1",
|
||||
translation_key="low_tariff_delivered_price",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=PRICE_EUR_KWH,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/day-consumption/energy_supplier_price_electricity_delivered_2",
|
||||
translation_key="high_tariff_delivered_price",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=PRICE_EUR_KWH,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/day-consumption/energy_supplier_price_electricity_returned_1",
|
||||
translation_key="low_tariff_returned_price",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=PRICE_EUR_KWH,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/day-consumption/energy_supplier_price_electricity_returned_2",
|
||||
translation_key="high_tariff_returned_price",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=PRICE_EUR_KWH,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/day-consumption/energy_supplier_price_gas",
|
||||
translation_key="gas_price",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=PRICE_EUR_M3,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/day-consumption/fixed_cost",
|
||||
translation_key="current_day_fixed_cost",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=CURRENCY_EURO,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/meter-stats/dsmr_version",
|
||||
translation_key="dsmr_version",
|
||||
entity_registry_enabled_default=False,
|
||||
icon="mdi:alert-circle",
|
||||
state=dsmr_transform,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
|
@ -348,62 +334,52 @@ SENSORS: tuple[DSMRReaderSensorEntityDescription, ...] = (
|
|||
translation_key="electricity_tariff",
|
||||
device_class=SensorDeviceClass.ENUM,
|
||||
options=["low", "high"],
|
||||
icon="mdi:flash",
|
||||
state=tariff_transform,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/meter-stats/power_failure_count",
|
||||
translation_key="power_failure_count",
|
||||
entity_registry_enabled_default=False,
|
||||
icon="mdi:flash",
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/meter-stats/long_power_failure_count",
|
||||
translation_key="long_power_failure_count",
|
||||
entity_registry_enabled_default=False,
|
||||
icon="mdi:flash",
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/meter-stats/voltage_sag_count_l1",
|
||||
translation_key="voltage_sag_l1",
|
||||
entity_registry_enabled_default=False,
|
||||
icon="mdi:flash",
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/meter-stats/voltage_sag_count_l2",
|
||||
translation_key="voltage_sag_l2",
|
||||
entity_registry_enabled_default=False,
|
||||
icon="mdi:flash",
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/meter-stats/voltage_sag_count_l3",
|
||||
translation_key="voltage_sag_l3",
|
||||
entity_registry_enabled_default=False,
|
||||
icon="mdi:flash",
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/meter-stats/voltage_swell_count_l1",
|
||||
translation_key="voltage_swell_l1",
|
||||
entity_registry_enabled_default=False,
|
||||
icon="mdi:flash",
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/meter-stats/voltage_swell_count_l2",
|
||||
translation_key="voltage_swell_l2",
|
||||
entity_registry_enabled_default=False,
|
||||
icon="mdi:flash",
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/meter-stats/voltage_swell_count_l3",
|
||||
translation_key="voltage_swell_l3",
|
||||
entity_registry_enabled_default=False,
|
||||
icon="mdi:flash",
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/meter-stats/rejected_telegrams",
|
||||
translation_key="rejected_telegrams",
|
||||
entity_registry_enabled_default=False,
|
||||
icon="mdi:flash",
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/current-month/electricity1",
|
||||
|
@ -444,44 +420,37 @@ SENSORS: tuple[DSMRReaderSensorEntityDescription, ...] = (
|
|||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/current-month/electricity1_cost",
|
||||
translation_key="current_month_low_tariff_cost",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=CURRENCY_EURO,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/current-month/electricity2_cost",
|
||||
translation_key="current_month_high_tariff_cost",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=CURRENCY_EURO,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/current-month/electricity_cost_merged",
|
||||
translation_key="current_month_power_total_cost",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=CURRENCY_EURO,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/current-month/gas",
|
||||
translation_key="current_month_gas_usage",
|
||||
icon="mdi:counter",
|
||||
device_class=SensorDeviceClass.GAS,
|
||||
native_unit_of_measurement=UnitOfVolume.CUBIC_METERS,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/current-month/gas_cost",
|
||||
translation_key="current_month_gas_cost",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=CURRENCY_EURO,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/current-month/fixed_cost",
|
||||
translation_key="current_month_fixed_cost",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=CURRENCY_EURO,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/current-month/total_cost",
|
||||
translation_key="current_month_total_cost",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=CURRENCY_EURO,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
|
@ -523,44 +492,37 @@ SENSORS: tuple[DSMRReaderSensorEntityDescription, ...] = (
|
|||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/current-year/electricity1_cost",
|
||||
translation_key="current_year_low_tariff_cost",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=CURRENCY_EURO,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/current-year/electricity2_cost",
|
||||
translation_key="current_year_high_tariff_cost",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=CURRENCY_EURO,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/current-year/electricity_cost_merged",
|
||||
translation_key="current_year_power_total_cost",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=CURRENCY_EURO,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/current-year/gas",
|
||||
translation_key="current_year_gas_usage",
|
||||
icon="mdi:counter",
|
||||
device_class=SensorDeviceClass.GAS,
|
||||
native_unit_of_measurement=UnitOfVolume.CUBIC_METERS,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/current-year/gas_cost",
|
||||
translation_key="current_year_gas_cost",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=CURRENCY_EURO,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/current-year/fixed_cost",
|
||||
translation_key="current_year_fixed_cost",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=CURRENCY_EURO,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/current-year/total_cost",
|
||||
translation_key="current_year_total_cost",
|
||||
icon="mdi:currency-eur",
|
||||
native_unit_of_measurement=CURRENCY_EURO,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
|
|
249
homeassistant/components/dsmr_reader/icons.json
Normal file
249
homeassistant/components/dsmr_reader/icons.json
Normal file
|
@ -0,0 +1,249 @@
|
|||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"low_tariff_usage": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"low_tariff_returned": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"high_tariff_usage": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"high_tariff_returned": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_power_usage": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_power_return": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_power_usage_l1": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_power_usage_l2": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_power_usage_l3": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_power_return_l1": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_power_return_l2": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_power_return_l3": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"gas_meter_usage": {
|
||||
"default": "mdi:fire"
|
||||
},
|
||||
"current_voltage_l1": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_voltage_l2": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_voltage_l3": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"phase_power_current_l1": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"phase_power_current_l2": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"phase_power_current_l3": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"telegram_timestamp": {
|
||||
"default": "mdi:clock"
|
||||
},
|
||||
"gas_usage": {
|
||||
"default": "mdi:counter"
|
||||
},
|
||||
"current_gas_usage": {
|
||||
"default": "mdi:counter"
|
||||
},
|
||||
"gas_meter_read": {
|
||||
"default": "mdi:clock"
|
||||
},
|
||||
"daily_low_tariff_usage": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"daily_high_tariff_usage": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"daily_low_tariff_return": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"daily_high_tariff_return": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"daily_power_usage_total": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"daily_power_return_total": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"daily_low_tariff_cost": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"daily_high_tariff_cost": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"daily_power_total_cost": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"daily_gas_usage": {
|
||||
"default": "mdi:counter"
|
||||
},
|
||||
"gas_cost": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"total_cost": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"low_tariff_delivered_price": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"high_tariff_delivered_price": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"low_tariff_returned_price": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"high_tariff_returned_price": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"gas_price": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"current_day_fixed_cost": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"dsmr_version": {
|
||||
"default": "mdi:alert-circle"
|
||||
},
|
||||
"electricity_tariff": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"power_failure_count": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"long_power_failure_count": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"voltage_sag_l1": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"voltage_sag_l2": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"voltage_sag_l3": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"voltage_swell_l1": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"voltage_swell_l2": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"voltage_swell_l3": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"rejected_telegrams": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_month_low_tariff_usage": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_month_high_tariff_usage": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_month_low_tariff_returned": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_month_high_tariff_returned": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_month_power_usage_total": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_month_power_return_total": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_month_low_tariff_cost": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"current_month_high_tariff_cost": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"current_month_power_total_cost": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"current_month_gas_usage": {
|
||||
"default": "mdi:counter"
|
||||
},
|
||||
"current_month_gas_cost": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"current_month_fixed_cost": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"current_month_total_cost": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"current_year_low_tariff_usage": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_year_high_tariff_usage": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_year_low_tariff_returned": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_year_high_tariff_returned": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_year_power_usage_total": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_year_power_returned_total": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"current_year_low_tariff_cost": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"current_year_high_tariff_cost": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"current_year_power_total_cost": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"current_year_gas_usage": {
|
||||
"default": "mdi:counter"
|
||||
},
|
||||
"current_year_gas_cost": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"current_year_fixed_cost": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"current_year_total_cost": {
|
||||
"default": "mdi:currency-eur"
|
||||
},
|
||||
"previous_quarter_hour_peak_usage": {
|
||||
"default": "mdi:flash"
|
||||
},
|
||||
"quarter_hour_peak_start_time": {
|
||||
"default": "mdi:clock"
|
||||
},
|
||||
"quarter_hour_peak_end_time": {
|
||||
"default": "mdi:clock"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue