prasad-edlabadka / homebridge-tuya-ir

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

Unable to fetch AC and smart IR from tuya to home bridge. #85

Closed pratikparmar24292 closed 1 year ago

pratikparmar24292 commented 1 year ago

Some part of logs says it adding. : [10/18/2022, 12:22:57 AM] [TuyaIR] {"result":{"access_token":"a9a39016**","expire_time":4625,"refresh_token":"b9a78****","uid":"bay1****},"success":true,"t":16**,"tid":"ebe*"} [10/18/2022, 12:22:57 AM] [TuyaIR] API call successful. [10/18/2022, 12:22:57 AM] [TuyaIR] Login successful. [10/18/2022, 12:22:57 AM] [TuyaIR] Fetching configured remotes... [10/18/2022, 12:22:57 AM] [TuyaIR] This is the config: {"tuyaAPIClientId":"p8q***","tuyaAPISecret":"b*****","deviceRegion":"in","irDeviceId":"d7****"autoFetchRemotesFromServer":true,"configuredRemotes":[{"model":"Air","brand":"Samsung"}],"apiHost":"https://openapi.tuyain.com"} [10/18/2022, 12:22:57 AM] [TuyaIR] Auto discovery of remotes enabled. Fetching with API... [10/18/2022, 12:22:57 AM] [TuyaIR] Calling endpoint https://openapi.tuyain.com/v2.0/infrareds/d7*/remotes with payload {}

[10/18/2022, 12:22:57 AM] [TuyaIR] API call successful. {"result":[],"success":true,"t":16*****,"tid":"eb****" Unfortunately it isn't

prasad-edlabadka commented 1 year ago

This is a known issue

Tuya API doesn't always return devices added to Smart IR based on OEM hardware. Thus, you need to add them in your app and then provide IDs in the plugin configuration. This is configuruable in the configuration.

Please configure devices manually.