Skip to content

Commit

Permalink
Make bindings discoverable on system startup (#15817)
Browse files Browse the repository at this point in the history
* [discovery-methods] mDNS discovery methods
* [discovery-methods] UPnP discovery methods

---------

Signed-off-by: Andrew Fiddian-Green <[email protected]>
  • Loading branch information
andrewfg authored Dec 7, 2023
1 parent d6b19fe commit 3814f37
Show file tree
Hide file tree
Showing 70 changed files with 851 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,17 @@
<description>This is the binding for the AmpliPi Home Audio System from MicroNova.</description>
<connection>local</connection>

<discovery-methods>
<discovery-method>
<service-type>mdns</service-type>
<mdns-service-type>_http._tcp.local.</mdns-service-type>
<match-properties>
<match-property>
<name>name</name>
<regex>amplipi-api</regex>
</match-property>
</match-properties>
</discovery-method>
</discovery-methods>

</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,16 @@
<default>255</default>
</parameter>
</config-description>

<discovery-methods>
<discovery-method>
<service-type>mdns</service-type>
<mdns-service-type>_androidtvremote2._tcp.local.</mdns-service-type>
</discovery-method>
<discovery-method>
<service-type>mdns</service-type>
<mdns-service-type>_amzn-wplay._tcp.local.</mdns-service-type>
</discovery-method>
</discovery-methods>

</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,15 @@
<description>This is the add-on for AndroidTV.</description>
<connection>local</connection>

<discovery-methods>
<discovery-method>
<service-type>mdns</service-type>
<mdns-service-type>_androidtvremote2._tcp.local.</mdns-service-type>
</discovery-method>
<discovery-method>
<service-type>mdns</service-type>
<mdns-service-type>_nv_shield_remote._tcp.local.</mdns-service-type>
</discovery-method>
</discovery-methods>

</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,16 @@
<description>This is the binding for a Autelis pool controller.</description>
<connection>local</connection>

<discovery-methods>
<discovery-method>
<service-type>upnp</service-type>
<match-properties>
<match-property>
<name>manufacturer</name>
<regex>(?i)AUTELIS.*</regex>
</match-property>
</match-properties>
</discovery-method>
</discovery-methods>

</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,16 @@
<description>This is the binding for AVM FRITZ! devices.</description>
<connection>local</connection>

<discovery-methods>
<discovery-method>
<service-type>upnp</service-type>
<match-properties>
<match-property>
<name>deviceType</name>
<regex>(?i).*fritzbox.*</regex>
</match-property>
</match-properties>
</discovery-method>
</discovery-methods>

</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@
<description>This is the binding for the Bond Bridge for Ceiling Fans and other RF devices.</description>
<connection>local</connection>

<discovery-methods>
<discovery-method>
<service-type>mdns</service-type>
<mdns-service-type>_bond._tcp.local.</mdns-service-type>
</discovery-method>
</discovery-methods>

</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@
<description>This is the binding for Bose SoundTouch devices.</description>
<connection>local</connection>

<discovery-methods>
<discovery-method>
<service-type>mdns</service-type>
<mdns-service-type>_soundtouch._tcp.local.</mdns-service-type>
</discovery-method>
</discovery-methods>

</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,11 @@
</parameter>
</config-description>

<discovery-methods>
<discovery-method>
<service-type>mdns</service-type>
<mdns-service-type>_googlecast._tcp.local.</mdns-service-type>
</discovery-method>
</discovery-methods>

</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,20 @@
with the HUE binding which makes the lights and plugs available.</description>
<connection>local</connection>

<discovery-methods>
<discovery-method>
<service-type>upnp</service-type>
<match-properties>
<match-property>
<name>manufacturerURI</name>
<regex>.*dresden.*</regex>
</match-property>
<match-property>
<name>manufacturer</name>
<regex>dresden elektronik</regex>
</match-property>
</match-properties>
</discovery-method>
</discovery-methods>

</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,18 @@
<description>Binding for controlling network enabled Denon and Marantz receivers.</description>
<connection>local</connection>

<discovery-methods>
<discovery-method>
<service-type>mdns</service-type>
<mdns-service-type>_raop._tcp.local.</mdns-service-type>
<match-properties>
<match-property>
<name>name</name>
<regex>^(000678|0005CD)</regex>
</match-property>
</match-properties>
</discovery-method>
</discovery-methods>


</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,16 @@
<description>@text/binding_desc</description>
<connection>local</connection>

<discovery-methods>
<discovery-method>
<service-type>mdns</service-type>
<mdns-service-type>_tcp.local.</mdns-service-type>
<match-properties>
<match-property>
<name>application</name>
<regex>.*dssweb.*</regex>
</match-property>
</match-properties>
</discovery-method>
</discovery-methods>
</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@
<description>This is the binding for D-Link Smart Home devices</description>
<connection>local</connection>

<discovery-methods>
<discovery-method>
<service-type>mdns</service-type>
<mdns-service-type>_dhnap._tcp.local.</mdns-service-type>
</discovery-method>
</discovery-methods>

</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,17 @@
<description>This is the binding for Drayton Wiser smart heating system.</description>
<connection>local</connection>

<discovery-methods>
<discovery-method>
<service-type>mdns</service-type>
<mdns-service-type>_http._tcp.local.</mdns-service-type>
<match-properties>
<match-property>
<name>name</name>
<regex>.*WiserHeat.*</regex>
</match-property>
</match-properties>
</discovery-method>
</discovery-methods>

</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,17 @@
<description>This is the binding for Enigma2.</description>
<connection>local</connection>

<discovery-methods>
<discovery-method>
<service-type>mdns</service-type>
<mdns-service-type>_http._tcp.local.</mdns-service-type>
<match-properties>
<match-property>
<name>name</name>
<regex>.*enigma.*</regex>
</match-property>
</match-properties>
</discovery-method>
</discovery-methods>

</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,17 @@
<description>This is the binding for Enphase Envoy solar panels.</description>
<connection>hybrid</connection>

<discovery-methods>
<discovery-method>
<service-type>mdns</service-type>
<mdns-service-type>_enphase-envoy._tcp.local.</mdns-service-type>
<match-properties>
<match-property>
<name>name</name>
<regex>.*envoy.*</regex>
</match-property>
</match-properties>
</discovery-method>
</discovery-methods>

</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,11 @@
</parameter>
</config-description>

<discovery-methods>
<discovery-method>
<service-type>mdns</service-type>
<mdns-service-type>_fbx-api._tcp.local.</mdns-service-type>
</discovery-method>
</discovery-methods>

</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,25 @@
<description>This is the binding for internet radios based on the Frontier Silicon chipset.</description>
<connection>local</connection>

<discovery-methods>
<discovery-method>
<service-type>upnp</service-type>
<match-properties>
<match-property>
<name>manufacturer</name>
<regex>(?i)(MEDION|HAMA|TEUFEL|TTMICRO|REVO|ROBERTS|AUNA|SANGEAN|ROKU).*</regex>
</match-property>
</match-properties>
</discovery-method>
<discovery-method>
<service-type>upnp</service-type>
<match-properties>
<match-property>
<name>friendlyName</name>
<regex>(?i).*(MEDION|HAMA|TEUFEL|TTMICRO|REVO|ROBERTS|AUNA|SANGEAN|ROKU).*</regex>
</match-property>
</match-properties>
</discovery-method>
</discovery-methods>

</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,16 @@
<description>The HarmonyHub Binding integrates Logitech Harmony hubs and remotes.</description>
<connection>local</connection>

<discovery-methods>
<discovery-method>
<service-type>upnp</service-type>
<match-properties>
<match-property>
<name>modelName</name>
<regex>Harmony Hub</regex>
</match-property>
</match-properties>
</discovery-method>
</discovery-methods>

</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,15 @@
<description>The Hunter Douglas PowerView binding provides access to the Hunter Douglas line of PowerView shades.</description>
<connection>local</connection>

<discovery-methods>
<discovery-method>
<service-type>mdns</service-type>
<mdns-service-type>_powerview-g3._tcp.local.</mdns-service-type>
</discovery-method>
<discovery-method>
<service-type>mdns</service-type>
<mdns-service-type>_powerview._tcp.local.</mdns-service-type>
</discovery-method>
</discovery-methods>

</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,16 @@
<description>Binding for the Denon HEOS system.</description>
<connection>local</connection>

<discovery-methods>
<discovery-method>
<service-type>upnp</service-type>
<match-properties>
<match-property>
<name>manufacturer</name>
<regex>(?i)DENON</regex>
</match-property>
</match-properties>
</discovery-method>
</discovery-methods>

</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,11 @@
to household devices from brands like Bosch and Siemens.</description>
<connection>cloud</connection>

<discovery-methods>
<discovery-method>
<service-type>mdns</service-type>
<mdns-service-type>_homeconnect._tcp.local.</mdns-service-type>
</discovery-method>
</discovery-methods>

</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,16 @@
<description>This is the binding for Homematic gateways</description>
<connection>local</connection>

<discovery-methods>
<discovery-method>
<service-type>upnp</service-type>
<match-properties>
<match-property>
<name>manufacturer</name>
<regex>(?i)HOMEGEAR</regex>
</match-property>
</match-properties>
</discovery-method>
</discovery-methods>

</addon:addon>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,35 @@
<description>Binding for HP Printers with Embedded Web Servers</description>
<connection>local</connection>

<discovery-methods>
<discovery-method>
<service-type>mdns</service-type>
<mdns-service-type>_printer._tcp.local.</mdns-service-type>
<match-properties>
<match-property>
<name>rp</name>
<regex>.*</regex>
</match-property>
<match-property>
<name>ty</name>
<regex>(?i)HP .*</regex>
</match-property>
</match-properties>
</discovery-method>
<discovery-method>
<service-type>mdns</service-type>
<mdns-service-type>_ipp._tcp.local.</mdns-service-type>
<match-properties>
<match-property>
<name>rp</name>
<regex>.*</regex>
</match-property>
<match-property>
<name>ty</name>
<regex>(?i)HP .*</regex>
</match-property>
</match-properties>
</discovery-method>
</discovery-methods>

</addon:addon>
Loading

0 comments on commit 3814f37

Please sign in to comment.