[SOLVED] MQTT transformation in PaperUI

  • Platform information:
    • Hardware: RPI 3B+
    • OS: Openhabian

I have an infoming mqtt JSON like this

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}

Did you install JSONPATH transformation?

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

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