Http bindings with JSONPATH stopped working

  • Platform information:
    • Hardware: Raspberry Pi
    • OS: openhabian
    • Java Runtime Environment: default
    • openHAB version: 3
  • Issue of the topic: I have several http binding json items that stopped updating. I have manually checked that the JSON is there on the url.
  • Please post configurations (if applicable):
UID: http:url:d6826c2660
label: HTTP URL Thing
thingTypeUID: http:url
configuration:
  authMode: BASIC
  ignoreSSLErrors: false
  baseURL: http://192.168.50.170/air-data/latest
  delay: 0
  stateMethod: GET
  refresh: 5
  commandMethod: GET
  contentType: application/json
  timeout: 3000
  bufferSize: 2048
channels:
  - id: main_bedroom_temperature
    channelTypeUID: http:number
    label: Main bedroom temperature
    description: null
    configuration:
      stateTransformation: JSONPATH:$.temp

This setup was working for several months before stopping.

Add a simple string channel to your HTTP Thing, link to a test Item and see what the whole return is. Then you’ll know whether to blame JSONPATH.
Look in your openhab.log for relevant messages.

Added this:

 - id: jsonawairbedroom
    channelTypeUID: http:string
    label: Test String
    description: ""
    configuration: {}

And I am getting NULL

This is all I see in the log related to the http (accessed via port 9001)

2021-11-10 08:26:46.877 [INFO ] [nding.http.internal.HttpThingHandler] - Using the secure client for thing 'http:url:d6826c2660'.
2021-11-10 08:26:46.902 [INFO ] [nding.http.internal.HttpThingHandler] - Using the secure client for thing 'http:url:d6826c2660'.

Looks like an update and reboot made them work again.