Hi,
I want to control devices through openHAB from my own app. Where do I start? I am new to the platform and community but one of the openHAB users recommended me this platform, so I thought I will give it a try.
@mueller-ma, @Thedannymullen It’s just a completely different approach to the UI and the way you control your home. It’s free and no in app-purchases so far.
To speed up the integration, I could then take a look at the official app source code, right? So many things are new here that I don’t even know where to look
You can use code from the official app as long as you obey the license.
The most interesting part in the app is the connection handling: https://github.com/openhab/openhab-android/tree/master/mobile/src/main/java/org/openhab/habdroid/core/connection. You can call getUsableConnection() from (nearly) everywhere in the app and get a http client with url, username and pw set.
I want to encourage you to fork the official app, so you can contribute it back.