kdietrich / homebridge-devolo

WARNING: this repo is not maintained anymore. Homebridge plugin for Devolo Home Control
16 stars 4 forks source link

Error while trying to install #31

Closed ellev closed 6 years ago

ellev commented 6 years ago

Getting this error can someone please help me?

pi@raspberrypi:~ $ sudo npm install -g homebridge-devolo npm ERR! code 128 npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b master https://github.com/kdietrich/node-devolo.git /root/.npm/_cacache/tmp/git-clone-f1e4097d npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-f1e4097d': Permission denied npm ERR!

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-02-23T22_50_37_572Z-debug.log

kdietrich commented 6 years ago

It looks like there is something messed up with the permissions of NPM. Could you try the steps described here: https://docs.npmjs.com/getting-started/fixing-npm-permissions ?

ellev commented 6 years ago

it was already a fresh install of the entire pi. Have tried the solution you proposed but still same error. No problem with other plugins.

nicoh88 commented 6 years ago

Try this:

sudo su -
chown -R root /root/.npm
npm install -g homebridge-devolo --unsafe-perm
ellev commented 6 years ago

nothing worked. I tried everything you guys said and I decided to just try it one more time and all of a sudden it installed. Thanks for your help guys. I do have one more problem right now. I have 5 wall plugs and it is only showing one in the home app.

kdietrich commented 6 years ago

Do you mean the Devolo Smart Metering Plug (https://images-na.ssl-images-amazon.com/images/I/31iZuWFg5xL._SX355_.jpg)? Could you provide me a debug log by running homebridge -D > logfile.txt 2>&1 and attaching the log file?

ellev commented 6 years ago

yes the Smart Metering Plug. I have 5 of them and it only shows one. The name is "Telenet 2". The other accessory "Inkom" is a door/window contact. logfile.txt

kdietrich commented 6 years ago

Strange, devolo-homebridge is picking up only two of your devices. Just to confirm: All five devices are included into the same Devolo Central Unit? Can I reach out to you by mail?

ellev commented 6 years ago

indeed very strange. Although the first time I started Homebridge with the plugin they where all in one group on mydevolo because we always switch them together. (We use them for hidden led lights and stuff in the walls of our store) Mail: kevindl@autosoft.be

kdietrich commented 6 years ago

@ellev I've sent you an email.

ellev commented 6 years ago

Omg You are amazing!!!

I fixed it thanks to your debug option. The items that where not shown where not in a group “Lommel”. So they didn’t got recognized in your plugin. I went to mydevolo and put them all in the same group and it worked like a charm!!

Logfile is attached for your info.

Thanks again for your amazing support!!!! logfile.txt

kdietrich commented 6 years ago

Great that it's working! Afaik it's not possible to create devices in MyDevolo without selecting a group so there shouldn't be any problems - maybe there was a bug in a previous MyDevolo version.