prasad-edlabadka / homebridge-tuya-ir

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

API didn't return any devices Using hardcoded devices... #36

Closed frencyx closed 2 years ago

frencyx commented 2 years ago

Hello i've configured the plugin but i'm getting this result:

API didn't return any devices Using hardcoded devices...

is my config correct or am i missing something?

{ "platform": "TuyaIR", "plugin_map": { "plugin_name": "homebridge-tuya-ir" }, "name": "TuyaIR", "client_id": "xxxxxxxxxxxxxxxxxxxxxxx", "secret": "xxxxxxxxxxxxxxxxxxxxxxxxx", "region": "eu", "autoFetchRemotes": false, "smartIR": [ "xxxxxxxxxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxx" ] }

prasad-edlabadka commented 2 years ago

The config is incorrect. Please use homebridge-ui-x plugin for accurate configuration of the plug-in.

frencyx commented 2 years ago

Finally solved! intalled homebridge-ui-x , it works but i cannot control my Ac in heating mode, only cooling...

prasad-edlabadka commented 2 years ago

I don't have heater to test. I have coded as per Tuya specs. Can you please help testing in debug mode and let me know what goes wrong?

frencyx commented 2 years ago

Hello! this is the log: [24/03/2022, 19:54:34] [TuyaIR] Condizionatore sala status is {"mode":"0","power":"0","temp":"19","wind":"1"} [24/03/2022, 19:55:32] [TuyaIR] {"code":"power","value":1} [24/03/2022, 19:55:32] [TuyaIR] Calling endpoint https://openapi.tuyaeu.com/v1.0/infrareds/88155424e868e75fc46a/air-conditioners/bf458151ebf1aa9c61zzzq/command [24/03/2022, 19:55:32] [TuyaIR] API call successful. [24/03/2022, 19:55:32] [TuyaIR] {"result":true,"success":true,"t":1648148132467,"tid":"fb15841aaba311ec8f0dc2098e70b1d9"} [24/03/2022, 19:55:32] [TuyaIR] Condizionatore sala is now On [24/03/2022, 19:55:51] [TuyaIR] {"code":"power","value":1} [24/03/2022, 19:55:51] [TuyaIR] Calling endpoint https://openapi.tuyaeu.com/v1.0/infrareds/88155424e868e75fc46a/air-conditioners/bf458151ebf1aa9c61zzzq/command [24/03/2022, 19:55:51] [TuyaIR] API call successful. [24/03/2022, 19:55:51] [TuyaIR] {"result":true,"success":true,"t":1648148151675,"tid":"068ce5b0aba411eca3c9fa47a546e571"} [24/03/2022, 19:55:51] [TuyaIR] Condizionatore sala is now On [24/03/2022, 19:55:54] [TuyaIR] {"code":"power","value":0} [24/03/2022, 19:55:54] [TuyaIR] Calling endpoint https://openapi.tuyaeu.com/v1.0/infrareds/88155424e868e75fc46a/air-conditioners/bf458151ebf1aa9c61zzzq/command [24/03/2022, 19:55:55] [TuyaIR] API call successful. [24/03/2022, 19:55:55] [TuyaIR] {"result":true,"success":true,"t":1648148155011,"tid":"089309d8aba411ecaff4b6da7a08cf3a"} [24/03/2022, 19:55:55] [TuyaIR] Condizionatore sala is now Off

i can only make the ac working in cooling mode, if i switch to heating mode the Ac still stays in cooling mode

prasad-edlabadka commented 2 years ago

I have tried fixing it in v1.0.0. It's in beta so you will have to install it manually in home bridge. please let me know.