Trigger rule on JSON MQTT message (not part of it)

Hi,

I publish JSON payloads to MQTT from other systems and I want to trigger stuff in OH3 from that.
I saw that when creating a channel, I can put a JSON path expression there, to get one of the values. But as the JSON body contains lots of context info, I want all of that, in a single item.
Is there a best practice for that? can I put the JSON payload in a String item and use that in my rule?

thanks

Yep! Just don’t use a transformation in your Channel!

2 Likes

Thanks. If this is the way to go then I am fine. Just wanted to see if I am missing something :smiley_cat: