It's possible - at least for some TuYA WiFi devices. Read the details in this thread. And you don't need Node-RED. You can set them up as cloud devices, and then change the child device driver to one that controls the device locally.