Skip to content

Commit

Permalink
[bigassfan] Add representation property (#9472)
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Hilbush <mark@hilbush.com>
  • Loading branch information
mhilbush authored Dec 22, 2020
1 parent 46b02c5 commit 46bf375
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ private synchronized void deviceDiscovered(BigAssFanDevice device) {

ThingUID uid = new ThingUID(thingTypeUid, serialNumber);
logger.debug("Creating discovery result for UID={}, IP={}", uid, device.getIpAddress());
thingDiscovered(
DiscoveryResultBuilder.create(uid).withProperties(properties).withLabel(device.getLabel()).build());
thingDiscovered(DiscoveryResultBuilder.create(uid).withProperties(properties)
.withRepresentationProperty(THING_PROPERTY_MAC).withLabel(device.getLabel()).build());
}

private void schedulePollJob() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
<channel id="time" typeId="time"/>
</channels>

<representation-property>macAddress</representation-property>

<config-description-ref uri="thing-type:bigassfan:device"/>
</thing-type>

Expand All @@ -63,6 +65,8 @@
<channel id="time" typeId="time"/>
</channels>

<representation-property>macAddress</representation-property>

<config-description-ref uri="thing-type:bigassfan:device"/>
</thing-type>

Expand All @@ -76,6 +80,8 @@
<channel id="time" typeId="time"/>
</channels>

<representation-property>macAddress</representation-property>

<config-description-ref uri="thing-type:bigassfan:device"/>
</thing-type>

Expand Down

0 comments on commit 46bf375

Please sign in to comment.