Added representation property for deCONZ Gateway (#8879)

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
Christoph Weitkamp 2020-10-28 00:32:09 +01:00 committed by GitHub
parent 9992a67990
commit cb1f933e96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -109,6 +109,7 @@ public class BindingConstants {
public static final String CONFIG_HOST = "host"; public static final String CONFIG_HOST = "host";
public static final String CONFIG_HTTP_PORT = "httpPort"; public static final String CONFIG_HTTP_PORT = "httpPort";
public static final String CONFIG_APIKEY = "apikey"; public static final String CONFIG_APIKEY = "apikey";
public static final String PROPERTY_UDN = "UDN";
public static final String UNIQUE_ID = "uid"; public static final String UNIQUE_ID = "uid";

View File

@ -73,9 +73,10 @@ public class BridgeDiscoveryParticipant implements UpnpDiscoveryParticipant {
properties.put(CONFIG_HOST, host); properties.put(CONFIG_HOST, host);
properties.put(CONFIG_HTTP_PORT, port); properties.put(CONFIG_HTTP_PORT, port);
properties.put(PROPERTY_UDN, UDN);
return DiscoveryResultBuilder.create(uid).withProperties(properties).withLabel(name) return DiscoveryResultBuilder.create(uid).withProperties(properties).withLabel(name)
.withRepresentationProperty(UDN).build(); .withRepresentationProperty(PROPERTY_UDN).build();
} }
@Override @Override

View File

@ -6,7 +6,9 @@
<bridge-type id="deconz"> <bridge-type id="deconz">
<label>deCONZ</label> <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"/> <config-description-ref uri="thing-type:deconz:bridge"/>
</bridge-type> </bridge-type>