Skip to content

Commit

Permalink
Plugwise: add missing P1v2 sensors (home-assistant#85589)
Browse files Browse the repository at this point in the history
Add missing P1v2 sensors
  • Loading branch information
bouwew authored Jan 10, 2023
1 parent e24989b commit 4a22b46
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions homeassistant/components/plugwise/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@
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",
Expand Down Expand Up @@ -192,6 +199,13 @@
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",
Expand Down

0 comments on commit 4a22b46

Please sign in to comment.