[tado] added representation property (#9801)

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
pull/9809/merge
Andrew Fiddian-Green 2021-01-13 10:58:48 +00:00 committed by GitHub
parent 2a00ac53f0
commit 3e7014dafb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View File

@ -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);

View File

@ -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>