Plugwise: add missing P1v2 sensors (#85589)

Add missing P1v2 sensors
This commit is contained in:
Bouwe Westerdijk 2023-01-10 09:36:18 +01:00 committed by GitHub
parent e24989b446
commit 4a22b463d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -164,6 +164,13 @@ SENSORS: tuple[SensorEntityDescription, ...] = (
device_class=SensorDeviceClass.ENERGY,
state_class=SensorStateClass.TOTAL,
),
SensorEntityDescription(
key="electricity_consumed_point",
name="Electricity consumed point",
device_class=SensorDeviceClass.POWER,
native_unit_of_measurement=UnitOfPower.WATT,
state_class=SensorStateClass.MEASUREMENT,
),
SensorEntityDescription(
key="electricity_consumed_off_peak_point",
name="Electricity consumed off peak point",
@ -192,6 +199,13 @@ SENSORS: tuple[SensorEntityDescription, ...] = (
device_class=SensorDeviceClass.ENERGY,
state_class=SensorStateClass.TOTAL_INCREASING,
),
SensorEntityDescription(
key="electricity_produced_point",
name="Electricity produced point",
device_class=SensorDeviceClass.POWER,
native_unit_of_measurement=UnitOfPower.WATT,
state_class=SensorStateClass.MEASUREMENT,
),
SensorEntityDescription(
key="electricity_produced_off_peak_point",
name="Electricity produced off peak point",