diff --git a/bundles/org.openhab.binding.freeboxos/README.md b/bundles/org.openhab.binding.freeboxos/README.md index f195a1ab50a..bcd01cd3463 100644 --- a/bundles/org.openhab.binding.freeboxos/README.md +++ b/bundles/org.openhab.binding.freeboxos/README.md @@ -49,7 +49,7 @@ FreeboxOS binding has the following configuration parameters: | Parameter Label | Parameter ID | Description | Default | |-----------------|--------------|----------------------------------------------------------------------------| | -| Timeout | timeout | The timeout for reading from the API in seconds. | 8 | +| Timeout | timeout | The timeout for reading from the API in seconds. | 10 | | Callback URL | callbackUrl | URL to use for playing notification sounds, e.g. 'http://192.168.0.2:8080' | | ## Thing Configuration diff --git a/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/FreeboxOsHandlerFactory.java b/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/FreeboxOsHandlerFactory.java index 9f3a0927c28..795caaca444 100644 --- a/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/FreeboxOsHandlerFactory.java +++ b/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/FreeboxOsHandlerFactory.java @@ -103,7 +103,7 @@ public class FreeboxOsHandlerFactory extends BaseThingHandlerFactory { @Modified public void configChanged(Map config) { - String timeout = (String) config.getOrDefault(TIMEOUT, "8"); + String timeout = (String) config.getOrDefault(TIMEOUT, "10"); apiHandler.setTimeout(TimeUnit.SECONDS.toMillis(Long.parseLong(timeout))); callbackURL = (String) config.getOrDefault(CALLBACK_URL, ""); diff --git a/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/api/ApiHandler.java b/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/api/ApiHandler.java index 9fcb2ad5c88..2db83df7323 100644 --- a/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/api/ApiHandler.java +++ b/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/api/ApiHandler.java @@ -69,7 +69,7 @@ public class ApiHandler { private final HttpClient httpClient; private final Gson gson; - private long timeoutInMs = TimeUnit.SECONDS.toMillis(8); + private long timeoutInMs = TimeUnit.SECONDS.toMillis(10); public ApiHandler(HttpClientFactory httpClientFactory, TimeZoneProvider timeZoneProvider) { this.gson = new GsonBuilder().setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES) diff --git a/bundles/org.openhab.binding.freeboxos/src/main/resources/OH-INF/addon/addon.xml b/bundles/org.openhab.binding.freeboxos/src/main/resources/OH-INF/addon/addon.xml index b2b1343925a..8dd09cae39e 100644 --- a/bundles/org.openhab.binding.freeboxos/src/main/resources/OH-INF/addon/addon.xml +++ b/bundles/org.openhab.binding.freeboxos/src/main/resources/OH-INF/addon/addon.xml @@ -13,7 +13,7 @@ The timeout for reading from the API in seconds. - 8 + 10