I wrote a guide to get a Tuya Hub working as a Zigbee gateway via Home Assistant, using this fork of the LocalTuya project.
The setup below will give you BOTH Local control and Cloud connectivity at the same time with the standard hardware.
No device hacks, firmware flashes or 3rd party Zigbee controllers needed.
@PeteRage
This project caters for IP address changes as well. Static Reservations are not required.