From cf36d8a00e399cdadec82b7ca1bfb3e2bc2f7a73 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 16 Apr 2021 22:21:53 +0200 Subject: [PATCH] [modbus-e3dc] Fixes wrong E3/DC Emergency Power Possible bit (#10513) Signed-off-by: Sebastian --- .../binding/modbus/e3dc/internal/dto/EmergencyBlock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.modbus.e3dc/src/main/java/org/openhab/binding/modbus/e3dc/internal/dto/EmergencyBlock.java b/bundles/org.openhab.binding.modbus.e3dc/src/main/java/org/openhab/binding/modbus/e3dc/internal/dto/EmergencyBlock.java index 66c3d6c87c038..28cd9473e8c18 100644 --- a/bundles/org.openhab.binding.modbus.e3dc/src/main/java/org/openhab/binding/modbus/e3dc/internal/dto/EmergencyBlock.java +++ b/bundles/org.openhab.binding.modbus.e3dc/src/main/java/org/openhab/binding/modbus/e3dc/internal/dto/EmergencyBlock.java @@ -67,7 +67,7 @@ public EmergencyBlock(byte[] bArray) { BitSet bs = BitSet.valueOf(emsStatusBytes); batteryChargingLocked = OnOffType.from(bs.get(EMS_CHARGING_LOCK_BIT)); batteryDischargingLocked = OnOffType.from(bs.get(EMS_DISCHARGING_LOCK_BIT)); - epPossible = OnOffType.from(bs.get(EMS_DISCHARGING_LOCK_BIT)); + epPossible = OnOffType.from(bs.get(EMS_AVAILABLE_BIT)); weatherPredictedCharging = OnOffType.from(bs.get(EMS_WEATHER_CHARGING_BIT)); regulationStatus = OnOffType.from(bs.get(EMS_REGULATION_BIT)); chargeLockTime = OnOffType.from(bs.get(EMS_CHARGE_LOCKTIME_BIT));