MQTT syntax

I think I understand. You want to click a button on the dashboard and have the pin change value? If so that’s fairly straight forward. You can see an example here also some additional info here Basically in that on_message function you want to do a pin write. You can see a little better example here I’m using a PiFace so the command is pdf.output_pins but you can replace that with your preferred library to write your pins.