diff --git a/bundles/org.openhab.binding.gardena/src/main/java/org/openhab/binding/gardena/internal/GardenaSmartImpl.java b/bundles/org.openhab.binding.gardena/src/main/java/org/openhab/binding/gardena/internal/GardenaSmartImpl.java index d0340f5e06e8d..2d9ba66f37d4d 100644 --- a/bundles/org.openhab.binding.gardena/src/main/java/org/openhab/binding/gardena/internal/GardenaSmartImpl.java +++ b/bundles/org.openhab.binding.gardena/src/main/java/org/openhab/binding/gardena/internal/GardenaSmartImpl.java @@ -215,7 +215,6 @@ private T executeRequest(HttpMethod method, String url, @Nullable Object con final PostOAuth2Response token = this.token; if (token != null) { request.header("Authorization", token.tokenType + " " + token.accessToken); - request.header("Authorization-provider", token.provider); } request.header("X-Api-Key", config.getApiKey()); } diff --git a/bundles/org.openhab.binding.gardena/src/main/java/org/openhab/binding/gardena/internal/GardenaSmartWebSocket.java b/bundles/org.openhab.binding.gardena/src/main/java/org/openhab/binding/gardena/internal/GardenaSmartWebSocket.java index f9ec261af6f0b..f83fb06353d6d 100644 --- a/bundles/org.openhab.binding.gardena/src/main/java/org/openhab/binding/gardena/internal/GardenaSmartWebSocket.java +++ b/bundles/org.openhab.binding.gardena/src/main/java/org/openhab/binding/gardena/internal/GardenaSmartWebSocket.java @@ -121,11 +121,11 @@ public void onConnect(Session session) { ScheduledFuture connectionTracker = this.connectionTracker; if (connectionTracker != null && !connectionTracker.isCancelled()) { - connectionTracker.cancel(false); + connectionTracker.cancel(true); } // start sending PING every two minutes - this.connectionTracker = scheduler.scheduleWithFixedDelay(this::sendKeepAlivePing, 2, 2, TimeUnit.MINUTES); + this.connectionTracker = scheduler.scheduleWithFixedDelay(this::sendKeepAlivePing, 1, 2, TimeUnit.MINUTES); } @OnWebSocketFrame