[lutron] Add mDNS discovery for RadioRA 3 processor (#13299)

Signed-off-by: Bob Adair <bob.github@att.net>
This commit is contained in:
Bob A 2022-08-22 13:37:07 -04:00 committed by GitHub
parent c215dfede4
commit 9c2070f748
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;