From e648fc6c8cf41155c002ff6900423ca770fb4256 Mon Sep 17 00:00:00 2001 From: Mark Hilbush Date: Tue, 22 Dec 2020 17:07:25 -0500 Subject: [PATCH] [globalcache] Add representation property (#9471) Signed-off-by: Mark Hilbush --- .../internal/discovery/GlobalCacheDiscoveryService.java | 1 + .../src/main/resources/OH-INF/thing/gc-100-06.xml | 2 ++ .../src/main/resources/OH-INF/thing/gc-100-12.xml | 2 ++ .../src/main/resources/OH-INF/thing/itach-cc.xml | 2 ++ .../src/main/resources/OH-INF/thing/itach-flex.xml | 2 ++ .../src/main/resources/OH-INF/thing/itach-ir.xml | 2 ++ .../src/main/resources/OH-INF/thing/itach-sl.xml | 2 ++ .../src/main/resources/OH-INF/thing/zmote.xml | 2 ++ 8 files changed, 15 insertions(+) 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 49bb8f4e31e1b..5fb450ec5d6ca 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 @@ private synchronized void discover() { 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 6ec0d84bf8197..eb21a21c8060b 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 4b35b7c8e7b83..210ff3c161980 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 78bf77df3facf..b7cac18b84e36 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 d8a7103387957..b68861587d56e 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 1a541fb4ba62b..9355b8825f48d 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 abb1f396746b3..fac47bd63ae8a 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 e61ddf9db891b..87df9bf2e414e 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 +