Send a variable to device

Send a variable to device

@Adams Zeidler

Hello ,
I need to send a setpoint to the device using MQTT message action. I believe I should first save the setpoint to a variable and then send the variable to the device using a JSON payload.
The explanation on how to include a variable on the payload is not clear . Can someone help me on this ?