One button with 2 MQTT topics

Hi E1cid,

Im not sure how to use your solution. I can only put one topic eg. homie/homey-topic/fireplaceon in the button node. how can i make it change to a different topic eg. homie/homey-topic/fireplaceoff when pressed