Im a bit late to this party - but I started looking for the same thing and found this
It is a bit involved to get the correct commands, but once you have figured it out the template makes it heaps easier. The Tuya devices do need to be set in local tuya though