openhab / website

This repository contains the final artifacts from which the project website is served.
https://www.openhab.org/
20 stars 47 forks source link

Redirect to local openHAB server #436

Open mueller-ma opened 6 months ago

mueller-ma commented 6 months ago

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