Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add generic MDNS/UPNP discovery and propose adapters #299

Open
Apollon77 opened this issue Nov 21, 2023 · 0 comments
Open

Add generic MDNS/UPNP discovery and propose adapters #299

Apollon77 opened this issue Nov 21, 2023 · 0 comments

Comments

@Apollon77
Copy link
Collaborator

The idea is the following to also simplify adapter efforts and such:

If devices are discoverable using MDNS or UPNP we could add a section to io-package where adapters expose the relevant services/protocols for discovery.

Idea could be

"common": {
    ...
    "discovery": {
        "mdns": [
            {
                "service": "_googlecast",
                "protocol": "tcp"
           },
           {
               "serviceRegEx": "_matter[cd]",
               "protocol": "udp"
        ],
        "upnp": [
            // whatever makes sense here
        ]
    }
}

The discovery adapter then load the repository and parses out all such definitions and matchs the found things against them and if it matches then this adapter is proposed.

With this we can have "detailed fancy discovery logic" by adding code to discovery adapter, or simply configuring it in the adapters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant