Android App Beta

Yes, that’s possible. There’s a PR implementing it: Implement JS interface of OH3 UI by mueller-ma · Pull Request #2328 · openhab/openhab-android · GitHub

Hi.
I started playing with the function to add a OH3 shortcut from the app directly on my home screen. Nice! A few minor issues (which may already be known, but I thought I’d mention them):

  • When I click the new shortcut it looks like it loads first the old UI, then a completely white page, then it’s completely black before the UI finally shows up. All this takes about three seconds and looks kinda un-pretty.
  • When I push the back button I get to the old UI and have to push back again to exit the app.
  • The labels of my controls doesn’t fit, they overlap each other. But maybe that’s a matter of how I layout my page? Comparison between how it looks on my computer and in the app:

    bild

This is something that must be fixed in the new UI itself. @ysc

This should get better after Add option to select default view · Issue #2334 · openhab/openhab-android · GitHub has been implemented.

1 Like

I didn’t get a response from Travis support, so we migrated to GitHub Actions: Deploy APK on GitHub · Workflow runs · openhab/openhab-android · GitHub
The beta versions are published to the Play Store and GitHub again.

If I want to access the main UI remotely in the app, I first get to the myopenhab page and have to click on the dashload again to get to the UI. See screenshot.

You have to change the remote server url to https://home.myopenhab.org. There should be some hint in the app or it should auto fix it.

2 Likes

I have already tested this, it works. However, the notifications no longer work.

Yes it is, if you intend to use it on a phone you have to configure the breakpoints in the Column Options menu entry.

1 Like

What does the notification status in the settings say?

Work great, thanks for tips!

Notification are unavailable with home.myopenhab.org url.


If I switch back removing the home part, notification work again.

1 Like

Ok, I look into it.

2 Likes

Please check out 2.15.27-beta for the OH3 issue with myopenHAB.

Don’t think it’s working

Edit: umm, actually it’s working I think, just that message seems incorrect. Can someone else confirm too?

The url must be set to myopenhab.org now.

1 Like

I have a white screen when I’m on 4g :


Some log

01-30 20:14:10.434 16168 16235 I okhttp.OkHttpClient: --> GET https://<openhab-remote-address-openHAB>/rest/
01-30 20:14:10.434 16168 16235 I okhttp.OkHttpClient: User-Agent: openHAB client for Android
01-30 20:14:10.434 16168 16235 I okhttp.OkHttpClient: Cache-Control: no-cache
01-30 20:14:10.434 16168 16235 I okhttp.OkHttpClient: --> END GET
01-30 20:14:10.435 16168 16168 D AbstractBaseActivity: Show snackbar with tag connectionEstablished
01-30 20:14:10.480 16168 16240 I okhttp.OkHttpClient: <-- 200 OK https://<openhab-remote-address-openHAB>/addAndroidRegistration?deviceId=4e5eed87eb692748-beta&deviceModel=OnePlus+HD1900+%28B%C3%AAta%29&regId=fl4MlXo3RjS4e2_aBTiSZn:APA91bHLZOKMObVqQXB2yCQQQ40W6jz3Fm-Tr2sT6aD2b_bYUoy93ED178Znpkcarg_xpwP9R0wGpAMVVevMhjGAtDHYZ89JWWkvqf336bd1Puiica2VnHtztBwQRyHqwnFbbEGqjl_p (93ms)
01-30 20:14:10.480 16168 16240 I okhttp.OkHttpClient: Server: nginx/1.10.0 (Ubuntu)
01-30 20:14:10.480 16168 16240 I okhttp.OkHttpClient: Date: Sat, 30 Jan 2021 19:14:08 GMT
01-30 20:14:10.480 16168 16240 I okhttp.OkHttpClient: Content-Type: text/html; charset=utf-8
01-30 20:14:10.480 16168 16240 I okhttp.OkHttpClient: Content-Length: 7
01-30 20:14:10.480 16168 16240 I okhttp.OkHttpClient: Connection: keep-alive
01-30 20:14:10.480 16168 16240 I okhttp.OkHttpClient: X-Powered-By: Express
01-30 20:14:10.481 16168 16240 I okhttp.OkHttpClient: ETag: W/"7-8vhXDd17HntXExG7+RWe+wJXHgc"
01-30 20:14:10.481 16168 16240 I okhttp.OkHttpClient: Set-Cookie: ██
01-30 20:14:10.481 16168 16240 I okhttp.OkHttpClient: <-- END HTTP
01-30 20:14:10.483 16168 16241 D FcmRegistrationService: FCM reg id success
01-30 20:14:10.709 16168 16168 D MainActivity: onStop()
01-30 20:14:10.709 16168 16168 D PageConnectionHolderFragment: onStop()
01-30 20:14:10.710 16168 16168 I am_on_stop_called: [0,org.openhab.habdroid.ui.MainActivity,STOP_ACTIVITY_ITEM]
01-30 20:14:10.710 16168 16168 D MainActivity: onSaveInstanceState()

Et my configuration :

Thanks for your work

Edit : work great when I access via chrome with https://home.myopenhab.org/ and same email/password

Can you see if you have any logs in the openhab server side - when you try to access using the app. Make sure server address is http://myopenhab.org

Tonight I will check the log and yes the url is good.

But digging a little, I remark that everything work great until I’m not logged in on my openhab instance.
I can access my dashboard, and for example, if I want to access the configuration part, I login in and everything became blank.

I have some log
2021-01-31 22:26:49.083 [WARN ] [io.openhabcloud.internal.CloudClient] - Unsupported request method HEAD

I set log:setdebug CloudClient but I don’t have more info :