Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with adding the HomeKit-bridge #1

Open
cr-chsn1 opened this issue Oct 8, 2018 · 7 comments
Open

Problems with adding the HomeKit-bridge #1

cr-chsn1 opened this issue Oct 8, 2018 · 7 comments

Comments

@cr-chsn1
Copy link

cr-chsn1 commented Oct 8, 2018

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.

@davidknezic
Copy link
Owner

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.

@cr-chsn1
Copy link
Author

cr-chsn1 commented Oct 8, 2018

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.

@cr-chsn1
Copy link
Author

cr-chsn1 commented Oct 9, 2018

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?

@davidknezic
Copy link
Owner

You say it's exited and not running? That's suspicious.

Could you post the commands that you're executing with their output?

@cr-chsn1
Copy link
Author

cr-chsn1 commented Oct 9, 2018

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.

@davidknezic
Copy link
Owner

Do you have time for a hangouts session? In about 1.5 hours?

https://hangouts.google.com/call/-QAhkEP_X1qmjLgxRkcQAAEI

@cr-chsn1
Copy link
Author

OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants