[bigassfan] Add representation property (#9472)
Signed-off-by: Mark Hilbush <mark@hilbush.com>
This commit is contained in:
parent
46b02c5b6e
commit
46bf375db4
|
@ -238,8 +238,8 @@ public class BigAssFanDiscoveryService extends AbstractDiscoveryService {
|
||||||
|
|
||||||
ThingUID uid = new ThingUID(thingTypeUid, serialNumber);
|
ThingUID uid = new ThingUID(thingTypeUid, serialNumber);
|
||||||
logger.debug("Creating discovery result for UID={}, IP={}", uid, device.getIpAddress());
|
logger.debug("Creating discovery result for UID={}, IP={}", uid, device.getIpAddress());
|
||||||
thingDiscovered(
|
thingDiscovered(DiscoveryResultBuilder.create(uid).withProperties(properties)
|
||||||
DiscoveryResultBuilder.create(uid).withProperties(properties).withLabel(device.getLabel()).build());
|
.withRepresentationProperty(THING_PROPERTY_MAC).withLabel(device.getLabel()).build());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void schedulePollJob() {
|
private void schedulePollJob() {
|
||||||
|
|
|
@ -40,6 +40,8 @@
|
||||||
<channel id="time" typeId="time"/>
|
<channel id="time" typeId="time"/>
|
||||||
</channels>
|
</channels>
|
||||||
|
|
||||||
|
<representation-property>macAddress</representation-property>
|
||||||
|
|
||||||
<config-description-ref uri="thing-type:bigassfan:device"/>
|
<config-description-ref uri="thing-type:bigassfan:device"/>
|
||||||
</thing-type>
|
</thing-type>
|
||||||
|
|
||||||
|
@ -63,6 +65,8 @@
|
||||||
<channel id="time" typeId="time"/>
|
<channel id="time" typeId="time"/>
|
||||||
</channels>
|
</channels>
|
||||||
|
|
||||||
|
<representation-property>macAddress</representation-property>
|
||||||
|
|
||||||
<config-description-ref uri="thing-type:bigassfan:device"/>
|
<config-description-ref uri="thing-type:bigassfan:device"/>
|
||||||
</thing-type>
|
</thing-type>
|
||||||
|
|
||||||
|
@ -76,6 +80,8 @@
|
||||||
<channel id="time" typeId="time"/>
|
<channel id="time" typeId="time"/>
|
||||||
</channels>
|
</channels>
|
||||||
|
|
||||||
|
<representation-property>macAddress</representation-property>
|
||||||
|
|
||||||
<config-description-ref uri="thing-type:bigassfan:device"/>
|
<config-description-ref uri="thing-type:bigassfan:device"/>
|
||||||
</thing-type>
|
</thing-type>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue