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

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
a529987659852 committed Dec 5, 2021
2 parents b5e529c + 457d5cd commit 93e274b
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 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 @@ -83,11 +84,47 @@ class openwbSensorEntityDescription(SensorEntityDescription):
state_class=STATE_CLASS_MEASUREMENT,
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
icon='mdi:earth'
),]
),
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,
),
]

"""
List of sensors which are relevant for each charge point.
Not implemented:
Not implemented:
- boolChargePointConfigured
- lastRfId
- boolSocManual
Expand Down

0 comments on commit 93e274b

Please sign in to comment.