diff --git a/bundles/org.openhab.binding.goecharger/src/main/java/org/openhab/binding/goecharger/internal/api/GoEStatusResponseV2DTO.java b/bundles/org.openhab.binding.goecharger/src/main/java/org/openhab/binding/goecharger/internal/api/GoEStatusResponseV2DTO.java index 37f903cc6..c65c63b22 100644 --- a/bundles/org.openhab.binding.goecharger/src/main/java/org/openhab/binding/goecharger/internal/api/GoEStatusResponseV2DTO.java +++ b/bundles/org.openhab.binding.goecharger/src/main/java/org/openhab/binding/goecharger/internal/api/GoEStatusResponseV2DTO.java @@ -34,7 +34,7 @@ public class GoEStatusResponseV2DTO extends GoEStatusResponseBaseDTO { public Double[] temperatures; @SerializedName("wh") - public Long sessionChargeConsumption; + public Double sessionChargeConsumption; @SerializedName("dwo") public Double sessionChargeConsumptionLimit; diff --git a/bundles/org.openhab.binding.goecharger/src/main/java/org/openhab/binding/goecharger/internal/handler/GoEChargerBaseHandler.java b/bundles/org.openhab.binding.goecharger/src/main/java/org/openhab/binding/goecharger/internal/handler/GoEChargerBaseHandler.java index 9711b7767..d0ac23d3c 100644 --- a/bundles/org.openhab.binding.goecharger/src/main/java/org/openhab/binding/goecharger/internal/handler/GoEChargerBaseHandler.java +++ b/bundles/org.openhab.binding.goecharger/src/main/java/org/openhab/binding/goecharger/internal/handler/GoEChargerBaseHandler.java @@ -142,7 +142,7 @@ public abstract class GoEChargerBaseHandler extends BaseThingHandler { } catch (InterruptedException ie) { Thread.currentThread().interrupt(); updateChannelsAndStatus(null, ie.getMessage()); - } catch (TimeoutException | ExecutionException e) { + } catch (TimeoutException | ExecutionException | JsonSyntaxException e) { updateChannelsAndStatus(null, e.getMessage()); } }