From: Mark Hilbush Date: Tue, 22 Dec 2020 22:07:25 +0000 (-0500) Subject: [globalcache] Add representation property (#9471) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=e648fc6c8cf41155c002ff6900423ca770fb4256;p=openhab-addons.git [globalcache] Add representation property (#9471) Signed-off-by: Mark Hilbush --- diff --git a/bundles/org.openhab.binding.globalcache/src/main/java/org/openhab/binding/globalcache/internal/discovery/GlobalCacheDiscoveryService.java b/bundles/org.openhab.binding.globalcache/src/main/java/org/openhab/binding/globalcache/internal/discovery/GlobalCacheDiscoveryService.java index 49bb8f4e31..5fb450ec5d 100644 --- a/bundles/org.openhab.binding.globalcache/src/main/java/org/openhab/binding/globalcache/internal/discovery/GlobalCacheDiscoveryService.java +++ b/bundles/org.openhab.binding.globalcache/src/main/java/org/openhab/binding/globalcache/internal/discovery/GlobalCacheDiscoveryService.java @@ -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()); } } diff --git a/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/gc-100-06.xml b/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/gc-100-06.xml index 6ec0d84bf8..eb21a21c80 100644 --- a/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/gc-100-06.xml +++ b/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/gc-100-06.xml @@ -15,6 +15,8 @@ + macAddress + diff --git a/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/gc-100-12.xml b/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/gc-100-12.xml index 4b35b7c8e7..210ff3c161 100644 --- a/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/gc-100-12.xml +++ b/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/gc-100-12.xml @@ -18,6 +18,8 @@ + macAddress + diff --git a/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/itach-cc.xml b/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/itach-cc.xml index 78bf77df3f..b7cac18b84 100644 --- a/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/itach-cc.xml +++ b/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/itach-cc.xml @@ -14,6 +14,8 @@ + macAddress + diff --git a/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/itach-flex.xml b/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/itach-flex.xml index d8a7103387..b68861587d 100644 --- a/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/itach-flex.xml +++ b/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/itach-flex.xml @@ -16,6 +16,8 @@ + macAddress + diff --git a/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/itach-ir.xml b/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/itach-ir.xml index 1a541fb4ba..9355b8825f 100644 --- a/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/itach-ir.xml +++ b/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/itach-ir.xml @@ -14,6 +14,8 @@ + macAddress + diff --git a/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/itach-sl.xml b/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/itach-sl.xml index abb1f39674..fac47bd63a 100644 --- a/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/itach-sl.xml +++ b/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/itach-sl.xml @@ -14,6 +14,8 @@ + macAddress + diff --git a/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/zmote.xml b/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/zmote.xml index e61ddf9db8..87df9bf2e4 100644 --- a/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/zmote.xml +++ b/bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/zmote.xml @@ -14,6 +14,8 @@ + macAddress +