HTTP Binding - JSON Struktur auslesen

Hallo
ich habe in openHAB 4 über http Binding ein thing erstellt, das folgenden Code aufweist
UID: http:url:http240117
label: HTTP URL Thing 240117
thingTypeUID: http:url
configuration:
authMode: BASIC
ignoreSSLErrors: false
baseURL: http://xxx.xxx.x.xx/json
delay: 0
stateMethod: GET
refresh: 30
commandMethod: GET
contentType: application/json
timeout: 3000
bufferSize: 2048
location: Taunusstein
channels:

  • id: httpEINFACH
    channelTypeUID: http:string
    label: httpeinfach
    description: ohne transformation
    configuration: {}
  • id: httpTRANS
    channelTypeUID: http:string
    label: httpTRANS
    description: Tansformation
    configuration:
    stateTransformation: $.temperature
  • id: httpEINFACHnumber
    channelTypeUID: http:number
    label: httpEinfachNumber
    description: “”
    configuration: {}
  • id: httpTRANSnumber
    channelTypeUID: http:number
    label: httpTransNubmer
    description: “”
    configuration:
    stateTransformation: $.temperature
    escapedUrl: false
    unit: Celsius

Die Channel httpeinfachNumber und httpTransnumer liefern UNDEF .
Die anderen liefern die jSON Struktur {“temperature”:15 ,“humidity”:75}
Wer kann mir helfen, dass ich nur diee Temperatur oder nur die Feuchtigkeit aus der Struktur bekomme ?
Der Code kann nicht editiert werden, sondern die Eingabe muss über die Bildschirmmasken erfolgen.
Danke im Voraus

2 Likes