brutella / hkknx-public

hkknx is a HomeKit KNX bridge for KNX.
https://hochgatterer.me/hkknx
99 stars 6 forks source link

Pairing mit HomeKit nicht möglich #3

Closed sberer closed 4 years ago

sberer commented 4 years ago

Hallo,

ich habe mir gestern die aktuellste Version installiert. Das ETS Projekt importiert und ein erstes Gerät hinzugefügt. Verbindung zum KNX Gateway funktioniert, jedoch gibt es ein Problem beim Pairen mit Homekit. Wenn ich den QR Code scanne, oder den Code manuell eingebe macht keinen Unterschied. Die Bridge erscheint in der Home App nicht zur Auswahl. Was könnte hier das Problem sein?

brutella commented 4 years ago

Vermutlich ist der Computer, auf dem hkknx läuft, für dein iOS Gerät nicht erreichbar. Hast du das schonmal überprüft?

sberer commented 4 years ago

Ist erreichbar. Ich bin im selben LAN. Ich habe es getestet indem ich die Webseite vom iPhone aufgerufen habe. Eventuell noch einen anderen Hinweis?

brutella commented 4 years ago

Hast du Bridge womöglich schon einmal mit HomeKit verbunden und dann wieder entfernt? In dem Fall solltest du den Ordner löschen, wo die HomeKit Daten gespeichert werden. Und zwar ist das der Ordnern innerhalb des "database" Ordners. Hoffe das macht so Sinn.

sberer commented 4 years ago

Bei mir sieht dies wie folgt aus:

image

Was müsste ich dort löschen?

brutella commented 4 years ago

Ich sehe leider deine Ordnerstruktur nicht.

sberer commented 4 years ago
image
brutella commented 4 years ago

Den ausgewählten Ordner, mit der langen Zahlen- und Buchstabenfolge, musst du löschen.

sberer commented 4 years ago

Leider kein Erfolg. Ich habe es mehrmals probiert.

DEBUG 2020/02/19 06:08:25 io.go:12: read: 2/3/4
2020/02/19 06:08:25 unpack: Can't unpack type <nil>
2020/02/19 06:08:25 Unexpected inbound message of type <nil>
DEBUG 2020/02/19 06:08:26 io.go:16: read: group read: timeout
DEBUG 2020/02/19 06:08:26 io.go:12: read: 2/5/4
2020/02/19 06:08:26 unpack: Can't unpack type <nil>
2020/02/19 06:08:26 Unexpected inbound message of type <nil>
DEBUG 2020/02/19 06:08:27 io.go:16: read: group read: timeout
INFO 2020/02/19 06:08:27 ip_transport.go:184: Listening on port 9124
INFO 2020/02/19 06:08:27 app.go:203: stopping HomeKit...
DEBUG 2020/02/19 06:08:27 ip_transport.go:191: server stopped
DEBUG 2020/02/19 06:08:28 ip_transport.go:169: mdns responder stopped
DEBUG 2020/02/19 06:08:28 main.go:126: app: tunnel closed; retrying in 5s

Hilft der Log Output weiter?

brutella commented 4 years ago

Ja, das hilft. Es scheint ein Verbindungsproblem zu KNX zu geben. Welche Einstellungen hast du zum KNX Gateway?

sberer commented 4 years ago
image

Überprüfung der Verbindung ist OK.

brutella commented 4 years ago

Bitte update auf die aktuellste Version (Klick auf "Nach Updates suchen") und versuche es noch einmal.

sberer commented 4 years ago

Leider nein. Version 0.0.12.

