Just as an alternative, you can use the mqtt.publish service from the services developer tools page.