codetheweb / homebridge-tuya-outlet

A plugin for Homebridge for Tuya-based outlets
15 stars 11 forks source link

Installation/Start-up error #11

Closed blloyd78 closed 6 years ago

blloyd78 commented 6 years ago

I followed all the instructions for installing homebridge-tuya-outlet, including capturing the relevant hardware IDs using Charles. The NPM install appears to complete successfully, but when the Pi is rebooted, Homebridge fails to load. The log reports:

Mar 22 19:44:36 raspberrypi homebridge[1019]: /usr/local/lib/node_modules/homebridge/lib/api.js:64
Mar 22 19:44:36 raspberrypi homebridge[1019]:       throw new Error("The requested accessory '" + name + "' was not registered by any plugin.");
Mar 22 19:44:36 raspberrypi homebridge[1019]:       ^
Mar 22 19:44:36 raspberrypi homebridge[1019]: Error: The requested accessory 'TuyaOutlet' was not registered by any plugin.

I have also checked for node modules at /usr/local/lib/node_modules, but the homebridge-tuya-outlet folder is not present. Any idea what I am doing wrong?

blloyd78 commented 6 years ago

Forgot to install with the -g --unsafe-perm flags