Local tuya can't connect to device

hello! i’m new to HA, just got a pi 4 and set it up and the second device i tried to connect was a set of tuya strip lights. the official tuya integration doesn’t work for this device. i installed the localtuya integration just fine, found all the API keys and whatnot just fine, but when i input those details into the configuration window it immediately says “Cannot connect to device. Verify that address is correct and try again.”
i’ve double checked everything. i reinstalled localtuya. i removed a trailing space from the device’s name in the tuya smart app on my phone. strangely, i’m able to ping the device from my HA with no packet loss. i’m getting frustrated; does anyone have any suggestions?