Android App Beta

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 :

Yup this is what I be suspected. I have the same error. But I can get past it sometimes and the page shows up. Sometimes only white screen and this error

1 Like

Hi,
Downloaded the newest version some minutes ago to test oh3 ui.

Maybe it’s just me but my backgrounds in the location cards are not shown.

Can somebody confirm this problem?

I’m on the beta, but my images are working. I’ve copied my images to conf/html so they get hosted by openHAB itself. Maybe your phone can’t pull down the images if you are using a URL to some other site?

Mine are in a subfolder of html and configured like this:

backgroundImage: http://XXX.XXX.XXX.XX:8080/static/pictures/Abstellraum.jpg

Maybe the subfolder is the problem?

The pictures are working in the browser on the phone.

Can you try backgroundImage: /static/pictures/Abstellraum.jpg?

2 Likes

This is working :smiley:
Thank you very much

I have some issues with the app since it updated two days ago version 2.16.0.
I can no longer connect to remote (myopenhab.org). Locally it works fine, and my username/pw works fine using chrome. But when I use the app, I get a “Authenticate failed”.

When enter the server settings, it says “Connected to myopenHAB”.
But on the main screen I get the Authentication error.

I assume this may have something to do with the ssl certificate, but I have no idea how to fix it. I just use plain default setup.

All help appreaciated.

EDIT…

Found the issue… Seems like my password stored in google chrome and in my Android phone is not the same even though I use google to store my credentials…This is strange…
I just doubble checked, and they´re not equal. Using the password from Chrome got the app to work just fine again…

(Stupid me, I should have checked this at first :face_with_raised_eyebrow:).

Case closed!

Which server version do you have? Please enable “extended error messages” in the app and post a screenshot of the error.

openhab 2.5.10

How many servers do you have configured? Maybe there’s no username or password set for one of them.

Only one server.

I first thought I had to set up a second to get the remote to work. But that gave me the same issue.
Then I discovered there is a remote setup in the first server (default), where I entered the url for myopenhab, the username/pw. But again the same issue.

I just tried myself after upgrading to 2.16.0 as previous settings were lost.
It is working. You just have to enter “https://myopenhab.org” as remote URL and of course a valid login/password.

Thats exactly what I have done, (just like I used to do… I have been using this app for years now, never had issues).

Btw all my settings was gone as well with the update.

@mueller-ma and all android app maintainers : the integration of the new UI is a great feature, thank you.

Ok, so that is just me having chance.

1 Like