Android App trend chart error

  • Platform information:
    • Hardware: Raspberry Pi 4/1 GiB RAM/ 32 GiB SD card
    • OS: openhabian 6.6.31
    • Java Runtime Environment: OpenJDK 17.0.12
    • openHAB version: 4.2.1
  • Issue of the topic: When clicking on a trend chart in the Android app it used to load a larger chart with a tool to select the date range. Recently opening the chart works, but clicking on it to open the chart view with the time selector fails. When viewing the sitemap through HTTP (openhabserver/basicui) the trends and time selector works as expected. It appears to be a problem with parsing a datetime string in Java, see error below. The datetime format as received do appear to be incorrect, since it contains to T fields, however I do not know the origin of the date string.
  • Please post configurations (if applicable): Not sure what configuration is relevant.
  • If logs where generated please post these here using code fences:
2026-03-25 19:35:31.140 [ERROR] [internal.JSONResponseExceptionMapper] - Unexpected exception occurred while processing REST request.
java.lang.IllegalArgumentException: 2026-03-24T19:35:31.014+02:00[Africa/Johannesburg] is not in a valid format.
	at org.openhab.core.library.types.DateTimeType.<init>(DateTimeType.java:114) ~[?:?]
	at org.openhab.core.io.rest.core.internal.persistence.PersistenceResource.convertTime(PersistenceResource.java:339) ~[?:?]
	at org.openhab.core.io.rest.core.internal.persistence.PersistenceResource.createDTO(PersistenceResource.java:383) ~[?:?]
	at org.openhab.core.io.rest.core.internal.persistence.PersistenceResource.getItemHistoryDTO(PersistenceResource.java:349) ~[?:?]
	at org.openhab.core.io.rest.core.internal.persistence.PersistenceResource.httpGetPersistenceItemData(PersistenceResource.java:298) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]


This was fixed by this PR. That fix is contained in the 3.19.6 and 3.19.7 beta releases.

Alternative workaround: update to OH 5.0 or newer :wink:

Thank you for the reference. I can confirm that the 3.19.7 beta version of the app handles the interactive graphs properly.

Edit: fixed version number

Update: I upgraded openHAB to 4.3.10. Now the current Android app version 3.19.5 also correctly displays the interactive graphs.