Tuya motion sensor is not supported in Home Assistant

I have not configured it via YAML but via the UI. However your logs state that it failed to connect. You sure the IP address of the device is correct? Are you able to ping the device?