diff --git a/bundles/org.openhab.binding.evcc/src/main/java/org/openhab/binding/evcc/internal/handler/EvccSiteHandler.java b/bundles/org.openhab.binding.evcc/src/main/java/org/openhab/binding/evcc/internal/handler/EvccSiteHandler.java index 01692f9a4a..0a6110d8da 100644 --- a/bundles/org.openhab.binding.evcc/src/main/java/org/openhab/binding/evcc/internal/handler/EvccSiteHandler.java +++ b/bundles/org.openhab.binding.evcc/src/main/java/org/openhab/binding/evcc/internal/handler/EvccSiteHandler.java @@ -83,7 +83,7 @@ public class EvccSiteHandler extends EvccBaseThingHandler { } // Set the smart cost type - if (state.has("smartCostType")) { + if (state.has("smartCostType") && !state.get("smartCostType").isJsonNull()) { smartCostType = state.get("smartCostType").getAsString(); }