mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Adapt DSMR integration to changes in dsmr_parser for Belgian/Dutch meters (#73817)
This commit is contained in:
parent
164eba7e5d
commit
303ce715ed
@ -245,10 +245,28 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
),
|
),
|
||||||
|
DSMRSensorEntityDescription(
|
||||||
|
key=obis_references.BELGIUM_MAX_POWER_PER_PHASE,
|
||||||
|
name="Max power per phase",
|
||||||
|
dsmr_versions={"5B"},
|
||||||
|
device_class=SensorDeviceClass.POWER,
|
||||||
|
entity_registry_enabled_default=False,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
|
),
|
||||||
|
DSMRSensorEntityDescription(
|
||||||
|
key=obis_references.BELGIUM_MAX_CURRENT_PER_PHASE,
|
||||||
|
name="Max current per phase",
|
||||||
|
dsmr_versions={"5B"},
|
||||||
|
device_class=SensorDeviceClass.POWER,
|
||||||
|
entity_registry_enabled_default=False,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
|
),
|
||||||
DSMRSensorEntityDescription(
|
DSMRSensorEntityDescription(
|
||||||
key=obis_references.ELECTRICITY_IMPORTED_TOTAL,
|
key=obis_references.ELECTRICITY_IMPORTED_TOTAL,
|
||||||
name="Energy Consumption (total)",
|
name="Energy Consumption (total)",
|
||||||
dsmr_versions={"5", "5B", "5L", "5S", "Q3D"},
|
dsmr_versions={"5L", "5S", "Q3D"},
|
||||||
force_update=True,
|
force_update=True,
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user