Open roger-richards opened 2 years ago
Hello: I am glad that you are using the program. Could you please describe in detail the operation process and the problems that occurred? As far as I can see, this project can be installed in the following steps:
sudo apt install node npm
git clone https://github.com/mentalfl0w/homebridge-raspberrypi-switch.git
cd homebridge-raspberrypi-switch
npm install -g
I hope this can help you and wish you a happy life!
Hi, I followed these steps but I couldn't install the plugin
Hi, I followed these steps but I couldn't install the plugin
Hello, I tested those steps in my another raspberry pi, it works well.
Note that this command needs to be executed with the privileges of the root user, i.e.: sudo npm install -g
.
Hello @mentalfl0w,
I've tried multiple times but don't get it. What am I doing wrong?
Log says after restarting my homebridge: No plugin was found for the accessory "pi_switch" in your config.json. Please make sure the corresponding plugin is installed correctly.
Regards
@qwertz2021 Hello!
Seems like you didn't install nodejs and npm in a correct way.
Just execute this: sudo apt install nodejs npm
Then follow the former steps, let's see what will happen.
PS: It's no need to clone this repo to /var/lib/homebridge
, the ~
(which is /home/pi
) path is ok. Please note the sudo nom install -g
is needed.If there is something wrong, please let me know.😊
Thanks for your fast reply. I tried it but it didn't solve the problem. :( For background: I installed the Homebridge using the Raspberry Pi Imager. From what I understand, nodjs and npm are included in the installation process.
@qwertz2021
I see, from your screenshots, your npm and nodejs didn't install for root(it means you can't use it like a apt installed one in other users besides pi
), so you can't use it by sudo npm install -g
.
There are some steps for you to try:
1.cd ~/.homebridge
2.npm install /path/to/homebridge-raspberrypi-switch
3.restart your homebridge
many thanks, @mentalfl0w. Here are my steps with the exact path I used to finish the installation successfully. Maybe it is useful for all, which installed the Homebridge over the Raspberry Pi Imager like me:
cd ~/.homebridge
npm install /var/lib/homebridge/homebridge-raspberrypi-switch
Congratulations, enjoy😉!
This plugin is not registered wherever it needs to be for easy install within homebridge-config-ui-x. Can someone point me to manual plugin install how to do it from my pi cli? I've tried following several manual install guides in reddit and other help pages to no avail.