[tado] added representation property (#9801)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>pull/9809/merge
parent
2a00ac53f0
commit
3e7014dafb
|
@ -123,7 +123,7 @@ public class TadoDiscoveryService extends AbstractDiscoveryService {
|
|||
properties.put(CONFIG_ZONE_ID, zoneId);
|
||||
|
||||
DiscoveryResult result = DiscoveryResultBuilder.create(uid).withBridge(bridgeUID).withLabel(zone.getName())
|
||||
.withProperties(properties).build();
|
||||
.withProperties(properties).withRepresentationProperty(CONFIG_ZONE_ID).build();
|
||||
|
||||
thingDiscovered(result);
|
||||
|
||||
|
@ -156,7 +156,7 @@ public class TadoDiscoveryService extends AbstractDiscoveryService {
|
|||
properties.put(CONFIG_MOBILE_DEVICE_ID, device.getId());
|
||||
|
||||
DiscoveryResult result = DiscoveryResultBuilder.create(uid).withBridge(bridgeUID).withLabel(device.getName())
|
||||
.withProperties(properties).build();
|
||||
.withProperties(properties).withRepresentationProperty(CONFIG_MOBILE_DEVICE_ID).build();
|
||||
|
||||
thingDiscovered(result);
|
||||
|
||||
|
|
|
@ -60,6 +60,11 @@
|
|||
<channel typeId="openWindowDetected" id="openWindowDetected"></channel>
|
||||
</channels>
|
||||
|
||||
<properties>
|
||||
<property name="vendor">tado°</property>
|
||||
</properties>
|
||||
<representation-property>id</representation-property>
|
||||
|
||||
<config-description>
|
||||
<parameter name="id" type="integer" required="true">
|
||||
<label>Zone Id</label>
|
||||
|
@ -98,6 +103,11 @@
|
|||
<channel typeId="atHome" id="atHome"></channel>
|
||||
</channels>
|
||||
|
||||
<properties>
|
||||
<property name="vendor">tado°</property>
|
||||
</properties>
|
||||
<representation-property>id</representation-property>
|
||||
|
||||
<config-description>
|
||||
<parameter name="id" type="integer" required="true">
|
||||
<label>Mobile Device Id</label>
|
||||
|
|
Loading…
Reference in New Issue