How to find problem in items configuration

Hi all,

I’m using OH2 and Paper UI does not display values for may items anymore; web ui’s work ok. Most likely I’ve a mistake in my items configuration. As I already have quite many items it is difficult to find.

If I try to access them via REST API I get the following error:

http://haus:8080/rest/items/

{
  "error": {
    "message": "d !\u003d java.lang.String",
    "http-code": 500,
    "exception": {
      "class": "java.util.IllegalFormatConversionException",
      "message": "d !\u003d java.lang.String",
      "localized-message": "d !\u003d java.lang.String"
    }
  }
}

Is there an easy way to identify the item that is causing the problem (I assume an invalid format string - but can’t figure out which one it might be …

On the console “items list” does not produce any error.

thanks and kind regards,
Patrik

Hi,

I had the some issue - just found the solution (at least for my setup)
As you have guessed it was a formatting problem. I had the following item defined:

Switch Taster_Eco_Auto  "Heizungs Modus [MAP(eco.transform):%d]"

after changing it to:

Switch Taster_Eco_Auto  "Heizungs Modus [MAP(eco.transform):%s]"

(%s instead of %d)

the rest service displayed the complete item list again.

Hope that helps :slight_smile:
Thomas