Added representation property for deCONZ Gateway (#8879)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
parent
9992a67990
commit
cb1f933e96
@ -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";
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user