Openhab-android: OH 3 Item control widget doesn't work

Created on 30 Nov 2020  路  3Comments  路  Source: openhab/openhab-android

Item control widget isn't working with OH 3:

Screenshot_20201130-214751

bug

Most helpful comment

12-01 08:06:35.185 26180 26180 D AbstractItemPickerActivity: Item response could not be parsed
12-01 08:06:35.185 26180 26180 D AbstractItemPickerActivity: org.json.JSONException: No value for label

Looks like the same issue as #2305 ... I'll fix this.

All 3 comments

I cannot reproduce this. Can you post the log?

Hopefully this is the right section

0,org.openhab.habdroid.ui.ItemUpdateWidgetItemPickerActivity,topStateChangedWhenResumed] 12-01 08:06:33.890 26180 29607 I okhttp.OkHttpClient: --> GET https://<openhab-local-address-openHAB>:8443/rest/items 12-01 08:06:33.890 26180 29607 I okhttp.OkHttpClient: User-Agent: openHAB client for Android 12-01 08:06:33.890 26180 29607 I okhttp.OkHttpClient: Cache-Control: no-cache 12-01 08:06:33.890 26180 29607 I okhttp.OkHttpClient: --> END GET 12-01 08:06:34.440 26180 29607 I okhttp.OkHttpClient: <-- 200 OK https://<openhab-local-address-openHAB>:8443/rest/items (549ms) 12-01 08:06:34.440 26180 29607 I okhttp.OkHttpClient: Content-Type: application/json 12-01 08:06:34.440 26180 29607 I okhttp.OkHttpClient: Date: Tue, 01 Dec 2020 08:06:33 GMT 12-01 08:06:34.440 26180 29607 I okhttp.OkHttpClient: Transfer-Encoding: chunked 12-01 08:06:34.440 26180 29607 I okhttp.OkHttpClient: Server: Jetty(9.4.20.v20190813) 12-01 08:06:34.440 26180 29607 I okhttp.OkHttpClient: <-- END HTTP 12-01 08:06:35.185 26180 26180 D AbstractItemPickerActivity: Item response could not be parsed 12-01 08:06:35.185 26180 26180 D AbstractItemPickerActivity: org.json.JSONException: No value for label 12-01 08:06:35.185 26180 26180 D AbstractItemPickerActivity: at org.json.JSONObject.get(JSONObject.java:399) 12-01 08:06:35.185 26180 26180 D AbstractItemPickerActivity: at org.json.JSONObject.getString(JSONObject.java:560) 12-01 08:06:35.185 26180 26180 D AbstractItemPickerActivity: at org.openhab.habdroid.model.LabeledValueKt.toLabeledValue(LabeledValue.kt:27) 12-01 08:06:35.185 26180 26180 D AbstractItemPickerActivity: at org.openhab.habdroid.model.ItemKt.toItem(Item.kt:157) 12-01 08:06:35.185 26180 26180 D AbstractItemPickerActivity: at org.openhab.habdroid.ui.AbstractItemPickerActivity$loadItems$1.invokeSuspend(AbstractItemPickerActivity.kt:265) 12-01 08:06:35.185 26180 26180 D AbstractItemPickerActivity: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)

12-01 08:06:35.185 26180 26180 D AbstractItemPickerActivity: Item response could not be parsed
12-01 08:06:35.185 26180 26180 D AbstractItemPickerActivity: org.json.JSONException: No value for label

Looks like the same issue as #2305 ... I'll fix this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

magd1978 picture magd1978  路  10Comments

cribskip picture cribskip  路  8Comments

dakipro picture dakipro  路  11Comments

mueller-ma picture mueller-ma  路  3Comments

mueller-ma picture mueller-ma  路  4Comments