]> git.basschouten.com Git - openhab-addons.git/commitdiff
add discoveryMethods (#16424)
authormlobstein <michael.lobstein@gmail.com>
Mon, 19 Feb 2024 16:04:51 +0000 (10:04 -0600)
committerGitHub <noreply@github.com>
Mon, 19 Feb 2024 16:04:51 +0000 (17:04 +0100)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
bundles/org.openhab.binding.roku/src/main/resources/OH-INF/addon/addon.xml

index 106ebc072d686121397437fcffd59d9898aecc9d..b7fa771eb9a209d9fe4fb71a208cbd46f5e8090a 100644 (file)
@@ -8,4 +8,25 @@
        <description>Controls Roku Streaming Media Players and TVs</description>
        <connection>local</connection>
 
+       <discovery-methods>
+               <discovery-method>
+                       <service-type>upnp</service-type>
+                       <match-properties>
+                               <match-property>
+                                       <name>modelDescription</name>
+                                       <regex>(?i).*Roku.*</regex>
+                               </match-property>
+                       </match-properties>
+               </discovery-method>
+               <discovery-method>
+                       <service-type>upnp</service-type>
+                       <match-properties>
+                               <match-property>
+                                       <name>friendlyName</name>
+                                       <regex>(?i).*Roku.*</regex>
+                               </match-property>
+                       </match-properties>
+               </discovery-method>
+       </discovery-methods>
+
 </addon:addon>