homebridge-zigbee icon indicating copy to clipboard operation
homebridge-zigbee copied to clipboard

Aqara Wireless Smart Light Switch (Single button - WXKG03LM)

Open Quest1984 opened this issue 5 years ago • 9 comments

При добавлении этого выключателя периодически вываливаются ошибки в логе, либо добавляется как Unrecognized device. Вывод лога при добавлении:

2000x2000x_image-2

Удаление устройства и добавление снова ни к чему не приводит, как и вытаскивание батарейки.

Quest1984 avatar Dec 18 '18 10:12 Quest1984

Hi, I have the same issue (exact same log output) but my Aqara switch is the two button version (WXKG02LM). screenshot 2019-01-05 at 01 07 48 Also, as soon as the error occurs, the "Permit Join" switch off before the timeout. @itsmepetrov do you need any more details to help us resolve the issue? Thank you very much for your time and help!

BastienClermont avatar Jan 05 '19 00:01 BastienClermont

Hi @BastienClermont, it's known issue. The main problem is that the issue occurs form another library which has a lot of legacy code, my plan is to refactor it step by step, and this issue is number one in my list of refactoring. I'm currently on vacation, but right after that I'm going to fix it completely.

As for now I can recommend you to try to add your device until it starts working.

itsmepetrov avatar Jan 05 '19 08:01 itsmepetrov

I tried to restart Homebridge and run it as a service using pm2 and without monitoring the log, and as soon as I restarted Homebridge, the switch was successfully registered as lumi.sensor_86sw2Un. Thanks for your quick answer and have a good vacation.

BastienClermont avatar Jan 05 '19 11:01 BastienClermont

I tried to restart Homebridge and run it as a service using pm2 and without monitoring the log, and as soon as I restarted Homebridge, the switch was successfully registered as lumi.sensor_86sw2Un. Thanks for your quick answer and have a good vacation.

Hey, could you please describe your exact way to handle this problem. I have the same error message and can't think of a way to add this switch.

edelmaca avatar Jul 02 '19 16:07 edelmaca

удалить плагин Homebridge Zigbee через ui homebridge и переустановить через ssh

  1. sudo chmod -R 777 /usr/lib/node_modules
  2. npm i -g git+https://github.com/itsmepetrov/homebridge-zigbee#master --unsafe-perm

denis86111 avatar Aug 25 '19 11:08 denis86111

удалить плагин Homebridge Zigbee через ui homebridge и переустановить через ssh sudo chmod -R 777 /usr/lib/node_modules npm i -g git+https://github.com/itsmepetrov/homebridge-zigbee#master --unsafe-perm

попробовал, выдало кучу ошибок, что не так? `npm ERR! path /home/pi/.npm/_cacache/index-v5/0c/bb npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall mkdir npm ERR! Error: EACCES: permission denied, mkdir '/home/pi/.npm/_cacache/index-v5/0c/bb' npm ERR! { [OperationalError: EACCES: permission denied, mkdir '/home/pi/.npm/_cacache/index-v5/0c/bb'] npm ERR! cause: npm ERR! { [Error: EACCES: permission denied, mkdir '/home/pi/.npm/_cacache/index-v5/0c/bb'] npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/home/pi/.npm/_cacache/index-v5/0c/bb' }, npm ERR! isOperational: true, npm ERR! stack: npm ERR! "Error: EACCES: permission denied, mkdir '/home/pi/.npm/_cacache/index-v5/0c/bb'", npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/home/pi/.npm/_cacache/index-v5/0c/bb', npm ERR! parent: 'homebridge-zigbee' } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator (though this is not recommended).

npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2019-08-26T05_45_22_080Z-debug.log`

Sanderworlds avatar Aug 26 '19 05:08 Sanderworlds

Ошибка связанная с доступом, можно попробовать вторую команду через sudo. Команды вводить по очереди, а не вместе

denis86111 avatar Aug 26 '19 06:08 denis86111

Ошибка связанная с доступом, можно попробовать вторую команду через sudo. Команды вводить по очереди, а не вместе

ввожу по отдельности через sudo тоже лезет ERR

pi@raspberrypi:~ $ sudo chmod -R 777 /usr/lib/node_modules pi@raspberrypi:~ $ sudo npm i -g git+https://github.com/itsmepetrov/homebridge-zigbee#master --unsafe-perm npm ERR! code 128 npm ERR! Command failed: git clone --depth=1 -q -b master https://github.com/itsmepetrov/homebridge-zigbee.git /root/.npm/_cacache/tmp/git-clone-150fe1f5 npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-150fe1f5': Permission denied npm ERR! npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-08-26T06_19_35_314Z-debug.log pi@raspberrypi:~ $

Sanderworlds avatar Aug 26 '19 06:08 Sanderworlds

получилось через sudo sudo. 2-ух клавишный выключатель появился, а розетка теперь не хочет конектиться :(

Sanderworlds avatar Aug 27 '19 08:08 Sanderworlds