I just cleared the log in the app and put the phone on a wireless charger. On another device I used the app to view the state of the charge state item and saw that the value was UNDEF, in the app it shows a dash “-” as the item value. The following was written to the log:
-----------------------
Device information
Model: SM-G988B
Manufacturer: samsung
Brand: samsung
Device: z3s
Product: z3sxeea
OS: 10
-----------------------
--------- beginning of main
07-17 13:42:57.192 22749 22749 D ViewRootImpl@cbd9628[LogActivity]: ViewPostIme pointer 0
07-17 13:42:57.199 22749 22749 D ViewRootImpl@cbd9628[LogActivity]: ViewPostIme pointer 1
--------- beginning of events
07-17 13:42:57.206 22749 22749 I menu_item_selected: [0,Reload]
07-17 13:42:57.207 22749 22749 D LogActivity: onOptionsItemSelected()
07-17 13:43:02.593 22749 22749 D BackgroundTasksManager: onReceive() with intent android.intent.action.ACTION_POWER_CONNECTED
07-17 13:43:02.593 22749 22749 D BackgroundTasksManager: Battery or charging state changed: android.intent.action.ACTION_POWER_CONNECTED
07-17 13:43:02.600 22749 22749 D BackgroundTasksManager: Both periodic workers are running
07-17 13:43:02.614 22749 22749 D BackgroundTasksManager: Both periodic workers are running
07-17 13:43:02.620 22749 22749 D BackgroundTasksManager: Scheduling work for tag charging_state
07-17 13:43:03.137 22749 22834 D ConnectivityManager: requestNetwork; CallingUid : 10292, CallingPid : 22749
07-17 13:43:03.186 22749 10784 D ItemUpdateWorker: Trying to get connection
07-17 13:43:03.225 22749 10784 D ItemUpdateWorker: Trying to update Item 'stevephoneChargingState' to value UNDEF, was UNDEF
07-17 13:43:03.232 22749 10784 D ItemUpdateWorker: Item 'stevephoneChargingState' successfully updated to value UNDEF
07-17 13:43:03.236 22749 22834 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=afc65cb9-0264-4050-bfde-32529aba6493, tags={ itemUploads, charging_state, org.openhab.habdroid.background.ItemUpdateWorker } ]
It looks like the app detected that the power was connected but updated the item value to UNDEF.
Did you mean the change to support updating a switch with the charge state or the charge state logging?
Here’s the log when putting the phone on a wireless charger:
-----------------------
Device information
Model: SM-G988B
Manufacturer: samsung
Brand: samsung
Device: z3s
Product: z3sxeea
OS: 10
-----------------------
--------- beginning of main
07-20 16:59:51.145 7051 7051 D BackgroundTasksManager: onReceive() with intent android.intent.action.ACTION_POWER_CONNECTED
07-20 16:59:51.145 7051 7051 D BackgroundTasksManager: Battery or charging state changed: android.intent.action.ACTION_POWER_CONNECTED
07-20 16:59:51.149 7051 7051 D BackgroundTasksManager: Both periodic workers are running
07-20 16:59:51.154 7051 7051 D BackgroundTasksManager: Both periodic workers are running
07-20 16:59:51.157 7051 7051 D BackgroundTasksManager: EXTRA_STATUS is 3, EXTRA_PLUGGED is 0
07-20 16:59:51.157 7051 7051 D BackgroundTasksManager: Scheduling work for tag charging_state
07-20 16:59:51.316 7051 7151 D ConnectivityManager: requestNetwork; CallingUid : 10292, CallingPid : 7051
07-20 16:59:51.322 7051 26416 D ItemUpdateWorker: Trying to get connection
07-20 16:59:51.340 7051 26416 D ItemUpdateWorker: Trying to update Item 'stevephoneChargingState' to value UNDEF, was UNDEF
07-20 16:59:51.348 7051 26416 D ItemUpdateWorker: Item 'stevephoneChargingState' successfully updated to value UNDEF
07-20 16:59:51.351 7051 7240 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=cb5be3b5-845f-4c75-a0c1-e6c657f5d588, tags={ itemUploads, charging_state, org.openhab.habdroid.background.ItemUpdateWorker } ]
07-20 16:59:51.354 7051 7051 D ConnectivityManager: unregisterNetworkCallback; CallingUid : 10292, CallingPid : 7051
07-20 16:59:56.679 7051 7051 D ViewRootImpl@f4643e7[LogActivity]: ViewPostIme pointer 0
07-20 16:59:56.686 7051 7051 D ViewRootImpl@f4643e7[LogActivity]: ViewPostIme pointer 1
--------- beginning of events
07-20 16:59:56.700 7051 7051 I menu_item_selected: [0,Reload]
07-20 16:59:56.700 7051 7051 D LogActivity: onOptionsItemSelected()
The charge state item sometimes doesn’t get updated correctly, as shown in the log above.
So the app received the signal, that power is connected, but the battery api returns BATTERY_STATUS_DISCHARGING (this is a constant with the value 3) and no charger connected (“EXTRA_PLUGGED is 0”).
No idea why this happens and what we can do about it.
Please define ‘correctly’. It’s intentional that small images aren’t scaled up to full screen width anymore (BasicUI behaves the same way), for scaling down large images to screen width I opened a PR.
Hello,
I experience the same issue with scaling of images even with .17 beta. I checked also the behavior over the basic ui web interface and there are no issues. That means the apps doesnt seem to handle images the same way as basic ui webinterface as it supposed to be . I have a map image from the miio binding for my roborock s50 and in the app its not the full width of a row, but on webinterface it is. Its tested on the same device to make sure it does not behave different because of a different resolution.
I checked and the resolution is : around 700*800. So its too small i guess for Display. Sadly there is no option in openhab to stretch fit with some special item setting.
Hi.
I’ve just upgraded my OH to version 3 with the nice new GUI. Are there any plans to adopt the apps to the new GUI in OH3? Any ongoing work?
Also a tiny problem: My app works fine. However I get a popup with a HTTP 404 error message every time I start it. At the same time I get this in my Apache log (using Apache as a proxy):