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