From 9c2070f74898f390178ab29df2b330d876d678c9 Mon Sep 17 00:00:00 2001 From: Bob A Date: Mon, 22 Aug 2022 13:37:07 -0400 Subject: [PATCH] [lutron] Add mDNS discovery for RadioRA 3 processor (#13299) Signed-off-by: Bob Adair --- .../discovery/LutronMdnsBridgeDiscoveryService.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/discovery/LutronMdnsBridgeDiscoveryService.java b/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/discovery/LutronMdnsBridgeDiscoveryService.java index 861637f6051..16481e20178 100644 --- a/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/discovery/LutronMdnsBridgeDiscoveryService.java +++ b/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/discovery/LutronMdnsBridgeDiscoveryService.java @@ -59,6 +59,10 @@ public class LutronMdnsBridgeDiscoveryService implements MDNSDiscoveryParticipan private static final String PRODTYP_RA2_SELECT = "Main Repeater"; private static final String DEVCLASS_RA2_SELECT = "080E0401"; + private static final String PRODFAM_RA3 = "RadioRA 3"; + private static final String PRODTYP_RA3 = "Processor"; + private static final String DEVCLASS_RA3 = "081B0101"; + private static final String DEVCLASS_CONNECT_BRIDGE = "08090301"; private static final String DEFAULT_LABEL = "Unknown Lutron bridge"; @@ -123,6 +127,10 @@ public class LutronMdnsBridgeDiscoveryService implements MDNSDiscoveryParticipan properties.put(PROPERTY_PRODFAM, PRODFAM_RA2_SELECT); properties.put(PROPERTY_PRODTYP, PRODTYP_RA2_SELECT); label = PRODFAM_RA2_SELECT + " " + PRODTYP_RA2_SELECT; + } else if (DEVCLASS_RA3.equals(devclass)) { + properties.put(PROPERTY_PRODFAM, PRODFAM_RA3); + properties.put(PROPERTY_PRODTYP, PRODTYP_RA3); + label = PRODFAM_RA3 + " " + PRODTYP_RA3; } else if (DEVCLASS_CONNECT_BRIDGE.equals(devclass)) { logger.debug("Lutron Connect Bridge discovered. Ignoring."); return null;