- Platform information:
- Hardware: Raspberry PI4
- openHAB version: openHabian 4.1.1
I want to get Values of my Weather Station using a HTTP Url Thing.
If I use a browser and call the Url I get this xml
<observations xmlns="">
<observations>
<observations>
<neighborhood>Markersdorf-Haindorf</neighborhood>
<country>AT</country>
<solarRadiation>38.53</solarRadiation>
<lon>15.5</lon>
<epoch>1708329050</epoch>
<lat>48.188999</lat>
<uv>0</uv>
<winddir>33</winddir>
<humidity>84</humidity>
<qcStatus>1</qcStatus>
<metric>
<temp>9</temp>
<heatIndex>9</heatIndex>
<dewpt>7</dewpt>
<windChill>9</windChill>
<windSpeed>2</windSpeed>
<windGust>5</windGust>
<pressure>1031.731014762</pressure>
<precipRate>0</precipRate>
<precipTotal>0</precipTotal>
<elev>248</elev>
</metric>
</observations>
</observations>
</observations>
So I created a new Thing with the url and added Channel
In state Information I added a Regex witch I tested in an expression Tester.
UID: http:url:5ebbe80f4b
label: Wetterstation
thingTypeUID: http:url
configuration:
authMode: BASIC
ignoreSSLErrors: false
baseURL: http://192.168.1.10?format=xml&units=m
delay: 0
stateMethod: GET
refresh: 600
commandMethod: GET
contentType: text/html
timeout: 3000
bufferSize: 2048
location: Garten
channels:
- id: Sonneneinstrahlung
channelTypeUID: http:string
label: Sonneneinstrahlung
description: ""
configuration:
mode: READONLY
stateTransformation: REGEX:<solarRadiation>([\d.]+)
Than I created an Item with this channel.
So I expected to see the value 38.53.
But there is only NULL shown and I don’t know how to search the problem