prasad-edlabadka / homebridge-tuya-ir

Allows homebridge to control Tuya Smart IR based devices
Apache License 2.0
50 stars 22 forks source link

No devices discovered #30

Closed Geek-MD closed 2 years ago

Geek-MD commented 2 years ago

Hi, I'm having this issue. Tuya IR doesn't find any devices. Tuya IoT Platform shows all devices associated to my account.

[11/26/2021, 10:57:56 PM] [TuyaIR] Starting discovery... [11/26/2021, 10:57:56 PM] [TuyaIR] Trying to login... [11/26/2021, 10:57:56 PM] [TuyaIR] Logging in to the the server https://openapi.tuyaus.com... [11/26/2021, 10:57:58 PM] [TuyaIR] Login successful. [11/26/2021, 10:57:58 PM] [TuyaIR] Fetching configured remotes... [11/26/2021, 10:57:59 PM] [TuyaIR] API didn't return any devices Using hardcoded devices...

Thanks in advance

prasad-edlabadka commented 2 years ago

Based on response from Tuya, the API may not return al the devices and is based on their agreement with OEM (device manufacturer). So, in this case you should manually add the remote IDs in the configuration for it to work.

Geek-MD commented 2 years ago

Hmmm devices are detected by Tuya IoT Platform. I configured remotes ID for each device at plugin, and devices are still not detected. Any clue?

Captura de Pantalla 2021-11-27 a la(s) 12 20 38
Geek-MD commented 2 years ago

I wonder if this is the right way to configure Tuya devices. Listed ID are TuyaIR Remotes. I've tried configuring TV Remote IDs for every TuyaIR but still devices are not detected by TuyaIR plugin.

Captura de Pantalla 2021-12-02 a la(s) 07 24 56
prasad-edlabadka commented 2 years ago

While your Tuya portal may display devices, API doesn't always return devices. I had opened a ticket with Tuya and they mentioned that it depends on OEM. So, the hardware provider need to sign up for this API if the device can be returned via their API. Otherwise, you will have to disable auto discovery and add remotes manually. @Geek-MD

prasad-edlabadka commented 2 years ago

Closing due to inactivity. Please reopen with logs if required.