Json parsing in the things file using paper UI doesnt want to work


I am trying to figure out a JSON parsing issue nightmare. If some one could give a little push I would really appreciate it:

Here is some info about my setup:

  • Hardware: Raspberry pi3
  • OS: Rasbian OS
  • openHAB version:openHAB 2.5.10 Release Build
  • working map -> miflora-mqtt-daemon -> mosquitto mqqt -> openHab2

things file: (other code parts ommited)
Type string : version [stateTopic=“miflora/JapaneseBonsai”, transformationPattern=“JSONPATH:$.light” ]

on the miflora/JapaneseBonsai topic mosquito client shows this info:
Client mosqsub/1981-raspberryp received PUBLISH (d0, q0, r0, m0, ‘miflora/JapaneseBonsai’, … (85 bytes))
{“light”: 0, “temperature”: 10.2, “moisture”: 33, “conductivity”: 992, “battery”: 27}

adding the thing to my PaperUI control panel I get this:

I looked at the examples of JSONPATH and it looks like this is supposed to work. I tried to approach this in many ways, but could not succeed.

My main goal is to take the light value which is 0 now and get is as a number.

Do you have the json path transformation installs



I installed the basic version.

Marked as solution :slight_smile:

1 Like