[globalcache] Add representation property (#9471)

Signed-off-by: Mark Hilbush <mark@hilbush.com>
pull/9484/head
Mark Hilbush 2020-12-22 17:07:25 -05:00 committed by GitHub
parent 393ae49dc4
commit e648fc6c8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 15 additions and 0 deletions

View File

@ -163,6 +163,7 @@ public class GlobalCacheDiscoveryService extends AbstractDiscoveryService {
logger.trace("Creating discovery result for: {}, type={}, IP={}", uid,
gcMulticastListener.getModel(), gcMulticastListener.getIPAddress());
thingDiscovered(DiscoveryResultBuilder.create(uid).withProperties(properties)
.withRepresentationProperty(THING_PROPERTY_MAC)
.withLabel(gcMulticastListener.getVendor() + " " + gcMulticastListener.getModel()).build());
}
}

View File

@ -15,6 +15,8 @@
<channel-group id="ir-m2" typeId="ir-m2"/>
</channel-groups>
<representation-property>macAddress</representation-property>
<config-description>
<parameter name="ipAddress" type="text" required="true">
<label>Network Address</label>

View File

@ -18,6 +18,8 @@
<channel-group id="ir-m5" typeId="ir-m5"/>
</channel-groups>
<representation-property>macAddress</representation-property>
<config-description>
<parameter name="ipAddress" type="text" required="true">
<label>Network Address</label>

View File

@ -14,6 +14,8 @@
<channel-group id="cc-m1" typeId="cc-m1"/>
</channel-groups>
<representation-property>macAddress</representation-property>
<config-description>
<parameter name="ipAddress" type="text" required="true">
<label>Network Address</label>

View File

@ -16,6 +16,8 @@
<channel-group id="cc-m1" typeId="cc-m1"/>
</channel-groups>
<representation-property>macAddress</representation-property>
<config-description>
<parameter name="ipAddress" type="text" required="true">
<label>Network Address</label>

View File

@ -14,6 +14,8 @@
<channel-group id="ir-m1" typeId="ir-m1"/>
</channel-groups>
<representation-property>macAddress</representation-property>
<config-description>
<parameter name="ipAddress" type="text" required="true">
<label>Network Address</label>

View File

@ -14,6 +14,8 @@
<channel-group id="sl-m1" typeId="sl-m1"/>
</channel-groups>
<representation-property>macAddress</representation-property>
<config-description>
<parameter name="ipAddress" type="text" required="true">
<label>Network Address</label>

View File

@ -14,6 +14,8 @@
<channel-group id="ir-m1-c1" typeId="ir-m1-c1"/>
</channel-groups>
<representation-property>macAddress</representation-property>
<config-description>
<parameter name="ipAddress" type="text" required="true">
<label>Network Address</label>