desk
desk copied to clipboard
Problems with adding the HomeKit-bridge
I have problems adding the HomeKit-Bridge into my Home-App. The desk service is running but my iPhone won't add the RPi. I used the built-in PIN 32191123, but no success.
Since this is my first DIY-HomeKit-device I need a hint, where to start troubleshooting.
Hi @chsn1, just had a quick look and here's what you could try:
-
Try adding some more accessory details in bridge.go on line 125.
info := accessory.Info{ Name: "Lamp", SerialNumber: "051AC-23AAM1", Manufacturer: "Apple", Model: "AB", Firmware: "1.0.1", }
-
Try changing the PIN in bridge.go on line 165 to ex.
00102003
-
Try removing the generated
./desk
folder and restarting the command
Also, your phone and the device are both on the same Wi-Fi, right?
If these don't help, let me know. We might have to file an issue here: brutella/hc.
With ./desk you mean ./bridge, right? I don't see ./desk, so I deleted ./bridge and ran the build process with your changes. With "Firmware" the build won't work, without it built.
With these changes I still have the same problem. Service seems active, but I do not see any service with desk as a name or the PID (512) from /var/run/desk.pid.
Found desk, my fault. Deleted everything and rebuild it. Same problem. Service desk is active, but exited, not running.
How to troubleshoot this black box?
You say it's exited and not running? That's suspicious.
Could you post the commands that you're executing with their output?
Stopped service:
pi@raspberrypi:~/go/src/github.com/davidknezic/desk $ service desk status ● desk.service - LSB: HomeKit utility for height-adjustable desks Loaded: loaded (/etc/init.d/desk; generated; vendor preset: enabled) Active: inactive (dead) since Tue 2018-10-09 22:35:49 CEST; 5s ago Docs: man:systemd-sysv-generator(8) Process: 1048 ExecStop=/etc/init.d/desk stop (code=exited, status=0/SUCCESS) Process: 696 ExecStart=/etc/init.d/desk start (code=exited, status=0/SUCCESS)
Oct 09 15:37:45 raspberrypi systemd[1]: Starting LSB: HomeKit utility for height-adjustable desks... Oct 09 15:37:45 raspberrypi desk[696]: Starting desk utility: desk. Oct 09 15:37:45 raspberrypi systemd[1]: Started LSB: HomeKit utility for height-adjustable desks. Oct 09 15:37:45 raspberrypi desk[696]: 2018/10/09 15:37:45 EOF Oct 09 22:35:49 raspberrypi systemd[1]: Stopping LSB: HomeKit utility for height-adjustable desks... Oct 09 22:35:49 raspberrypi desk[1048]: Stopping desk utility: deskNo bridge found running; none killed. Oct 09 22:35:49 raspberrypi desk[1048]: . Oct 09 22:35:49 raspberrypi systemd[1]: Stopped LSB: HomeKit utility for height-adjustable desks.
Started service:
pi@raspberrypi:~/go/src/github.com/davidknezic/desk $ service desk status ● desk.service - LSB: HomeKit utility for height-adjustable desks Loaded: loaded (/etc/init.d/desk; generated; vendor preset: enabled) Active: active (exited) since Tue 2018-10-09 22:36:55 CEST; 2s ago Docs: man:systemd-sysv-generator(8) Process: 1048 ExecStop=/etc/init.d/desk stop (code=exited, status=0/SUCCESS) Process: 1096 ExecStart=/etc/init.d/desk start (code=exited, status=0/SUCCESS)
Oct 09 22:36:55 raspberrypi systemd[1]: Starting LSB: HomeKit utility for height-adjustable desks... Oct 09 22:36:55 raspberrypi desk[1096]: Starting desk utility: desk. Oct 09 22:36:55 raspberrypi systemd[1]: Started LSB: HomeKit utility for height-adjustable desks. Oct 09 22:36:55 raspberrypi desk[1096]: 2018/10/09 22:36:55 EOF
./bridge-output: pi@raspberrypi:~/go/src/github.com/davidknezic/desk $ ./bridge 2018/10/09 22:40:42 EOF
Same happens for desk.
Do you have time for a hangouts session? In about 1.5 hours?
https://hangouts.google.com/call/-QAhkEP_X1qmjLgxRkcQAAEI
OK.