./hkknx -db database/
INFO 2020/02/25 06:25:20 main.go:54: version 0.0.12 (built at 2020-02-21T12:35:50Z+0100)
INFO 2020/02/25 06:25:20 main.go:162: webpage available at port 8080
2020/02/25 06:25:20 unpack: Can't unpack type <nil>
2020/02/25 06:25:20 Unexpected inbound message of type <nil>
INFO 2020/02/25 06:25:21 ip_transport.go:184: Listening on port 49308
2020/02/25 06:25:21 unpack: Can't unpack type <nil>
2020/02/25 06:25:21 Unexpected inbound message of type <nil>
INFO 2020/02/25 06:25:22 app.go:203: stopping HomeKit...
2020/02/25 06:25:28 unpack: Can't unpack type <nil>
2020/02/25 06:25:28 Unexpected inbound message of type <nil>
INFO 2020/02/25 06:25:29 ip_transport.go:184: Listening on port 49314
2020/02/25 06:25:29 unpack: Can't unpack type <nil>
2020/02/25 06:25:29 Unexpected inbound message of type <nil>
INFO 2020/02/25 06:25:30 app.go:203: stopping HomeKit...
2020/02/25 06:25:35 unpack: Can't unpack type <nil>
2020/02/25 06:25:35 Unexpected inbound message of type <nil>
INFO 2020/02/25 06:25:36 ip_transport.go:184: Listening on port 49327
2020/02/25 06:25:36 unpack: Can't unpack type <nil>
2020/02/25 06:25:36 Unexpected inbound message of type <nil>
INFO 2020/02/25 06:25:37 app.go:203: stopping HomeKit...
2020/02/25 06:25:43 unpack: Can't unpack type <nil>
2020/02/25 06:25:43 Unexpected inbound message of type <nil>
INFO 2020/02/25 06:25:44 ip_transport.go:184: Listening on port 49341
2020/02/25 06:25:44 unpack: Can't unpack type <nil>
2020/02/25 06:25:44 Unexpected inbound message of type <nil>
INFO 2020/02/25 06:25:45 app.go:203: stopping HomeKit...
2020/02/25 06:25:50 unpack: Can't unpack type <nil>
2020/02/25 06:25:50 Unexpected inbound message of type <nil>
INFO 2020/02/25 06:25:51 ip_transport.go:184: Listening on port 49372
2020/02/25 06:25:51 unpack: Can't unpack type <nil>
2020/02/25 06:25:51 Unexpected inbound message of type <nil>
INFO 2020/02/25 06:25:52 app.go:203: stopping HomeKit...
2020/02/25 06:25:58 unpack: Can't unpack type <nil>
2020/02/25 06:25:58 Unexpected inbound message of type <nil>
INFO 2020/02/25 06:25:59 ip_transport.go:184: Listening on port 49414
2020/02/25 06:25:59 unpack: Can't unpack type <nil>
2020/02/25 06:25:59 Unexpected inbound message of type <nil>
INFO 2020/02/25 06:26:00 app.go:203: stopping HomeKit...
2020/02/25 06:26:05 unpack: Can't unpack type <nil>
2020/02/25 06:26:05 Unexpected inbound message of type <nil>
INFO 2020/02/25 06:26:06 ip_transport.go:184: Listening on port 49424
2020/02/25 06:26:06 unpack: Can't unpack type <nil>
2020/02/25 06:26:06 Unexpected inbound message of type <nil>
INFO 2020/02/25 06:26:07 app.go:203: stopping HomeKit...
2020/02/25 06:26:12 unpack: Can't unpack type <nil>
2020/02/25 06:26:12 Unexpected inbound message of type <nil>
INFO 2020/02/25 06:26:13 ip_transport.go:184: Listening on port 49429
2020/02/25 06:26:13 unpack: Can't unpack type <nil>
2020/02/25 06:26:13 Unexpected inbound message of type <nil>
INFO 2020/02/25 06:26:14 app.go:203: stopping HomeKit...
2020/02/25 06:26:20 unpack: Can't unpack type <nil>
2020/02/25 06:26:20 Unexpected inbound message of type <nil>
INFO 2020/02/25 06:26:21 ip_transport.go:184: Listening on port 49434
2020/02/25 06:26:21 unpack: Can't unpack type <nil>
2020/02/25 06:26:21 Unexpected inbound message of type <nil>
INFO 2020/02/25 06:26:22 app.go:203: stopping HomeKit...
2020/02/25 06:26:27 unpack: Can't unpack type <nil>
2020/02/25 06:26:27 Unexpected inbound message of type <nil>
INFO 2020/02/25 06:26:28 ip_transport.go:184: Listening on port 49457
2020/02/25 06:26:28 unpack: Can't unpack type <nil>
2020/02/25 06:26:28 Unexpected inbound message of type <nil>
INFO 2020/02/25 06:26:29 app.go:203: stopping HomeKit...
2020/02/25 06:26:34 unpack: Can't unpack type <nil>
2020/02/25 06:26:34 Unexpected inbound message of type <nil>
brutella commented 4 years ago

Es scheint so als ob eine KNX Nachricht nicht richtig gelesen werden konnte. Ich habe jetzt wieder einen neuen Build hochgeladen, der beim Auftreten des Fehlers die Datenbytes in das Log ausgibt.

Bitte nochmal ausprobieren und die Fehlerausgabe hier posten.

sberer commented 4 years ago

Ich sehe leider keinen neuen Build. Bin auf Version 0.0.12.

image image
brutella commented 4 years ago

Die aktuellste Version 0.0.13 ist noch als Pre-release markiert und kann daher nur direkt heruntergeladen werden.

sberer commented 4 years ago
./hkknx -db database/
INFO 2020/02/27 06:35:46 main.go:54: version 0.0.13 (built at 2020-02-25T08:56:17Z+0100)
INFO 2020/02/27 06:35:46 main.go:162: webpage available at port 8080
2020/02/27 06:35:46 unpack [6 16 4 32 0 31 4 1 0 0 46 10 6 4 9 219 167 74 128 2 69 180 188 224 255 254 9 1 1 0 0]: Can't unpack type <nil>
INFO 2020/02/27 06:35:47 ip_transport.go:184: Listening on port 52327
2020/02/27 06:35:47 unpack [6 16 4 32 0 31 4 1 0 0 46 10 6 4 9 219 167 74 128 2 69 180 188 224 255 254 9 1 1 0 0]: Can't unpack type <nil>
INFO 2020/02/27 06:35:48 app.go:220: stopping HomeKit...
2020/02/27 06:35:53 unpack [6 16 4 32 0 31 4 1 0 0 46 10 6 4 10 130 162 137 128 2 69 182 188 224 255 254 9 1 1 0 0]: Can't unpack type <nil>
INFO 2020/02/27 06:35:54 ip_transport.go:184: Listening on port 52380
2020/02/27 06:35:55 unpack [6 16 4 32 0 31 4 1 0 0 46 10 6 4 10 130 162 137 128 2 69 182 188 224 255 254 9 1 1 0 0]: Can't unpack type <nil>
INFO 2020/02/27 06:35:56 app.go:220: stopping HomeKit...
2020/02/27 06:36:01 unpack [6 16 4 32 0 31 4 1 0 0 46 10 6 4 11 41 190 173 128 2 69 183 188 224 255 254 9 1 1 0 0]: Can't unpack type <nil>
INFO 2020/02/27 06:36:02 ip_transport.go:184: Listening on port 52381
2020/02/27 06:36:02 unpack [6 16 4 32 0 31 4 1 0 0 46 10 6 4 11 41 190 173 128 2 69 183 188 224 255 254 9 1 1 0 0]: Can't unpack type <nil>
INFO 2020/02/27 06:36:03 app.go:220: stopping HomeKit...
2020/02/27 06:36:03 unpack [6 16 4 32 0 31 4 1 0 0 46 10 6 4 11 94 53 72 128 2 69 189 188 224 255 254 9 1 1 0 0]: Can't unpack type <nil>
INFO 2020/02/27 06:36:04 ip_transport.go:184: Listening on port 52388
2020/02/27 06:36:04 unpack [6 16 4 32 0 31 4 1 0 0 46 10 6 4 11 94 53 72 128 2 69 189 188 224 255 254 9 1 1 0 0]: Can't unpack type <nil>
INFO 2020/02/27 06:36:05 app.go:220: stopping HomeKit...
2020/02/27 06:36:10 unpack [6 16 4 32 0 31 4 1 0 0 46 10 6 4 12 5 31 92 128 2 69 190 188 224 255 254 9 1 1 0 0]: Can't unpack type <nil>
INFO 2020/02/27 06:36:11 ip_transport.go:184: Listening on port 52394
2020/02/27 06:36:12 unpack [6 16 4 32 0 31 4 1 0 0 46 10 6 4 12 5 31 92 128 2 69 190 188 224 255 254 9 1 1 0 0]: Can't unpack type <nil>
INFO 2020/02/27 06:36:12 app.go:220: stopping HomeKit...
2020/02/27 06:36:18 unpack [6 16 4 32 0 31 4 1 0 0 46 10 6 4 12 172 39 213 128 2 69 195 188 224 255 254 9 1 1 0 0]: Can't unpack type <nil>
INFO 2020/02/27 06:36:19 ip_transport.go:184: Listening on port 52396
2020/02/27 06:36:19 unpack [6 16 4 32 0 31 4 1 0 0 46 10 6 4 12 172 39 213 128 2 69 195 188 224 255 254 9 1 1 0 0]: Can't unpack type <nil>
INFO 2020/02/27 06:36:20 app.go:220: stopping HomeKit...
2020/02/27 06:36:25 unpack [6 16 4 32 0 31 4 1 0 0 46 10 6 4 13 83 28 90 128 2 69 201 188 224 255 254 9 1 1 0 0]: Can't unpack type <nil>
INFO 2020/02/27 06:36:26 ip_transport.go:184: Listening on port 52397
2020/02/27 06:36:26 unpack [6 16 4 32 0 31 4 1 0 0 46 10 6 4 13 83 28 90 128 2 69 201 188 224 255 254 9 1 1 0 0]: Can't unpack type <nil>
INFO 2020/02/27 06:36:27 app.go:220: stopping HomeKit...
^CINFO 2020/02/27 06:36:31 main.go:155: shutting down...
INFO 2020/02/27 06:36:31 main.go:158: good bye ;)
brutella commented 4 years ago

Danke, diese Informationen haben sehr geholfen. Ein neuer Build ist jetzt wieder verfügbar. Bitte downloaden und ausprobieren – diesmal sollte es klappen. 🤞

sberer commented 4 years ago

Ich sehe nur die Beta Release v13 welche bereits 3 Tage alt ist....? Soll ich diese verwenden?

brutella commented 4 years ago

Ja, der Build zum Herunterladen ist von heute.

brutella commented 4 years ago

Konntest du den aktuellsten Build schon ausprobieren?

sberer commented 4 years ago

Ja, hat jetzt funktioniert. Danke dir!