- 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 http://192.168.178.59/addons/xmlapi/sysvarlist.cgi
My XPATH Works flawlessly in Free Online XPath Tester / Evaluator - FreeFormatter.com
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.
Item:
- Please post configurations (if applicable):
Number Rain_Today “Regen heute [%.2f mm]” (Wetterstation) {http="<[http://192.168.178.59/addons/xmlapi/sysvarlist.cgi:300000:XPATH(systemVariables/systemVariable[@name=‘Regen_heute’]/@value)]"}
Number Rain_Yesterday “Regen gestern [%.2f mm]” (Wetterstation) {http="<[http://192.168.178.59/addons/xmlapi/sysvarlist.cgi:300000:XPATH(systemVariables/systemVariable[@name=‘svHmIPRainCounterYesterday_1470’]/@value)]"}
-
Services configuration related to the issue
UID: http:url:48113d7ed7
label: HTTP URL Thing
thingTypeUID: http:url
configuration:
authMode: BASIC
ignoreSSLErrors: false
baseURL: http://192.168.178.59/addons/xmlapi/sysvarlist.cgi
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?