Http binding transformation


i’m having the following problem
i’m using the http binding in openhab 3.1 to get a value
this seems to be working and returns a string in this format


when try to use json to get only the numbers 27989.37 i can’t get it to work
i’m sure i’m making a stupid mistake but can’t seem to figure it out
code below, any help would be appreciated

UID: http:url:ea3506b087
label: HTTP URL Thing
thingTypeUID: http:url
authMode: BASIC
ignoreSSLErrors: false
delay: 0
stateMethod: GET
refresh: 30
commandMethod: GET
timeout: 3000
bufferSize: 2048

  • id: notworking
    channelTypeUID: http:string
    label: nw
    description: “”
    stateTransformation: JSONPATH:$.EUR


What do your logs say? Have you installed the JSONPATH add-on?

1 Like

oh goddamn, didn’t know i had to install transformation service for jsonpath to work

thx mate! that solved it :smiley: