MQTT transformation in PaperUI

(NR) #1
  • Platform information:
    • Hardware: RPI 3B+
    • OS: Openhabian

I have an infoming mqtt JSON like this
'{"contact":false,"linkquality":123}'

I want to extract the “contact” value to an on/off state. Is this possible (standalone in PaperUI)?
I found this in the configuration and thought this might be the right thing.

  Transformation service JSONPATH for pattern $.contact not found!
2019-04-09 20:50:34.209 [WARN ] [eneric.internal.generic.ChannelState] - Command '{"contact":true,"linkquality":123}' not supported by type 'OpenCloseValue': No enum constant org.eclipse.smarthome.core.library.types.OpenClosedType.{"contact":true,"linkquality":123}
0 Likes

(Udo Hartmann) #2

Did you install JSONPATH transformation?

Transformation service JSONPATH [...] not found!
1 Like

(NR) #3

I forget this step. Thanks for pointing me there :slight_smile:

0 Likes