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

Redirect to local openHAB server #436

Open
mueller-ma opened this issue Dec 28, 2023 · 0 comments
Open

Redirect to local openHAB server #436

mueller-ma opened this issue Dec 28, 2023 · 0 comments

Comments

@mueller-ma
Copy link
Member

mueller-ma commented Dec 28, 2023

There are several use cases to be able to create "deep links" to something in openHAB, e.g. a subpage of a Sitemap or a tab in Main UI. These use cases include:

While you could use the links that Main UI and Basic UI in the browser use, there are two reasons not to do so:

  1. The host name may change based on the location of the client (e.g. local or via myopenHAB)
  2. AFAIK Android apps cannot register themselves to handle URLs during runtime, but only during compile time.

@ghys came up with https://my.home-assistant.io/. It's a webpage where you configure the URL for your local home-assistant server and get redirected to it, e.g. "Add a zwave device": https://my.home-assistant.io/redirect/add_zwave_device/

We could do something similar, either on the website directly or in a new project. It should be under a separate domain like link.openhab.org, so the Android app (and others) can register themselves to handle links to this website. Android apps can also register for a path on a website, e.g. openhab.org/link

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

No branches or pull requests

1 participant