mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-02-04 19:34:05 +01:00
[globalcache] Add representation property (#9471)
Signed-off-by: Mark Hilbush <mark@hilbush.com>
This commit is contained in:
parent
393ae49dc4
commit
e648fc6c8c
@ -163,6 +163,7 @@ public class GlobalCacheDiscoveryService extends AbstractDiscoveryService {
|
|||||||
logger.trace("Creating discovery result for: {}, type={}, IP={}", uid,
|
logger.trace("Creating discovery result for: {}, type={}, IP={}", uid,
|
||||||
gcMulticastListener.getModel(), gcMulticastListener.getIPAddress());
|
gcMulticastListener.getModel(), gcMulticastListener.getIPAddress());
|
||||||
thingDiscovered(DiscoveryResultBuilder.create(uid).withProperties(properties)
|
thingDiscovered(DiscoveryResultBuilder.create(uid).withProperties(properties)
|
||||||
|
.withRepresentationProperty(THING_PROPERTY_MAC)
|
||||||
.withLabel(gcMulticastListener.getVendor() + " " + gcMulticastListener.getModel()).build());
|
.withLabel(gcMulticastListener.getVendor() + " " + gcMulticastListener.getModel()).build());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
<channel-group id="ir-m2" typeId="ir-m2"/>
|
<channel-group id="ir-m2" typeId="ir-m2"/>
|
||||||
</channel-groups>
|
</channel-groups>
|
||||||
|
|
||||||
|
<representation-property>macAddress</representation-property>
|
||||||
|
|
||||||
<config-description>
|
<config-description>
|
||||||
<parameter name="ipAddress" type="text" required="true">
|
<parameter name="ipAddress" type="text" required="true">
|
||||||
<label>Network Address</label>
|
<label>Network Address</label>
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
<channel-group id="ir-m5" typeId="ir-m5"/>
|
<channel-group id="ir-m5" typeId="ir-m5"/>
|
||||||
</channel-groups>
|
</channel-groups>
|
||||||
|
|
||||||
|
<representation-property>macAddress</representation-property>
|
||||||
|
|
||||||
<config-description>
|
<config-description>
|
||||||
<parameter name="ipAddress" type="text" required="true">
|
<parameter name="ipAddress" type="text" required="true">
|
||||||
<label>Network Address</label>
|
<label>Network Address</label>
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
<channel-group id="cc-m1" typeId="cc-m1"/>
|
<channel-group id="cc-m1" typeId="cc-m1"/>
|
||||||
</channel-groups>
|
</channel-groups>
|
||||||
|
|
||||||
|
<representation-property>macAddress</representation-property>
|
||||||
|
|
||||||
<config-description>
|
<config-description>
|
||||||
<parameter name="ipAddress" type="text" required="true">
|
<parameter name="ipAddress" type="text" required="true">
|
||||||
<label>Network Address</label>
|
<label>Network Address</label>
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
<channel-group id="cc-m1" typeId="cc-m1"/>
|
<channel-group id="cc-m1" typeId="cc-m1"/>
|
||||||
</channel-groups>
|
</channel-groups>
|
||||||
|
|
||||||
|
<representation-property>macAddress</representation-property>
|
||||||
|
|
||||||
<config-description>
|
<config-description>
|
||||||
<parameter name="ipAddress" type="text" required="true">
|
<parameter name="ipAddress" type="text" required="true">
|
||||||
<label>Network Address</label>
|
<label>Network Address</label>
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
<channel-group id="ir-m1" typeId="ir-m1"/>
|
<channel-group id="ir-m1" typeId="ir-m1"/>
|
||||||
</channel-groups>
|
</channel-groups>
|
||||||
|
|
||||||
|
<representation-property>macAddress</representation-property>
|
||||||
|
|
||||||
<config-description>
|
<config-description>
|
||||||
<parameter name="ipAddress" type="text" required="true">
|
<parameter name="ipAddress" type="text" required="true">
|
||||||
<label>Network Address</label>
|
<label>Network Address</label>
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
<channel-group id="sl-m1" typeId="sl-m1"/>
|
<channel-group id="sl-m1" typeId="sl-m1"/>
|
||||||
</channel-groups>
|
</channel-groups>
|
||||||
|
|
||||||
|
<representation-property>macAddress</representation-property>
|
||||||
|
|
||||||
<config-description>
|
<config-description>
|
||||||
<parameter name="ipAddress" type="text" required="true">
|
<parameter name="ipAddress" type="text" required="true">
|
||||||
<label>Network Address</label>
|
<label>Network Address</label>
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
<channel-group id="ir-m1-c1" typeId="ir-m1-c1"/>
|
<channel-group id="ir-m1-c1" typeId="ir-m1-c1"/>
|
||||||
</channel-groups>
|
</channel-groups>
|
||||||
|
|
||||||
|
<representation-property>macAddress</representation-property>
|
||||||
|
|
||||||
<config-description>
|
<config-description>
|
||||||
<parameter name="ipAddress" type="text" required="true">
|
<parameter name="ipAddress" type="text" required="true">
|
||||||
<label>Network Address</label>
|
<label>Network Address</label>
|
||||||
|
Loading…
Reference in New Issue
Block a user