diff --git a/bundles/org.openhab.binding.somfytahoma/src/main/java/org/openhab/binding/somfytahoma/internal/handler/SomfyTahomaActionGroupHandler.java b/bundles/org.openhab.binding.somfytahoma/src/main/java/org/openhab/binding/somfytahoma/internal/handler/SomfyTahomaActionGroupHandler.java index 75b18ee75..e33e2978c 100644 --- a/bundles/org.openhab.binding.somfytahoma/src/main/java/org/openhab/binding/somfytahoma/internal/handler/SomfyTahomaActionGroupHandler.java +++ b/bundles/org.openhab.binding.somfytahoma/src/main/java/org/openhab/binding/somfytahoma/internal/handler/SomfyTahomaActionGroupHandler.java @@ -39,6 +39,7 @@ public class SomfyTahomaActionGroupHandler extends SomfyTahomaBaseThingHandler { @Override public void initializeThing(@Nullable ThingStatus bridgeStatus) { if (bridgeStatus != null) { + url = getURL(); if (bridgeStatus == ThingStatus.ONLINE) { updateStatus(ThingStatus.ONLINE); } else { diff --git a/bundles/org.openhab.binding.somfytahoma/src/main/java/org/openhab/binding/somfytahoma/internal/handler/SomfyTahomaBaseThingHandler.java b/bundles/org.openhab.binding.somfytahoma/src/main/java/org/openhab/binding/somfytahoma/internal/handler/SomfyTahomaBaseThingHandler.java index 5a14b3518..5fa6b136a 100644 --- a/bundles/org.openhab.binding.somfytahoma/src/main/java/org/openhab/binding/somfytahoma/internal/handler/SomfyTahomaBaseThingHandler.java +++ b/bundles/org.openhab.binding.somfytahoma/src/main/java/org/openhab/binding/somfytahoma/internal/handler/SomfyTahomaBaseThingHandler.java @@ -151,7 +151,7 @@ public abstract class SomfyTahomaBaseThingHandler extends BaseThingHandler { return localBridge != null ? (SomfyTahomaBridgeHandler) localBridge.getHandler() : null; } - private String getURL() { + protected String getURL() { return getThing().getConfiguration().get("url") != null ? getThing().getConfiguration().get("url").toString() : ""; }