And even if you didn’t need the XPath transformation, it is not optional in the http binding config on the binding.
You have to have something there. If you don’t want to transform you may be able to use “default” or you will have to use the REGEX transform and pass the full text.
I already tried “:default” as well as several different REGEX expressions in the item definition, including the one you propose.
Unfortunately neither worked. My sitemap always shows “-”.
It must be something else, but I just cannot find out what is wrong.
I even uninstalled and reinstalled the http-binding in PaperUI.
I am afraid it is some stupid mistake…
Maybe I do have to make some modifications in the http.cfg file?
Are you looking in openhab.log for errors? The HTTP binding is pretty good are reporting errors.
You have to have something after the 1000 or else it is a malformed binding config (which is almost certainly reported in the logs).
I’m not certain if default is allowed for incoming bindings which is why I also listed the REGEX noop version.
Do you actually have the REGEX transform installed?
Since you will need to use the XPATH transform anyway to extract that string from the XML, have you tried to make it work with that? Again, make sure you install the transform.
Unfortunately it still does not work, even with both items definitions you posted.
Could you please also post your line in the sitemap, just to be sure?
Mine just returns “-”.
In addition, I have a rule defined, which contains the line