]> git.basschouten.com Git - openhab-addons.git/commitdiff
Added representation property for deCONZ Gateway (#8879)
authorChristoph Weitkamp <github@christophweitkamp.de>
Tue, 27 Oct 2020 23:32:09 +0000 (00:32 +0100)
committerGitHub <noreply@github.com>
Tue, 27 Oct 2020 23:32:09 +0000 (00:32 +0100)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/BindingConstants.java
bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/discovery/BridgeDiscoveryParticipant.java
bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/thing/thing-types.xml

index 5b461e9078f225c43efc237ca2d53b994396965f..3edf3a01a1dea7851b6a4e53752eaf6c84a11289 100644 (file)
@@ -109,6 +109,7 @@ public class BindingConstants {
     public static final String CONFIG_HOST = "host";
     public static final String CONFIG_HTTP_PORT = "httpPort";
     public static final String CONFIG_APIKEY = "apikey";
+    public static final String PROPERTY_UDN = "UDN";
 
     public static final String UNIQUE_ID = "uid";
 
index dc946a268a6051acd0cd5732d93f57afe75c3dfb..bcaf26a06102f5578c5a3e6d6e164a2794e647eb 100644 (file)
@@ -73,9 +73,10 @@ public class BridgeDiscoveryParticipant implements UpnpDiscoveryParticipant {
 
         properties.put(CONFIG_HOST, host);
         properties.put(CONFIG_HTTP_PORT, port);
+        properties.put(PROPERTY_UDN, UDN);
 
         return DiscoveryResultBuilder.create(uid).withProperties(properties).withLabel(name)
-                .withRepresentationProperty(UDN).build();
+                .withRepresentationProperty(PROPERTY_UDN).build();
     }
 
     @Override
index 8262f6b4cd033411c0c5ae4ff4699d40a29d6e03..4d8c63f9ca4cbca04948ac2c10c4fd76d2d66a0f 100644 (file)
@@ -6,7 +6,9 @@
 
        <bridge-type id="deconz">
                <label>deCONZ</label>
-               <description>A running deCONZ software instance</description>
+               <description>A running deCONZ software instance.</description>
+
+               <representation-property>UDN</representation-property>
 
                <config-description-ref uri="thing-type:deconz:bridge"/>
        </bridge-type>