diff --git a/custom_components/openwbmqtt/const.py b/custom_components/openwbmqtt/const.py index 6bcb34d..8261285 100644 --- a/custom_components/openwbmqtt/const.py +++ b/custom_components/openwbmqtt/const.py @@ -121,6 +121,15 @@ class openWBNumberEntityDescription(NumberEntityDescription): entity_category=EntityCategory.DIAGNOSTIC, icon="mdi:web-clock", ), + openwbSensorEntityDescription( + key="system/lastRfId", + name="zuletzt gescannter RFID-Tag", + device_class=None, + native_unit_of_measurement=None, + entity_category=EntityCategory.DIAGNOSTIC, + entity_registry_enabled_default=False, + icon="mdi:tag-multiple-outline", + ), openwbSensorEntityDescription( key="global/cpuModel", name="CPU Modell", @@ -194,6 +203,23 @@ class openWBNumberEntityDescription(NumberEntityDescription): entity_registry_enabled_default=False, icon="mdi:home-lightning-bolt-outline", ), + openwbSensorEntityDescription( + key="global/WAllChargePoints", + name="Ladeleistung aller Ladepunkte", + device_class=SensorDeviceClass.POWER, + native_unit_of_measurement=POWER_WATT, + state_class=SensorStateClass.MEASUREMENT, + icon="mdi:battery-charging-50", + ), + openwbSensorEntityDescription( + key="global/DailyYieldAllChargePointsKwh", + name="Tagesverbrauch aller Ladepunkte", + device_class=SensorDeviceClass.ENERGY, + native_unit_of_measurement=ENERGY_KILO_WATT_HOUR, + state_class=SensorStateClass.TOTAL_INCREASING, + value_fn=lambda x: round(float(x), 2), + icon="mdi:counter", + ), openwbSensorEntityDescription( key="pv/W", name="PV-Leistung", @@ -242,7 +268,7 @@ class openWBNumberEntityDescription(NumberEntityDescription): state_class=SensorStateClass.MEASUREMENT, entity_registry_enabled_default=False, value_fn=lambda x: round(float(x), 2), - icon="mdi:transmission-tower-export", + icon="mdi:transmission-tower-import", ), openwbSensorEntityDescription( key="pv/WhCounter", @@ -332,6 +358,31 @@ class openWBNumberEntityDescription(NumberEntityDescription): entity_category=EntityCategory.DIAGNOSTIC, entity_registry_enabled_default=False, ), + openwbSensorEntityDescription( + key="socFaultState", + name="Soc-Fehlerstatus", + device_class=None, + entity_category=EntityCategory.DIAGNOSTIC, + entity_registry_enabled_default=False, + icon="mdi:alert-circle-outline", + ), + openwbSensorEntityDescription( + key="socFaultStr", + name="Soc-Fehlertext", + device_class=None, + entity_category=EntityCategory.DIAGNOSTIC, + entity_registry_enabled_default=False, + icon="mdi:alert-circle-outline", + ), + openwbSensorEntityDescription( + key="lastRfId", + name="zuletzt gescannter RFID-Tag", + device_class=None, + native_unit_of_measurement=None, + icon="mdi:tag-multiple", + entity_category=EntityCategory.DIAGNOSTIC, + entity_registry_enabled_default=False, + ), openwbSensorEntityDescription( key="AConfigured", name="Ladestromvorgabe", @@ -387,7 +438,7 @@ class openWBNumberEntityDescription(NumberEntityDescription): native_unit_of_measurement=ENERGY_KILO_WATT_HOUR, state_class=SensorStateClass.TOTAL_INCREASING, icon="mdi:counter", - value_fn=lambda x: round(float(x), 1), + value_fn=lambda x: round(float(x), 2), ), openwbSensorEntityDescription( key="countPhasesInUse",