mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
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_HTTP_PORT = "httpPort";
|
||||
public static final String CONFIG_APIKEY = "apikey";
|
||||
public static final String PROPERTY_UDN = "UDN";
|
||||
|
||||
public static final String UNIQUE_ID = "uid";
|
||||
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user