]> git.basschouten.com Git - openhab-addons.git/commitdiff
[globalcache] Add representation property (#9471)
authorMark Hilbush <mark@hilbush.com>
Tue, 22 Dec 2020 22:07:25 +0000 (17:07 -0500)
committerGitHub <noreply@github.com>
Tue, 22 Dec 2020 22:07:25 +0000 (14:07 -0800)
Signed-off-by: Mark Hilbush <mark@hilbush.com>
bundles/org.openhab.binding.globalcache/src/main/java/org/openhab/binding/globalcache/internal/discovery/GlobalCacheDiscoveryService.java
bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/gc-100-06.xml
bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/gc-100-12.xml
bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/itach-cc.xml
bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/itach-flex.xml
bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/itach-ir.xml
bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/itach-sl.xml
bundles/org.openhab.binding.globalcache/src/main/resources/OH-INF/thing/zmote.xml

index 49bb8f4e31e1b9a19a90e469eadd3280b1a4226d..5fb450ec5d6cac4ab17231ba9accb143ff897fc6 100644 (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());
                 }
             }
index 6ec0d84bf819700f6ee69a903a723e778b964dd9..eb21a21c8060bd1802e8a3fa8a02ec3fbd37edda 100644 (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>
index 4b35b7c8e7b83e5cd11da4b3153733fbbe3dac31..210ff3c1619805c6e3f45a3812a10b37b99423a4 100644 (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>
index 78bf77df3facf980cb9a47f3630c9ed6b6e92652..b7cac18b84e36ba9a6ee5778c40750303125294a 100644 (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>
index d8a71033879576e0c6879428743aac9698435389..b68861587d56e4e3a12548c4ee77edf90744a869 100644 (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>
index 1a541fb4ba62bc8167ee8199a4bd06b7f9859a44..9355b8825f48d0a4a3461b36ae7fdb17320a82d1 100644 (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>
index abb1f396746b31589a92039d346d5223834351c2..fac47bd63ae8a7024cb1fd6aef285f6a2a434197 100644 (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>
index e61ddf9db891be9167300ebfa1ac1308d0bcb50f..87df9bf2e414ea340bc9cbdb971b30501f818e13 100644 (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>