From d8d80305d5b52029e5e27557e8aa4ce2d141e248 Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 11 Oct 2022 20:57:01 +0200 Subject: [PATCH 1/5] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 81afb1e..504b43c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # openwbmqtt +THIS is an fork based on the work of https://github.com/a529987659852/openwbmqtt! + Note: I provide this custom integration without any warranty. It lies in the responsability of each user to validate the functionality with his/her own openWB! Custom component for home assistant supporting [openWB wallbox](https://openwb.de/main/) wallbox for charging electric vehicles. The integration subscribes to MQTT topics `prefix/` which are used by openwb to broadcast information and displays this informations as sensor entities. From 22c328f04e137df8ef7a71d7e7832c4ca020d34f Mon Sep 17 00:00:00 2001 From: northalpha Date: Wed, 12 Oct 2022 11:33:21 +0200 Subject: [PATCH 2/5] correct icon for daily energy import --- custom_components/openwbmqtt/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/openwbmqtt/const.py b/custom_components/openwbmqtt/const.py index 6bcb34d..708e04a 100644 --- a/custom_components/openwbmqtt/const.py +++ b/custom_components/openwbmqtt/const.py @@ -242,7 +242,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", From 66e19a10d1325a8ddf5c07415396e89500d7fee0 Mon Sep 17 00:00:00 2001 From: Christoph Date: Wed, 12 Oct 2022 18:26:29 +0200 Subject: [PATCH 3/5] Add sensors (#40) * added sensors - LastRFID - SocFaultState - SocFaultStr * added sensors - global/DailyYieldAllChargePointsKwh - global/WAllChargePoints * added lastRFID - add lastRfID (Chargepoint) - fix system/lastRfID information --- custom_components/openwbmqtt/const.py | 51 +++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/custom_components/openwbmqtt/const.py b/custom_components/openwbmqtt/const.py index 708e04a..67664c4 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", @@ -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", From c8db11adb61c7e20b21cfb088c9ce38d61716ee5 Mon Sep 17 00:00:00 2001 From: Christoph Date: Wed, 12 Oct 2022 18:31:28 +0200 Subject: [PATCH 4/5] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 504b43c..81afb1e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # openwbmqtt -THIS is an fork based on the work of https://github.com/a529987659852/openwbmqtt! - Note: I provide this custom integration without any warranty. It lies in the responsability of each user to validate the functionality with his/her own openWB! Custom component for home assistant supporting [openWB wallbox](https://openwb.de/main/) wallbox for charging electric vehicles. The integration subscribes to MQTT topics `prefix/` which are used by openwb to broadcast information and displays this informations as sensor entities. From 0f8e936148ecd25879daea9bb21d618cd9ed9a98 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 16 Oct 2022 11:09:27 +0200 Subject: [PATCH 5/5] Anzahl der Nachkommastellen korrigiert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Geladene Energie (LPx) (gesamt) hat nur eine Nachkommastelle ausgegeben. Dies wurde auf 2 Stellen geändert. --- custom_components/openwbmqtt/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/openwbmqtt/const.py b/custom_components/openwbmqtt/const.py index 67664c4..8261285 100644 --- a/custom_components/openwbmqtt/const.py +++ b/custom_components/openwbmqtt/const.py @@ -438,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",