I would rather connect some appropriately sized relays to the Duet and control those through g-code than relying on something that relies on an internet connection.

But no, as of yet there isn't any way to achieve it although there are numerous threads on the topic, not sure if some of those has cobbled together a diy solution yet.