]> git.basschouten.com Git - openhab-addons.git/commitdiff
[tado] added representation property (#9801)
authorAndrew Fiddian-Green <software@whitebear.ch>
Wed, 13 Jan 2021 10:58:48 +0000 (10:58 +0000)
committerGitHub <noreply@github.com>
Wed, 13 Jan 2021 10:58:48 +0000 (11:58 +0100)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
bundles/org.openhab.binding.tado/src/main/java/org/openhab/binding/tado/internal/discovery/TadoDiscoveryService.java
bundles/org.openhab.binding.tado/src/main/resources/OH-INF/thing/thing-types.xml

index 632e108ab199308e4f57e765c5aa035cbc0b2f2f..c386097af4209461ff8b0ef451e3ed17b87964d8 100644 (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);
 
index 2b213c992c008887298915184a73b35140c22169..d2e17a7fc3d2d1980d325cb6b33c899b062b7159 100644 (file)
                        <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>
                        <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>