Skip to content

Commit

Permalink
[bigassfan] Add representation property (openhab#9472)
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Hilbush <mark@hilbush.com>
Signed-off-by: Joseph Hagberg <joseph@zoidberg.se>
  • Loading branch information
mhilbush authored and seaside1 committed Dec 28, 2020
1 parent 374d51f commit da5531b
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 da5531b

Please sign in to comment.