prasad-edlabadka / homebridge-tuya-ir

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

pb with v0.1.2 ; need help ! #27

Closed kanmapoo closed 2 years ago

kanmapoo commented 2 years ago

hi, since I updated to the new version (with homebridge), homebridge won't start and log in red "TypeError: Cannot read property 'length' of undefined at TuyaIRPlatform.discoverDevices (/usr/local/lib/node_modules/homebridge-tuya-ir/src/platform.ts:73:48) at HomebridgeAPI. (/usr/local/lib/node_modules/homebridge-tuya-ir/src/platform.ts:42:12) at HomebridgeAPI.emit (events.js:387:35) at HomebridgeAPI.signalFinished (/usr/local/lib/node_modules/homebridge/src/api.ts:275:10) at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:173:14)" my config is { "name": "TuyaIR", "client_id": "xxxxxxxxxxxxxxxxxx", "secret": "xxxxxxxxxxxxxxxxxxxxxxxxxx", "region": "eu", "smartIR": [ { "autoFetchRemotes": true } ], "platform": "TuyaIR" } it worked well before the update, and I didn't change any of the parameters, so I need some advise here. thanks for your good job, and hope for help soon. Best regards

prasad-edlabadka commented 2 years ago

0.1.2 is a breaking version with ability to support multiple smart IR devices. Please read the release notes and reconfigure the plug-in.