make-all / tuya-local

Local support for Tuya devices in Home Assistant
MIT License
1.42k stars 547 forks source link

Make it easier to collect info for new devices #2419

Open make-all opened 1 month ago

make-all commented 1 month ago

Description

Now that an iot.tuya.com account is no longer needed to get local keys, users do not have a good source of info for dps info for new devices. This has led to a regression in quality of reports, which often don't contain the needed enum/integer range info, and sometimes not even dp ids, making the report useless.

Steps to reproduce

  1. Login with QR code method
  2. Try to add a device which is unsupported
  3. Try to gather what info you can without a Tuya developer account

Expected behaviour

Now that cloud functionality is available, we could try to pull in all the info needed and log it, so we just need to send users to the log file for gathering info.

Additional context

No response

Confirmation

make-all commented 1 month ago

Unfortunately the QR code login does not appear to give full access to the iot core API functions. There are errors coming back from the API about invalid "app" parameter - the app parameter requires a registered app, which is the iot.tuya.com signup process, the QR code login is an authorisation to access the user account from the Tuya branded app, but does not transmit the app code.