Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #13 from kaepse/main
Browse files Browse the repository at this point in the history
Add sensors for house
  • Loading branch information
a529987659852 authored Dec 5, 2021
2 parents 2a42622 + 1f78c0d commit 457d5cd
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions custom_components/openwbmqtt/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
ELECTRIC_CURRENT_AMPERE,
ELECTRIC_POTENTIAL_VOLT,
ENERGY_KILO_WATT_HOUR,
ENERGY_WATT_HOUR,
LENGTH_KILOMETERS,
PERCENTAGE,
POWER_WATT,
Expand Down Expand Up @@ -69,6 +70,41 @@ class openwbSensorEntityDescription(SensorEntityDescription):
4: "Standby",
},
),
openwbSensorEntityDescription(
key="global/WHouseConsumption",
name="Leistungsaufnahme (Haus)",
device_class=DEVICE_CLASS_POWER,
native_unit_of_measurement=POWER_WATT,
state_class=STATE_CLASS_MEASUREMENT,
),
openwbSensorEntityDescription(
key="pv/W",
name="Leistungsabgabe (Haus PV)",
device_class=DEVICE_CLASS_POWER,
native_unit_of_measurement=POWER_WATT,
state_class=STATE_CLASS_MEASUREMENT,
),
openwbSensorEntityDescription(
key="evu/WhImported",
name="Energie-Import (Haus)",
device_class=DEVICE_CLASS_ENERGY,
native_unit_of_measurement=ENERGY_WATT_HOUR,
state_class=STATE_CLASS_TOTAL_INCREASING,
),
openwbSensorEntityDescription(
key="evu/WhExported",
name="Energie-Export (Haus)",
device_class=DEVICE_CLASS_ENERGY,
native_unit_of_measurement=ENERGY_WATT_HOUR,
state_class=STATE_CLASS_TOTAL_INCREASING,
),
openwbSensorEntityDescription(
key="pv/WhCounter",
name="Energie-Erzeugt (Haus)",
device_class=DEVICE_CLASS_ENERGY,
native_unit_of_measurement=ENERGY_WATT_HOUR,
state_class=STATE_CLASS_TOTAL_INCREASING,
),
]

"""
Expand Down

0 comments on commit 457d5cd

Please sign in to comment.