]> git.basschouten.com Git - openhab-addons.git/commitdiff
Fix scene group support for Hub v1. (#11857)
authorJacob Laursen <jacob-github@vindvejr.dk>
Sun, 26 Dec 2021 15:38:20 +0000 (16:38 +0100)
committerGitHub <noreply@github.com>
Sun, 26 Dec 2021 15:38:20 +0000 (16:38 +0100)
Fixes #11856

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
bundles/org.openhab.binding.hdpowerview/src/main/java/org/openhab/binding/hdpowerview/internal/HDPowerViewWebTargets.java

index 16efb896a6a986775ea0836c5f57146c81fa25e8..8225d02cdb44f0d661459ac463d107c496b8a737 100644 (file)
@@ -109,8 +109,11 @@ public class HDPowerViewWebTargets {
         shades = base + "shades/";
         sceneActivate = base + "scenes";
         scenes = base + "scenes/";
-        sceneCollectionActivate = base + "sceneCollections";
-        sceneCollections = base + "sceneCollections/";
+
+        // Hub v1 only supports "scenecollections". Hub v2 will redirect to "sceneCollections".
+        sceneCollectionActivate = base + "scenecollections";
+        sceneCollections = base + "scenecollections/";
+
         scheduledEvents = base + "scheduledevents";
         this.httpClient = httpClient;
     }