HTTP URL Thing XPATH not working?

  • Platform information:
    • Hardware: Raspberrypi 4 4GB, 32GB SD
    • OS: Ubuntu Server arm64
    • Java Runtime Environment: OpenJDK 11
    • openHAB version: 3.1.0
  • Issue of the topic:
    I don’t know why my Items always have the value null.
    My XML is reachable from the server via curl with the url

My XPATH Works flawlessly in Free Online XPath Tester / Evaluator -
Result is Attribute=‘value=0.000000’

So it should at least say 0.00 in my item, because i have two digits after comma but it says null.

Number Rain_Yesterday “Regen gestern [%.2f mm]” (Wetterstation) {http="<[[@name=‘svHmIPRainCounterYesterday_1470’]/@value)]"}

  • Services configuration related to the issue
    UID: http:url:48113d7ed7
    label: HTTP URL Thing
    thingTypeUID: http:url
    authMode: BASIC
    ignoreSSLErrors: false
    delay: 0
    stateMethod: GET
    refresh: 1
    commandMethod: GET
    contentType: application/xml
    timeout: 3000
    bufferSize: 2048

  • If logs where generated please post these here using code fences:

2021-10-11 17:19:09.855 [INFO ] [nding.http.internal.HttpThingHandler] - Using the secure client for thing 'http:url:48113d7ed7'.

Anyone knows a solution?

You are running OH 3.

Your Item is using the OH 1.x binding config. You will never see a config like that with an OH 2+ binding. You need to install the HTTP binding, create a new HTTP Thing and configure it according to the docs at HTTP - Bindings | openHAB.

In the future, please use code fences for all configs and logs posted.

Also, when debugging problems like this, always verify that the binding is working first but removing any transformation to see if any data is being fetched at all. To fix a problem the location of the problem must first be identified.