smartechru / homebridge-relays

This Homebridge plugin controls 4 relays through Apple Home App.
MIT License
16 stars 13 forks source link

Error: The requested accessory 'GPIODevice' was not registered by any plugin. #6

Open clrmsc opened 4 years ago

clrmsc commented 4 years ago

Hi Guys don't work, pls help. Error loading accessory requested in your config.json at position 1 Error: The requested accessory 'GPIODevice' was not registered by any plugin. at PluginManager.getPluginForAccessory (/usr/lib/node_modules/homebridge/src/pluginManager.ts:198:15) at /usr/lib/node_modules/homebridge/src/server.ts:347:37 at Array.forEach () at Server._loadAccessories (/usr/lib/node_modules/homebridge/src/server.ts:330:29) at Server.start (/usr/lib/node_modules/homebridge/src/server.ts:156:12) at cli (/usr/lib/node_modules/homebridge/src/cli.ts:80:10) at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22) at Module._compile (internal/modules/cjs/loader.js:1138:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10) at Module.load (internal/modules/cjs/loader.js:986:32)

clrmsc commented 4 years ago

My way to fix this problem, install steps: update pi sudo apt-get update && sudo apt-get upgrade -y

homebridge sudo apt install git git clone https://github.com/fantomnotabene/homebridge_setup_script cd homebridge_setup_script bash install.sh

plugin curl -sL https://deb.nodesource.com/setup_10.x | sudo bash - sudo apt install nodejs

cd /tmp wget https://unicorn.drogon.net/wiringpi-2.46-1.deb sudo dpkg -i wiringpi-2.46-1.deb

sudo usermod -a -G gpio pi sudo npm install -g homebridge-gpio-device --unsafe-perm

lycheeEng commented 4 years ago

Same problem here, I'll try your steps at another time.

This is my error log: Screenshot 2020-07-11 at 10 11 52 PM Screenshot 2020-07-11 at 10 12 00 PM