Dim
(Angelos)
3
Here is one example (there are many in the forum) of a rule sending a json payload to mqtt:
State is usually used in an inbound configuration in OH2. If you want to send the json payload you will need an outbound config.
See more here: https://www.openhab.org/addons/bindings/mqtt1/#item-configuration-for-outbound-messages