Replying to myself:
Found the solution here: Shelly via HTTP or MQTT? - #2 by tom_l
Works like a charm!