NEWS
Test Alpha Homekit-Controller 0.0.x
-
@apollon77
So habe noch eine Ergänzung nach Google Recherche... im Bluetooth Service vorgenommen.
Zumindest lieferte der Bluetooth Service danach keine Fehler mehr.
Und auch das identifizieren ging dann wieder.Habe diese Zeile so abgeändert
ExecStart=/usr/lib/bluetooth/bluetoothd --noplugin=sap
Nur das pairen will einfach nicht.
Hier das Log:iobroker@iobroker:~$ sudo systemctl status bluetooth.service ● bluetooth.service - Bluetooth service Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2022-02-17 18:58:26 CET; 13s ago Docs: man:bluetoothd(8) Main PID: 2443 (bluetoothd) Status: "Running" Tasks: 1 (limit: 7090) Memory: 740.0K CPU: 9ms CGroup: /system.slice/bluetooth.service └─2443 /usr/libexec/bluetooth/bluetoothd --noplugin=sap Feb 17 18:58:26 iobroker systemd[1]: Starting Bluetooth service... Feb 17 18:58:26 iobroker bluetoothd[2443]: Bluetooth daemon 5.55 Feb 17 18:58:26 iobroker systemd[1]: Started Bluetooth service. Feb 17 18:58:26 iobroker bluetoothd[2443]: Starting SDP server Feb 17 18:58:26 iobroker bluetoothd[2443]: Excluding (cli) sap Feb 17 18:58:26 iobroker bluetoothd[2443]: Bluetooth management interface 1.18 initialized iobroker@iobroker:~$ DEBUG=hap* node /opt/iobroker/node_modules/iobroker.homekit-controller/build/main.js 0 --debug 2022-02-17 19:00:01.818 - debug: homekit-controller.0 (2501) Redis Objects: Use Redis connection: 127.0.0.1:9001 2022-02-17 19:00:01.856 - debug: homekit-controller.0 (2501) Objects client ready ... initialize now 2022-02-17 19:00:01.857 - debug: homekit-controller.0 (2501) Objects create System PubSub Client 2022-02-17 19:00:01.858 - debug: homekit-controller.0 (2501) Objects create User PubSub Client 2022-02-17 19:00:01.879 - debug: homekit-controller.0 (2501) Objects client initialize lua scripts 2022-02-17 19:00:01.881 - debug: homekit-controller.0 (2501) Objects connected to redis: 127.0.0.1:9001 2022-02-17 19:00:01.896 - debug: homekit-controller.0 (2501) Redis States: Use Redis connection: 127.0.0.1:6379 2022-02-17 19:00:01.898 - debug: homekit-controller.0 (2501) States create System PubSub Client 2022-02-17 19:00:01.899 - debug: homekit-controller.0 (2501) States create User PubSub Client 2022-02-17 19:00:01.901 - debug: homekit-controller.0 (2501) States connected to redis: 127.0.0.1:6379 2022-02-17 19:00:01.917 - debug: homekit-controller.0 (2501) Plugin sentry Initialize Plugin (enabled=true) 2022-02-17 19:00:01.992 - error: homekit-controller.0 (2501) adapter disabled 2022-02-17 19:00:02.039 - info: homekit-controller.0 (2501) starting. Version 0.4.3 in /opt/iobroker/node_modules/iobroker.homekit-controller, node: v14.19.0, js-controller: 4.0.10 2022-02-17 19:00:02.112 - debug: homekit-controller.0 (2501) state homekit-controller.0.info.connection changed: false (ack = true) 2022-02-17 19:00:02.114 - debug: homekit-controller.0 (2501) Init 1 known devices without discovery ... 2022-02-17 19:00:02.115 - debug: homekit-controller.0 (2501) Init BLE-BA:0A:DB:84:F2:CE as known device 2022-02-17 19:00:02.116 - info: homekit-controller.0 (2501) BLE-BA:0A:DB:84:F2:CE (Eve Degree 5980) found without pairing data but available for pairing: Create basic objects 2022-02-17 19:00:02.116 - debug: homekit-controller.0 (2501) Service: {"name":"Eve Degree 5980","CoID":76,"TY":6,"AIL":49,"SF":1,"DeviceID":"ba:0a:db:84:f2:ce","ACID":10,"GSN":2,"CN":3,"CV":2,"c#":3,"id":"ba:0a:db:84:f2:ce","ci":10,"availableToPair":true} 2022-02-17 19:00:02.128 - debug: homekit-controller.0 (2501) state homekit-controller.0.BLE-BA:0A:DB:84:F2:CE.info.connectionType changed: BLE (ack = true) 2022-02-17 19:00:02.134 - debug: homekit-controller.0 (2501) state homekit-controller.0.BLE-BA:0A:DB:84:F2:CE.info.id changed: ba:0a:db:84:f2:ce (ack = true) 2022-02-17 19:00:02.138 - debug: homekit-controller.0 (2501) state homekit-controller.0.BLE-BA:0A:DB:84:F2:CE.info.connected changed: false (ack = true) 2022-02-17 19:00:02.145 - debug: homekit-controller.0 (2501) state homekit-controller.0.BLE-BA:0A:DB:84:F2:CE.admin.isPaired changed: false (ack = true) 2022-02-17 19:00:02.149 - debug: homekit-controller.0 (2501) state homekit-controller.0.BLE-BA:0A:DB:84:F2:CE.info.lastDiscovered changed: 1645120802117 (ack = true) 2022-02-17 19:00:02.689 - debug: homekit-controller.0 (2501) Discovered BLE device up: ba:0a:db:84:f2:ce/Eve Degree 5980 2022-02-17 19:00:02.689 - debug: homekit-controller.0 (2501) BLE-BA:0A:DB:84:F2:CE Discovered BLE device: {"name":"Eve Degree 5980","CoID":76,"TY":6,"AIL":49,"SF":1,"DeviceID":"ba:0a:db:84:f2:ce","ACID":10,"GSN":2,"CN":3,"CV":2,"c#":3,"id":"ba:0a:db:84:f2:ce","ci":10,"availableToPair":true} 2022-02-17 19:00:02.690 - info: homekit-controller.0 (2501) BLE-BA:0A:DB:84:F2:CE (Eve Degree 5980) found without pairing data but available for pairing: Create basic objects 2022-02-17 19:00:02.690 - debug: homekit-controller.0 (2501) Service: {"name":"Eve Degree 5980","CoID":76,"TY":6,"AIL":49,"SF":1,"DeviceID":"ba:0a:db:84:f2:ce","ACID":10,"GSN":2,"CN":3,"CV":2,"c#":3,"id":"ba:0a:db:84:f2:ce","ci":10,"availableToPair":true} 2022-02-17 19:00:02.698 - debug: homekit-controller.0 (2501) state homekit-controller.0.BLE-BA:0A:DB:84:F2:CE.info.connectionType changed: BLE (ack = true) 2022-02-17 19:00:02.701 - debug: homekit-controller.0 (2501) state homekit-controller.0.BLE-BA:0A:DB:84:F2:CE.info.id changed: ba:0a:db:84:f2:ce (ack = true) 2022-02-17 19:00:02.705 - debug: homekit-controller.0 (2501) state homekit-controller.0.BLE-BA:0A:DB:84:F2:CE.info.connected changed: false (ack = true) 2022-02-17 19:00:02.710 - debug: homekit-controller.0 (2501) state homekit-controller.0.BLE-BA:0A:DB:84:F2:CE.admin.isPaired changed: false (ack = true) 2022-02-17 19:00:02.714 - debug: homekit-controller.0 (2501) state homekit-controller.0.BLE-BA:0A:DB:84:F2:CE.info.lastDiscovered changed: 1645120802690 (ack = true) 2022-02-17 19:00:07.994 - debug: homekit-controller.0 (2501) Message getDiscoveredDevices received: {"command":"getDiscoveredDevices","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":33,"ack":false,"time":1645120807993},"_id":16181580}) 2022-02-17 19:00:07.994 - debug: homekit-controller.0 (2501) Response to Command getDiscoveredDevices: {"success":true,"error":false,"devices":[{"id":"BLE-BA:0A:DB:84:F2:CE","serviceType":"BLE","connected":false,"discovered":true,"availableToPair":true,"discoveredName":"Eve Degree 5980","discoveredCategory":"Sensor","pairedWithThisInstance":false}]} 2022-02-17 19:00:09.643 - debug: homekit-controller.0 (2501) Message identify received: {"command":"identify","message":{"deviceId":"BLE-BA:0A:DB:84:F2:CE"},"from":"system.adapter.admin.0","callback":{"message":{"deviceId":"BLE-BA:0A:DB:84:F2:CE"},"id":34,"ack":false,"time":1645120809642},"_id":16181581}) 2022-02-17 19:00:09.643 - debug: homekit-controller.0 (2501) Device BLE-BA:0A:DB:84:F2:CE: Identify triggered hap-controller:gatt-connection connect peripheral +0ms hap-controller:tlv Add 1 bytes for tag 1: 01 +0ms hap-controller:gatt-connection ff4feaecc339/ff:4f:ea:ec:c3:39 Write for characteristic 000000140000100080000026bb765291 00020003000300010101 +4s hap-controller:gatt-connection ff4feaecc339/ff:4f:ea:ec:c3:39 Received data for characteristic 000000140000100080000026bb765291 020000 +224ms hap-controller:gatt-connection disconnect peripheral +1ms hap-controller:gatt-connection Peripheral disconnected +45ms 2022-02-17 19:00:13.890 - debug: homekit-controller.0 (2501) Response to Command identify: {"success":true,"error":false} 2022-02-17 19:00:15.413 - debug: homekit-controller.0 (2501) Message getDiscoveredDevices received: {"command":"getDiscoveredDevices","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":35,"ack":false,"time":1645120815413},"_id":16181582}) 2022-02-17 19:00:15.414 - debug: homekit-controller.0 (2501) Response to Command getDiscoveredDevices: {"success":true,"error":false,"devices":[{"id":"BLE-BA:0A:DB:84:F2:CE","serviceType":"BLE","connected":false,"discovered":true,"availableToPair":true,"discoveredName":"Eve Degree 5980","discoveredCategory":"Sensor","pairedWithThisInstance":false}]} 2022-02-17 19:00:25.994 - debug: homekit-controller.0 (2501) Message identify received: {"command":"identify","message":{"deviceId":"BLE-BA:0A:DB:84:F2:CE"},"from":"system.adapter.admin.0","callback":{"message":{"deviceId":"BLE-BA:0A:DB:84:F2:CE"},"id":36,"ack":false,"time":1645120825994},"_id":16181583}) 2022-02-17 19:00:25.995 - debug: homekit-controller.0 (2501) Device BLE-BA:0A:DB:84:F2:CE: Identify triggered hap-controller:gatt-connection connect peripheral +12s hap-controller:gatt-connection disconnect peripheral +5s 2022-02-17 19:01:00.829 - debug: homekit-controller.0 (2501) Response to Command identify: {"success":false,"error":"Cannot identify device BLE-BA:0A:DB:84:F2:CE because of error undefined: Unknown Connection Identifier (0x2)"} ^Ciobroker@iobroker:~$ DEBUG=hap* node /opt/iobroker/node_modules/iobroker.homekit-controller/build/main.js 0 --debug 2022-02-17 19:01:16.958 - debug: homekit-controller.0 (2526) Redis Objects: Use Redis connection: 127.0.0.1:9001 2022-02-17 19:01:16.994 - debug: homekit-controller.0 (2526) Objects client ready ... initialize now 2022-02-17 19:01:16.995 - debug: homekit-controller.0 (2526) Objects create System PubSub Client 2022-02-17 19:01:16.996 - debug: homekit-controller.0 (2526) Objects create User PubSub Client 2022-02-17 19:01:17.016 - debug: homekit-controller.0 (2526) Objects client initialize lua scripts 2022-02-17 19:01:17.018 - debug: homekit-controller.0 (2526) Objects connected to redis: 127.0.0.1:9001 2022-02-17 19:01:17.031 - debug: homekit-controller.0 (2526) Redis States: Use Redis connection: 127.0.0.1:6379 2022-02-17 19:01:17.033 - debug: homekit-controller.0 (2526) States create System PubSub Client 2022-02-17 19:01:17.034 - debug: homekit-controller.0 (2526) States create User PubSub Client 2022-02-17 19:01:17.036 - debug: homekit-controller.0 (2526) States connected to redis: 127.0.0.1:6379 2022-02-17 19:01:17.049 - debug: homekit-controller.0 (2526) Plugin sentry Initialize Plugin (enabled=true) 2022-02-17 19:01:17.110 - error: homekit-controller.0 (2526) adapter disabled 2022-02-17 19:01:17.159 - info: homekit-controller.0 (2526) starting. Version 0.4.3 in /opt/iobroker/node_modules/iobroker.homekit-controller, node: v14.19.0, js-controller: 4.0.10 2022-02-17 19:01:17.232 - debug: homekit-controller.0 (2526) state homekit-controller.0.info.connection changed: false (ack = true) 2022-02-17 19:01:17.235 - debug: homekit-controller.0 (2526) Init 1 known devices without discovery ... 2022-02-17 19:01:17.236 - debug: homekit-controller.0 (2526) Init BLE-BA:0A:DB:84:F2:CE as known device 2022-02-17 19:01:17.237 - info: homekit-controller.0 (2526) BLE-BA:0A:DB:84:F2:CE (Eve Degree 5980) found without pairing data but available for pairing: Create basic objects 2022-02-17 19:01:17.238 - debug: homekit-controller.0 (2526) Service: {"name":"Eve Degree 5980","CoID":76,"TY":6,"AIL":49,"SF":1,"DeviceID":"ba:0a:db:84:f2:ce","ACID":10,"GSN":2,"CN":3,"CV":2,"c#":3,"id":"ba:0a:db:84:f2:ce","ci":10,"availableToPair":true} 2022-02-17 19:01:17.248 - debug: homekit-controller.0 (2526) state homekit-controller.0.BLE-BA:0A:DB:84:F2:CE.info.connectionType changed: BLE (ack = true) 2022-02-17 19:01:17.252 - debug: homekit-controller.0 (2526) state homekit-controller.0.BLE-BA:0A:DB:84:F2:CE.info.id changed: ba:0a:db:84:f2:ce (ack = true) 2022-02-17 19:01:17.255 - debug: homekit-controller.0 (2526) state homekit-controller.0.BLE-BA:0A:DB:84:F2:CE.info.connected changed: false (ack = true) 2022-02-17 19:01:17.259 - debug: homekit-controller.0 (2526) state homekit-controller.0.BLE-BA:0A:DB:84:F2:CE.admin.isPaired changed: false (ack = true) 2022-02-17 19:01:17.262 - debug: homekit-controller.0 (2526) state homekit-controller.0.BLE-BA:0A:DB:84:F2:CE.info.lastDiscovered changed: 1645120877239 (ack = true) 2022-02-17 19:01:20.744 - debug: homekit-controller.0 (2526) Discovered BLE device up: ba:0a:db:84:f2:ce/Eve Degree 5980 2022-02-17 19:01:20.745 - debug: homekit-controller.0 (2526) BLE-BA:0A:DB:84:F2:CE Discovered BLE device: {"name":"Eve Degree 5980","CoID":76,"TY":6,"AIL":49,"SF":1,"DeviceID":"ba:0a:db:84:f2:ce","ACID":10,"GSN":2,"CN":3,"CV":2,"c#":3,"id":"ba:0a:db:84:f2:ce","ci":10,"availableToPair":true} 2022-02-17 19:01:20.745 - info: homekit-controller.0 (2526) BLE-BA:0A:DB:84:F2:CE (Eve Degree 5980) found without pairing data but available for pairing: Create basic objects 2022-02-17 19:01:20.745 - debug: homekit-controller.0 (2526) Service: {"name":"Eve Degree 5980","CoID":76,"TY":6,"AIL":49,"SF":1,"DeviceID":"ba:0a:db:84:f2:ce","ACID":10,"GSN":2,"CN":3,"CV":2,"c#":3,"id":"ba:0a:db:84:f2:ce","ci":10,"availableToPair":true} 2022-02-17 19:01:20.752 - debug: homekit-controller.0 (2526) state homekit-controller.0.BLE-BA:0A:DB:84:F2:CE.info.connectionType changed: BLE (ack = true) 2022-02-17 19:01:20.755 - debug: homekit-controller.0 (2526) state homekit-controller.0.BLE-BA:0A:DB:84:F2:CE.info.id changed: ba:0a:db:84:f2:ce (ack = true) 2022-02-17 19:01:20.759 - debug: homekit-controller.0 (2526) state homekit-controller.0.BLE-BA:0A:DB:84:F2:CE.info.connected changed: false (ack = true) 2022-02-17 19:01:20.766 - debug: homekit-controller.0 (2526) state homekit-controller.0.BLE-BA:0A:DB:84:F2:CE.admin.isPaired changed: false (ack = true) 2022-02-17 19:01:20.769 - debug: homekit-controller.0 (2526) state homekit-controller.0.BLE-BA:0A:DB:84:F2:CE.info.lastDiscovered changed: 1645120880745 (ack = true) 2022-02-17 19:01:25.279 - debug: homekit-controller.0 (2526) Message getDiscoveredDevices received: {"command":"getDiscoveredDevices","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":37,"ack":false,"time":1645120885278},"_id":16181584}) 2022-02-17 19:01:25.280 - debug: homekit-controller.0 (2526) Response to Command getDiscoveredDevices: {"success":true,"error":false,"devices":[{"id":"BLE-BA:0A:DB:84:F2:CE","serviceType":"BLE","connected":false,"discovered":true,"availableToPair":true,"discoveredName":"Eve Degree 5980","discoveredCategory":"Sensor","pairedWithThisInstance":false}]} 2022-02-17 19:01:26.989 - debug: homekit-controller.0 (2526) Message identify received: {"command":"identify","message":{"deviceId":"BLE-BA:0A:DB:84:F2:CE"},"from":"system.adapter.admin.0","callback":{"message":{"deviceId":"BLE-BA:0A:DB:84:F2:CE"},"id":38,"ack":false,"time":1645120886988},"_id":16181585}) 2022-02-17 19:01:26.990 - debug: homekit-controller.0 (2526) Device BLE-BA:0A:DB:84:F2:CE: Identify triggered hap-controller:gatt-connection connect peripheral +0ms hap-controller:tlv Add 1 bytes for tag 1: 01 +0ms hap-controller:gatt-connection ff4feaecc339/ff:4f:ea:ec:c3:39 Write for characteristic 000000140000100080000026bb765291 00020003000300010101 +3s hap-controller:gatt-connection ff4feaecc339/ff:4f:ea:ec:c3:39 Received data for characteristic 000000140000100080000026bb765291 020000 +225ms hap-controller:gatt-connection disconnect peripheral +0ms hap-controller:gatt-connection Peripheral disconnected +45ms 2022-02-17 19:01:30.649 - debug: homekit-controller.0 (2526) Response to Command identify: {"success":true,"error":false} 2022-02-17 19:01:32.166 - debug: homekit-controller.0 (2526) Message getDiscoveredDevices received: {"command":"getDiscoveredDevices","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":39,"ack":false,"time":1645120892163},"_id":16181586}) 2022-02-17 19:01:32.167 - debug: homekit-controller.0 (2526) Response to Command getDiscoveredDevices: {"success":true,"error":false,"devices":[{"id":"BLE-BA:0A:DB:84:F2:CE","serviceType":"BLE","connected":false,"discovered":true,"availableToPair":true,"discoveredName":"Eve Degree 5980","discoveredCategory":"Sensor","pairedWithThisInstance":false}]} 2022-02-17 19:01:51.108 - debug: homekit-controller.0 (2526) Message pairDevice received: {"command":"pairDevice","message":{"deviceId":"BLE-BA:0A:DB:84:F2:CE","pin":"843-54-008"},"from":"system.adapter.admin.0","callback":{"message":{"deviceId":"BLE-BA:0A:DB:84:F2:CE","pin":"843-54-008"},"id":40,"ack":false,"time":1645120911107},"_id":16181587}) hap-controller:gatt-connection connect peripheral +20s hap-controller:gatt-connection disconnect peripheral +7s 2022-02-17 19:02:27.867 - info: homekit-controller.0 (2526) Cannot retrieve BLE PairMethod for device BLE-BA:0A:DB:84:F2:CE because of error undefined: Unknown Connection Identifier (0x2), try default 2022-02-17 19:02:27.868 - info: homekit-controller.0 (2526) Use PairMethod 0 to pair BLE-BA:0A:DB:84:F2:CE 2022-02-17 19:02:27.868 - debug: homekit-controller.0 (2526) BLE-BA:0A:DB:84:F2:CE Start Homekit Device Client initialization hap-controller:gatt-connection disconnect peripheral to reconnect +30s 2022-02-17 19:02:57.870 - debug: homekit-controller.0 (2526) Response to Command pairDevice: {"success":false,"error":"Cannot pair with device BLE-BA:0A:DB:84:F2:CE because of error undefined (undefined): undefined"}
-
Interessant, den Fehler hatte ich in einem Issue schonmal gesehen, aber tja dann wirds ganz interessant. Bitte schaumal da durch https://github.com/Apollon77/ioBroker.homekit-controller/#for-ble-devices und versuche es blt mach dieses Log parallel
-
@apollon77
Habe den Adapter wie im Issue beschrieben von Gihub installiert und das Log erstellt:iobroker@iobroker:~$ DEBUG=hap* node /opt/iobroker/node_modules/iobroker.homekit-controller/build/main.js 0 --debug --logs 2022-02-18 16:07:47.793 - debug: homekit-controller.0 (6682) Redis Objects: Use Redis connection: 127.0.0.1:9001 2022-02-18 16:07:47.815 - debug: homekit-controller.0 (6682) Objects client ready ... initialize now 2022-02-18 16:07:47.816 - debug: homekit-controller.0 (6682) Objects create System PubSub Client 2022-02-18 16:07:47.817 - debug: homekit-controller.0 (6682) Objects create User PubSub Client 2022-02-18 16:07:47.838 - debug: homekit-controller.0 (6682) Objects client initialize lua scripts 2022-02-18 16:07:47.840 - debug: homekit-controller.0 (6682) Objects connected to redis: 127.0.0.1:9001 2022-02-18 16:07:47.854 - debug: homekit-controller.0 (6682) Redis States: Use Redis connection: 127.0.0.1:6379 2022-02-18 16:07:47.856 - debug: homekit-controller.0 (6682) States create System PubSub Client 2022-02-18 16:07:47.857 - debug: homekit-controller.0 (6682) States create User PubSub Client 2022-02-18 16:07:47.860 - debug: homekit-controller.0 (6682) States connected to redis: 127.0.0.1:6379 2022-02-18 16:07:47.872 - debug: homekit-controller.0 (6682) Plugin sentry Initialize Plugin (enabled=true) 2022-02-18 16:07:47.933 - error: homekit-controller.0 (6682) adapter disabled 2022-02-18 16:07:47.978 - info: homekit-controller.0 (6682) starting. Version 0.4.3 (non-npm: Apollon77/ioBroker.homekit-controller#c614463e84bfe9c4e7d5d6038d0babdbcb55b852) in /opt/iobroker/node_modules/iobroker.homekit-controller, node: v14.19.0, js-controller: 4.0.12 2022-02-18 16:07:48.050 - debug: homekit-controller.0 (6682) state homekit-controller.0.info.connection changed: false (ack = true) 2022-02-18 16:07:53.221 - debug: homekit-controller.0 (6682) Discovered BLE device up: 25:3e:f0:cc:4c:64/Eve 2022-02-18 16:07:53.221 - debug: homekit-controller.0 (6682) BLE-25:3E:F0:CC:4C:64 Discovered BLE device: {"name":"Eve","CoID":76,"TY":6,"AIL":49,"SF":1,"DeviceID":"25:3e:f0:cc:4c:64","ACID":10,"GSN":1,"CN":3,"CV":2,"c#":3,"id":"25:3e:f0:cc:4c:64","ci":10,"availableToPair":true} 2022-02-18 16:07:53.222 - info: homekit-controller.0 (6682) BLE-25:3E:F0:CC:4C:64 (Eve) found without pairing data but available for pairing: Create basic objects 2022-02-18 16:07:53.222 - debug: homekit-controller.0 (6682) Service: {"name":"Eve","CoID":76,"TY":6,"AIL":49,"SF":1,"DeviceID":"25:3e:f0:cc:4c:64","ACID":10,"GSN":1,"CN":3,"CV":2,"c#":3,"id":"25:3e:f0:cc:4c:64","ci":10,"availableToPair":true} 2022-02-18 16:07:53.235 - debug: homekit-controller.0 (6682) state homekit-controller.0.BLE-25:3E:F0:CC:4C:64.info.connectionType changed: BLE (ack = true) 2022-02-18 16:07:53.237 - debug: homekit-controller.0 (6682) state homekit-controller.0.BLE-25:3E:F0:CC:4C:64.info.connectionType changed: BLE (ack = true) 2022-02-18 16:07:53.240 - debug: homekit-controller.0 (6682) state homekit-controller.0.BLE-25:3E:F0:CC:4C:64.info.id changed: 25:3e:f0:cc:4c:64 (ack = true) 2022-02-18 16:07:53.243 - debug: homekit-controller.0 (6682) state homekit-controller.0.BLE-25:3E:F0:CC:4C:64.info.connected changed: false (ack = true) 2022-02-18 16:07:53.248 - debug: homekit-controller.0 (6682) state homekit-controller.0.BLE-25:3E:F0:CC:4C:64.admin.isPaired changed: false (ack = true) 2022-02-18 16:07:53.251 - debug: homekit-controller.0 (6682) state homekit-controller.0.BLE-25:3E:F0:CC:4C:64.info.lastDiscovered changed: 1645196873223 (ack = true) 2022-02-18 16:07:53.255 - debug: homekit-controller.0 (6682) state homekit-controller.0.BLE-25:3E:F0:CC:4C:64.admin.pairWithPin changed: (ack = true) 2022-02-18 16:07:53.258 - debug: homekit-controller.0 (6682) state homekit-controller.0.BLE-25:3E:F0:CC:4C:64.admin.identify changed: false (ack = true) 2022-02-18 16:08:10.833 - debug: homekit-controller.0 (6682) Message getDiscoveredDevices received: {"command":"getDiscoveredDevices","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":112,"ack":false,"time":1645196890832},"_id":85128405}) 2022-02-18 16:08:10.833 - debug: homekit-controller.0 (6682) Response to Command getDiscoveredDevices: {"success":true,"error":false,"devices":[{"id":"BLE-25:3E:F0:CC:4C:64","serviceType":"BLE","connected":false,"discovered":true,"availableToPair":true,"discoveredName":"Eve","discoveredCategory":"Sensor","pairedWithThisInstance":false}]} 2022-02-18 16:08:12.873 - debug: homekit-controller.0 (6682) Message identify received: {"command":"identify","message":{"deviceId":"BLE-25:3E:F0:CC:4C:64"},"from":"system.adapter.admin.0","callback":{"message":{"deviceId":"BLE-25:3E:F0:CC:4C:64"},"id":113,"ack":false,"time":1645196892872},"_id":85128406}) 2022-02-18 16:08:12.873 - debug: homekit-controller.0 (6682) Device BLE-25:3E:F0:CC:4C:64: Identify triggered hap-controller:gatt-connection connect peripheral +0ms hap-controller:tlv Add 1 bytes for tag 1: 01 +0ms hap-controller:gatt-connection e60614286935/e6:06:14:28:69:35 Write for characteristic 000000140000100080000026bb765291 00020003000300010101 +6s hap-controller:gatt-connection e60614286935/e6:06:14:28:69:35 Received data for characteristic 000000140000100080000026bb765291 020000 +180ms hap-controller:gatt-connection disconnect peripheral +0ms hap-controller:gatt-connection Peripheral disconnected +45ms 2022-02-18 16:08:18.600 - debug: homekit-controller.0 (6682) Response to Command identify: {"success":true,"error":false} 2022-02-18 16:08:20.110 - debug: homekit-controller.0 (6682) Message getDiscoveredDevices received: {"command":"getDiscoveredDevices","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":114,"ack":false,"time":1645196900109},"_id":85128407}) 2022-02-18 16:08:20.110 - debug: homekit-controller.0 (6682) Response to Command getDiscoveredDevices: {"success":true,"error":false,"devices":[{"id":"BLE-25:3E:F0:CC:4C:64","serviceType":"BLE","connected":false,"discovered":true,"availableToPair":true,"discoveredName":"Eve","discoveredCategory":"Sensor","pairedWithThisInstance":false}]} 2022-02-18 16:08:46.277 - debug: homekit-controller.0 (6682) Message pairDevice received: {"command":"pairDevice","message":{"deviceId":"BLE-25:3E:F0:CC:4C:64","pin":"843-54-008"},"from":"system.adapter.admin.0","callback":{"message":{"deviceId":"BLE-25:3E:F0:CC:4C:64","pin":"843-54-008"},"id":115,"ack":false,"time":1645196926277},"_id":85128408}) hap-controller:gatt-connection connect peripheral +28s hap-controller:gatt-connection e60614286935/e6:06:14:28:69:35 Write for characteristic 0000004f0000100080000026bb765291 0003000f00 +4s hap-controller:gatt-connection e60614286935/e6:06:14:28:69:35 Received data for characteristic 0000004f0000100080000026bb765291 0200000300010101 +225ms hap-controller:gatt-connection disconnect peripheral +0ms hap-controller:gatt-connection Peripheral disconnected +46ms 2022-02-18 16:08:50.462 - info: homekit-controller.0 (6682) Use PairMethod 0 to pair BLE-25:3E:F0:CC:4C:64 2022-02-18 16:08:50.463 - debug: homekit-controller.0 (6682) BLE-25:3E:F0:CC:4C:64 Start Homekit Device Client initialization hap-controller:gatt-connection connect peripheral +2ms 2022-02-18 16:08:55.788 - debug: homekit-controller.0 (6682) Response to Command pairDevice: {"success":false,"error":"Cannot pair with device BLE-25:3E:F0:CC:4C:64 because of error undefined (undefined): Unknown Connection Identifier (0x2)"} 2022-02-18 16:11:45.843 - debug: homekit-controller.0 (6682) Discovered BLE device changed: 25:3e:f0:cc:4c:64/Eve Degree 5980 2022-02-18 16:11:45.843 - debug: homekit-controller.0 (6682) BLE-25:3E:F0:CC:4C:64 Discovered BLE device: {"name":"Eve Degree 5980","CoID":76,"TY":6,"AIL":49,"SF":1,"DeviceID":"25:3e:f0:cc:4c:64","ACID":10,"GSN":2,"CN":3,"CV":2,"c#":3,"id":"25:3e:f0:cc:4c:64","ci":10,"availableToPair":true} 2022-02-18 16:11:45.843 - info: homekit-controller.0 (6682) BLE-25:3E:F0:CC:4C:64 (Eve Degree 5980) found without pairing data but available for pairing: Create basic objects 2022-02-18 16:11:45.844 - debug: homekit-controller.0 (6682) Service: {"name":"Eve Degree 5980","CoID":76,"TY":6,"AIL":49,"SF":1,"DeviceID":"25:3e:f0:cc:4c:64","ACID":10,"GSN":2,"CN":3,"CV":2,"c#":3,"id":"25:3e:f0:cc:4c:64","ci":10,"availableToPair":true} 2022-02-18 16:11:45.852 - debug: homekit-controller.0 (6682) state homekit-controller.0.BLE-25:3E:F0:CC:4C:64.info.connectionType changed: BLE (ack = true) 2022-02-18 16:11:45.854 - debug: homekit-controller.0 (6682) state homekit-controller.0.BLE-25:3E:F0:CC:4C:64.info.id changed: 25:3e:f0:cc:4c:64 (ack = true) 2022-02-18 16:11:45.858 - debug: homekit-controller.0 (6682) state homekit-controller.0.BLE-25:3E:F0:CC:4C:64.info.connected changed: false (ack = true) 2022-02-18 16:11:45.863 - debug: homekit-controller.0 (6682) state homekit-controller.0.BLE-25:3E:F0:CC:4C:64.admin.isPaired changed: false (ack = true) 2022-02-18 16:11:45.866 - debug: homekit-controller.0 (6682) state homekit-controller.0.BLE-25:3E:F0:CC:4C:64.info.lastDiscovered changed: 1645197105844 (ack = true)
-
@fortune95 Hi,
sorry für die späte Antwort ... Kannst Du es nochmal machen und das zweite log mit dem hcitool auch parallel holen? Das ist denke ich dann interessant in Kombi
-
Hi, hab es jetzt mal über die Shell versucht, hier bekomme ich ein Authentication Fehler.
Hast Du eine Idee wie ich den beheben kann.iobroker@iobroker:~$ bluetoothctl Agent registered [CHG] Controller 08:BE:AC:20:8E:F2 Pairable: yes [bluetooth]# devices Device 4D:C8:A4:58:F8:96 4D-C8-A4-58-F8-96 Device 09:CB:9E:AF:84:DF 09-CB-9E-AF-84-DF Device FE:4F:B0:DD:AA:22 Eve Degree 5980 Device 71:B7:B8:6D:37:1D 71-B7-B8-6D-37-1D Device 51:DA:80:04:EA:0C 51-DA-80-04-EA-0C Device 50:2D:26:B8:7F:B1 50-2D-26-B8-7F-B1 [DEL] Device 50:2D:26:B8:7F:B1 50-2D-26-B8-7F-B1 [DEL] Device 71:B7:B8:6D:37:1D 71-B7-B8-6D-37-1D [DEL] Device 09:CB:9E:AF:84:DF 09-CB-9E-AF-84-DF [DEL] Device 51:DA:80:04:EA:0C 51-DA-80-04-EA-0C [DEL] Device 4D:C8:A4:58:F8:96 4D-C8-A4-58-F8-96 [bluetooth]# pair FE:4F:B0:DD:AA:22 Attempting to pair with FE:4F:B0:DD:AA:22 [CHG] Device FE:4F:B0:DD:AA:22 Connected: yes Failed to pair: org.bluez.Error.AuthenticationFailed [CHG] Device FE:4F:B0:DD:AA:22 Connected: no
-
@fortune95 Denke diese bluetooth kommandos brauchen root ... also rum das mit sudo auf
-
@apollon77
Mit sudo bekomme ich die gleiche Fehlermeldung -
@fortune95 aber duuuuuuu. In der obigen Anleitung steht nichts von dem Kommando oder?‘
Ich meine das du das parallel zum Adapter laufen lassen sollst: „ sudo hcidump -t -x >log.txt“
-
@apollon77
hab mich wohl verrannt, hab versucht den treiber des BLE adatpters zu updaten.
Jetzt findet bluetoothctl keinen Controller mehr. -
@fortune95 uuups ... was hast Du getan?
-
@apollon77
Wie gesagt hatte versucht den Treiber zu updaten... leider war mein letztes Image Backup ein Monat alt..., hab jetzt alles wieder auf Stand und der BLE Adapter ist auch wieder auffindbar.Habe den Adapter über den Admin gestartet und vorab über die Shell den hcidump angeworfen. Im Admin bekam ich beim Versuch das BLE zu identifizieren, die folgende Fehlermeldung:
HCI sniffer - Bluetooth packet analyzer ver 5.55 device: hci0 snap_len: 1500 filter: 0xffffffffffffffff 2022-03-14 20:06:06.432692 < HCI Command: Set Event Mask (0x03|0x0001) plen 8 Mask: 0xfffffbff07f8bf3d 2022-03-14 20:06:06.433869 > HCI Event: Command Complete (0x0e) plen 4 Set Event Mask (0x03|0x0001) ncmd 2 status 0x00 2022-03-14 20:06:06.433896 < HCI Command: LE Set Event Mask (0x08|0x0001) plen 8 mask 0x1f00000000000000 (Reserved) 2022-03-14 20:06:06.434835 > HCI Event: Command Complete (0x0e) plen 4 LE Set Event Mask (0x08|0x0001) ncmd 2 status 0x00 2022-03-14 20:06:06.434858 < HCI Command: Read Local Version Information (0x04|0x0001) plen 0 2022-03-14 20:06:06.435878 > HCI Event: Command Complete (0x0e) plen 12 Read Local Version Information (0x04|0x0001) ncmd 2 status 0x00 HCI Version: 5.1 (0xa) HCI Revision: 0xb LMP Version: 5.1 (0xa) LMP Subversion: 0x8761 Manufacturer: Realtek Semiconductor Corporation (93) 2022-03-14 20:06:06.435902 < HCI Command: Write LE Host Supported (0x03|0x006d) plen 2 01 00 2022-03-14 20:06:06.436832 > HCI Event: Command Complete (0x0e) plen 4 Write LE Host Supported (0x03|0x006d) ncmd 2 00 2022-03-14 20:06:06.436858 < HCI Command: Read LE Host Supported (0x03|0x006c) plen 0 2022-03-14 20:06:06.437836 > HCI Event: Command Complete (0x0e) plen 6 Read LE Host Supported (0x03|0x006c) ncmd 2 00 01 00 2022-03-14 20:06:06.437860 < HCI Command: LE Read Buffer Size (0x08|0x0002) plen 0 2022-03-14 20:06:06.438834 > HCI Event: Command Complete (0x0e) plen 7 LE Read Buffer Size (0x08|0x0002) ncmd 2 status 0x00 pktlen 0x00fb maxpkt 0x08 2022-03-14 20:06:06.438858 < HCI Command: Read BD ADDR (0x04|0x0009) plen 0 2022-03-14 20:06:06.439837 > HCI Event: Command Complete (0x0e) plen 10 Read BD ADDR (0x04|0x0009) ncmd 2 status 0x00 bdaddr 08:BE:AC:20:8E:F2 2022-03-14 20:06:06.442284 < HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2 value 0x00 (scanning disabled) filter duplicates 0x01 (enabled) 2022-03-14 20:06:06.443833 > HCI Event: Command Complete (0x0e) plen 4 LE Set Scan Enable (0x08|0x000c) ncmd 2 status 0x00 2022-03-14 20:06:06.443859 < HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7 type 0x01 (active) interval 10.000ms window 10.000ms own address: 0x00 (Public) policy: All 2022-03-14 20:06:06.444827 > HCI Event: Command Complete (0x0e) plen 4 LE Set Scan Parameters (0x08|0x000b) ncmd 2 status 0x00 2022-03-14 20:06:06.447855 < HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2 value 0x00 (scanning disabled) filter duplicates 0x01 (enabled) 2022-03-14 20:06:06.448834 > HCI Event: Command Complete (0x0e) plen 4 LE Set Scan Enable (0x08|0x000c) ncmd 2 status 0x00 2022-03-14 20:06:06.448861 < HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7 type 0x01 (active) interval 10.000ms window 10.000ms
-
@fortune95 Hasdt DU passend dazu auch das ausführliche Debug log des Adapters (Also adapter manuell starten mit DEBUG= ....? Idealerweise brauche ich beides Parallel das ich über die Zeitstempel mappen kann ... sonst rate ich wieder nur rum
-
@apollon77
Wie kann ich denn beide Befehle über die Shell zeitgleich starten? Hast du da einen Tipp für mich. Wenn ich einen von beiden Befehle absetze, ist die Shell blockiert und lässt nur mit STRG - C abbrechen. -
@fortune95 Indem du zwei Shell Fenster parallel öffnest?
-
@apollon77
Manchmal ist es so einfach...
Hier die Logs:
log.txtiobroker@iobroker:~$ DEBUG=hap* node /opt/iobroker/node_modules/iobroker.homekit-controller/build/main.js 0 --debug --logs 2022-03-16 05:17:11.668 - debug: homekit-controller.0 (16117) Redis Objects: Use Redis connection: 127.0.0.1:9001 2022-03-16 05:17:11.708 - debug: homekit-controller.0 (16117) Objects client ready ... initialize now 2022-03-16 05:17:11.709 - debug: homekit-controller.0 (16117) Objects create System PubSub Client 2022-03-16 05:17:11.710 - debug: homekit-controller.0 (16117) Objects create User PubSub Client 2022-03-16 05:17:11.733 - debug: homekit-controller.0 (16117) Objects client initialize lua scripts 2022-03-16 05:17:11.735 - debug: homekit-controller.0 (16117) Objects connected to redis: 127.0.0.1:9001 2022-03-16 05:17:11.749 - debug: homekit-controller.0 (16117) Redis States: Use Redis connection: 127.0.0.1:6379 2022-03-16 05:17:11.751 - debug: homekit-controller.0 (16117) States create System PubSub Client 2022-03-16 05:17:11.751 - debug: homekit-controller.0 (16117) States create User PubSub Client 2022-03-16 05:17:11.754 - debug: homekit-controller.0 (16117) States connected to redis: 127.0.0.1:6379 2022-03-16 05:17:11.766 - debug: homekit-controller.0 (16117) Plugin sentry Initialize Plugin (enabled=true) 2022-03-16 05:17:11.818 - error: homekit-controller.0 (16117) adapter disabled 2022-03-16 05:17:11.866 - info: homekit-controller.0 (16117) starting. Version 0.4.3 (non-npm: Apollon77/ioBroker.homekit-controller#b7c7f7174ee7700864d870c2125c4d00aba85aa5) in /opt/iobroker/node_modules/iobroker.homekit-controller, node: v14.19.0, js-controller: 4.0.21 2022-03-16 05:17:11.936 - debug: homekit-controller.0 (16117) state homekit-controller.0.info.connection changed: false (ack = true) 2022-03-16 05:17:11.940 - debug: homekit-controller.0 (16117) Init 1 known devices without discovery ... 2022-03-16 05:17:11.940 - debug: homekit-controller.0 (16117) Init BLE-6E:B1:4A:68:AA:BB as known device 2022-03-16 05:17:11.940 - info: homekit-controller.0 (16117) BLE-6E:B1:4A:68:AA:BB (Eve Degree 5980) found without pairing data but available for pairing: Create basic objects 2022-03-16 05:17:11.941 - debug: homekit-controller.0 (16117) Service: {"name":"Eve Degree 5980","CoID":76,"TY":6,"AIL":49,"SF":1,"DeviceID":"6e:b1:4a:68:aa:bb","ACID":10,"GSN":6,"CN":3,"CV":2,"c#":3,"id":"6e:b1:4a:68:aa:bb","ci":10,"availableToPair":true} 2022-03-16 05:17:11.952 - debug: homekit-controller.0 (16117) state homekit-controller.0.BLE-6E:B1:4A:68:AA:BB.info.connectionType changed: BLE (ack = true) 2022-03-16 05:17:11.955 - debug: homekit-controller.0 (16117) state homekit-controller.0.BLE-6E:B1:4A:68:AA:BB.info.id changed: 6e:b1:4a:68:aa:bb (ack = true) 2022-03-16 05:17:11.958 - debug: homekit-controller.0 (16117) state homekit-controller.0.BLE-6E:B1:4A:68:AA:BB.info.connected changed: false (ack = true) 2022-03-16 05:17:11.963 - debug: homekit-controller.0 (16117) state homekit-controller.0.BLE-6E:B1:4A:68:AA:BB.admin.isPaired changed: false (ack = true) 2022-03-16 05:17:11.967 - debug: homekit-controller.0 (16117) state homekit-controller.0.BLE-6E:B1:4A:68:AA:BB.info.lastDiscovered changed: 1647404231941 (ack = true) 2022-03-16 05:17:29.918 - debug: homekit-controller.0 (16117) Message getDiscoveredDevices received: {"command":"getDiscoveredDevices","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":119,"ack":false,"time":1647404249917},"_id":67504295}) 2022-03-16 05:17:29.919 - debug: homekit-controller.0 (16117) Response to Command getDiscoveredDevices: {"success":true,"error":false,"devices":[{"id":"BLE-6E:B1:4A:68:AA:BB","serviceType":"BLE","connected":false,"discovered":true,"availableToPair":true,"discoveredName":"Eve Degree 5980","discoveredCategory":"Sensor","pairedWithThisInstance":false}]} 2022-03-16 05:17:35.645 - debug: homekit-controller.0 (16117) Message identify received: {"command":"identify","message":{"deviceId":"BLE-6E:B1:4A:68:AA:BB"},"from":"system.adapter.admin.0","callback":{"message":{"deviceId":"BLE-6E:B1:4A:68:AA:BB"},"id":120,"ack":false,"time":1647404255644},"_id":67504296}) 2022-03-16 05:17:35.645 - debug: homekit-controller.0 (16117) Device BLE-6E:B1:4A:68:AA:BB: Identify triggered 2022-03-16 05:17:35.646 - debug: homekit-controller.0 (16117) Response to Command identify: {"success":false,"error":"Cannot identify device BLE-6E:B1:4A:68:AA:BB because of error undefined: Cannot read property 'state' of undefined"} ^Ciobroker@iobroker:~$ DEBUG=hap* node /opt/iobroker/node_modules/iobroker.homekit-controller/build/main.js 0 --debug --logs 2022-03-16 05:19:05.630 - debug: homekit-controller.0 (16134) Redis Objects: Use Redis connection: 127.0.0.1:9001 2022-03-16 05:19:05.650 - debug: homekit-controller.0 (16134) Objects client ready ... initialize now 2022-03-16 05:19:05.656 - debug: homekit-controller.0 (16134) Objects create System PubSub Client 2022-03-16 05:19:05.657 - debug: homekit-controller.0 (16134) Objects create User PubSub Client 2022-03-16 05:19:05.688 - debug: homekit-controller.0 (16134) Objects client initialize lua scripts 2022-03-16 05:19:05.690 - debug: homekit-controller.0 (16134) Objects connected to redis: 127.0.0.1:9001 2022-03-16 05:19:05.703 - debug: homekit-controller.0 (16134) Redis States: Use Redis connection: 127.0.0.1:6379 2022-03-16 05:19:05.705 - debug: homekit-controller.0 (16134) States create System PubSub Client 2022-03-16 05:19:05.706 - debug: homekit-controller.0 (16134) States create User PubSub Client 2022-03-16 05:19:05.708 - debug: homekit-controller.0 (16134) States connected to redis: 127.0.0.1:6379 2022-03-16 05:19:05.720 - debug: homekit-controller.0 (16134) Plugin sentry Initialize Plugin (enabled=true) 2022-03-16 05:19:05.770 - error: homekit-controller.0 (16134) adapter disabled 2022-03-16 05:19:05.824 - info: homekit-controller.0 (16134) starting. Version 0.4.3 (non-npm: Apollon77/ioBroker.homekit-controller#b7c7f7174ee7700864d870c2125c4d00aba85aa5) in /opt/iobroker/node_modules/iobroker.homekit-controller, node: v14.19.0, js-controller: 4.0.21 2022-03-16 05:19:05.893 - debug: homekit-controller.0 (16134) state homekit-controller.0.info.connection changed: false (ack = true) 2022-03-16 05:19:05.897 - debug: homekit-controller.0 (16134) Init 1 known devices without discovery ... 2022-03-16 05:19:05.897 - debug: homekit-controller.0 (16134) Init BLE-6E:B1:4A:68:AA:BB as known device 2022-03-16 05:19:05.898 - info: homekit-controller.0 (16134) BLE-6E:B1:4A:68:AA:BB (Eve Degree 5980) found without pairing data but available for pairing: Create basic objects 2022-03-16 05:19:05.899 - debug: homekit-controller.0 (16134) Service: {"name":"Eve Degree 5980","CoID":76,"TY":6,"AIL":49,"SF":1,"DeviceID":"6e:b1:4a:68:aa:bb","ACID":10,"GSN":6,"CN":3,"CV":2,"c#":3,"id":"6e:b1:4a:68:aa:bb","ci":10,"availableToPair":true} 2022-03-16 05:19:05.909 - debug: homekit-controller.0 (16134) state homekit-controller.0.BLE-6E:B1:4A:68:AA:BB.info.connectionType changed: BLE (ack = true) 2022-03-16 05:19:05.913 - debug: homekit-controller.0 (16134) state homekit-controller.0.BLE-6E:B1:4A:68:AA:BB.info.id changed: 6e:b1:4a:68:aa:bb (ack = true) 2022-03-16 05:19:05.915 - debug: homekit-controller.0 (16134) state homekit-controller.0.BLE-6E:B1:4A:68:AA:BB.info.connected changed: false (ack = true) 2022-03-16 05:19:05.920 - debug: homekit-controller.0 (16134) state homekit-controller.0.BLE-6E:B1:4A:68:AA:BB.admin.isPaired changed: false (ack = true) 2022-03-16 05:19:05.923 - debug: homekit-controller.0 (16134) state homekit-controller.0.BLE-6E:B1:4A:68:AA:BB.info.lastDiscovered changed: 1647404345899 (ack = true) 2022-03-16 05:19:30.853 - debug: homekit-controller.0 (16134) Message getDiscoveredDevices received: {"command":"getDiscoveredDevices","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":121,"ack":false,"time":1647404370852},"_id":67504297}) 2022-03-16 05:19:30.853 - debug: homekit-controller.0 (16134) Response to Command getDiscoveredDevices: {"success":true,"error":false,"devices":[{"id":"BLE-6E:B1:4A:68:AA:BB","serviceType":"BLE","connected":false,"discovered":true,"availableToPair":true,"discoveredName":"Eve Degree 5980","discoveredCategory":"Sensor","pairedWithThisInstance":false}]} 2022-03-16 05:19:32.854 - debug: homekit-controller.0 (16134) Message identify received: {"command":"identify","message":{"deviceId":"BLE-6E:B1:4A:68:AA:BB"},"from":"system.adapter.admin.0","callback":{"message":{"deviceId":"BLE-6E:B1:4A:68:AA:BB"},"id":122,"ack":false,"time":1647404372853},"_id":67504298}) 2022-03-16 05:19:32.854 - debug: homekit-controller.0 (16134) Device BLE-6E:B1:4A:68:AA:BB: Identify triggered 2022-03-16 05:19:32.855 - debug: homekit-controller.0 (16134) Response to Command identify: {"success":false,"error":"Cannot identify device BLE-6E:B1:4A:68:AA:BB because of error undefined: Cannot read property 'state' of undefined"}
-
@fortune95 Ich glaube jetzt warste zu schnell ... der Adapter hatte das Gerät noch nicht mal gefunden als Du schon getriggert hast ... damit gaaaaanz anderer Fehler (aber fixe ich) ... Also gibt dem Adapter mal Zeit bis er auch BLE discovered hat
-
@apollon77
OK, also nochmal...Nachdem ich den Adapter über die Shell gestartet hatte passierte im Log erstmal gar nichts.
Darufhin habe ich mal den Knopf am Eve gedrückt um ihn aufzuwecken. Wenn ich es richtig interpretiere hat er sich dann auch im Adapter kurz gemeldet.
Beim nachfolgenden Identifizieren kam jedoch prompt die bekannte Fehlermeldung.iobroker@iobroker:~$ DEBUG=hap* node /opt/iobroker/node_modules/iobroker.homekit-controller/build/main.js 0 --debug --logs 2022-03-17 06:11:29.897 - debug: homekit-controller.0 (23910) Redis Objects: Use Redis connection: 127.0.0.1:9001 2022-03-17 06:11:29.922 - debug: homekit-controller.0 (23910) Objects client ready ... initialize now 2022-03-17 06:11:29.923 - debug: homekit-controller.0 (23910) Objects create System PubSub Client 2022-03-17 06:11:29.924 - debug: homekit-controller.0 (23910) Objects create User PubSub Client 2022-03-17 06:11:29.957 - debug: homekit-controller.0 (23910) Objects client initialize lua scripts 2022-03-17 06:11:29.959 - debug: homekit-controller.0 (23910) Objects connected to redis: 127.0.0.1:9001 2022-03-17 06:11:29.975 - debug: homekit-controller.0 (23910) Redis States: Use Redis connection: 127.0.0.1:6379 2022-03-17 06:11:29.977 - debug: homekit-controller.0 (23910) States create System PubSub Client 2022-03-17 06:11:29.978 - debug: homekit-controller.0 (23910) States create User PubSub Client 2022-03-17 06:11:29.980 - debug: homekit-controller.0 (23910) States connected to redis: 127.0.0.1:6379 2022-03-17 06:11:29.991 - debug: homekit-controller.0 (23910) Plugin sentry Initialize Plugin (enabled=true) 2022-03-17 06:11:30.043 - error: homekit-controller.0 (23910) adapter disabled 2022-03-17 06:11:30.085 - info: homekit-controller.0 (23910) starting. Version 0.4.3 (non-npm: Apollon77/ioBroker.homekit-controller#b7c7f7174ee7700864d870c2125c4d00aba85aa5) in /opt/iobroker/node_modules/iobroker.homekit-controller, node: v14.19.0, js-controller: 4.0.21 2022-03-17 06:11:30.160 - debug: homekit-controller.0 (23910) state homekit-controller.0.info.connection changed: false (ack = true) 2022-03-17 06:11:30.164 - debug: homekit-controller.0 (23910) Init 1 known devices without discovery ... 2022-03-17 06:11:30.164 - debug: homekit-controller.0 (23910) Init BLE-6E:B1:4A:68:AA:BB as known device 2022-03-17 06:11:30.165 - info: homekit-controller.0 (23910) BLE-6E:B1:4A:68:AA:BB (Eve Degree 5980) found without pairing data but available for pairing: Create basic objects 2022-03-17 06:11:30.165 - debug: homekit-controller.0 (23910) Service: {"name":"Eve Degree 5980","CoID":76,"TY":6,"AIL":49,"SF":1,"DeviceID":"6e:b1:4a:68:aa:bb","ACID":10,"GSN":6,"CN":3,"CV":2,"c#":3,"id":"6e:b1:4a:68:aa:bb","ci":10,"availableToPair":true} 2022-03-17 06:11:30.174 - debug: homekit-controller.0 (23910) state homekit-controller.0.BLE-6E:B1:4A:68:AA:BB.info.connectionType changed: BLE (ack = true) 2022-03-17 06:11:30.177 - debug: homekit-controller.0 (23910) state homekit-controller.0.BLE-6E:B1:4A:68:AA:BB.info.id changed: 6e:b1:4a:68:aa:bb (ack = true) 2022-03-17 06:11:30.181 - debug: homekit-controller.0 (23910) state homekit-controller.0.BLE-6E:B1:4A:68:AA:BB.info.connected changed: false (ack = true) 2022-03-17 06:11:30.186 - debug: homekit-controller.0 (23910) state homekit-controller.0.BLE-6E:B1:4A:68:AA:BB.admin.isPaired changed: false (ack = true) 2022-03-17 06:11:30.190 - debug: homekit-controller.0 (23910) state homekit-controller.0.BLE-6E:B1:4A:68:AA:BB.info.lastDiscovered changed: 1647493890166 (ack = true) 2022-03-17 06:14:23.793 - debug: homekit-controller.0 (23910) Message getDiscoveredDevices received: {"command":"getDiscoveredDevices","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":169,"ack":false,"time":1647494063792},"_id":67504347}) 2022-03-17 06:14:23.794 - debug: homekit-controller.0 (23910) Response to Command getDiscoveredDevices: {"success":true,"error":false,"devices":[{"id":"BLE-6E:B1:4A:68:AA:BB","serviceType":"BLE","connected":false,"discovered":true,"availableToPair":true,"discoveredName":"Eve Degree 5980","discoveredCategory":"Sensor","pairedWithThisInstance":false}]} 2022-03-17 06:15:33.249 - debug: homekit-controller.0 (23910) Message identify received: {"command":"identify","message":{"deviceId":"BLE-6E:B1:4A:68:AA:BB"},"from":"system.adapter.admin.0","callback":{"message":{"deviceId":"BLE-6E:B1:4A:68:AA:BB"},"id":170,"ack":false,"time":1647494133248},"_id":67504348}) 2022-03-17 06:15:33.249 - debug: homekit-controller.0 (23910) Device BLE-6E:B1:4A:68:AA:BB: Identify triggered 2022-03-17 06:15:33.250 - debug: homekit-controller.0 (23910) Response to Command identify: {"success":false,"error":"Cannot identify device BLE-6E:B1:4A:68:AA:BB because of error undefined: Cannot read property 'state' of undefined"}
Im hcidump gibt es aber keinen Eintrag zu dem Zeitpunkt wo ich den Eve geweckt hatte?
-
@apollon77 Ich habe ein Schiebetür-Antrieb von Nice. Mit dem IT4WIFI Adapter ist das Teil HomeKit fähig. Ich konnte es erfolgreich mit dem HomeKit-Controller (Version 0.4.3) pairen.
Die Statusmeldungen werden auch direkt angezeigt.
{ "type": "state", "common": { "name": "", "read": true, "write": false, "type": "number", "min": 0, "max": 4, "step": 1, "role": "value", "states": { "0": "Open", "1": "Closed", "2": "Opening", "3": "Closing", "4": "Stopped" } }, "native": { "iid": 10, "type": "0000000E-0000-1000-8000-0026BB765291", "perms": [ "pr", "ev" ], "format": "uint8", "minValue": 0, "maxValue": 4, "minStep": 1, "aid": 1, "serviceUuid": "00000041-0000-1000-8000-0026BB765291" }, "from": "system.adapter.homekit-controller.0", "user": "system.user.admin", "ts": 1649497768186, "_id": "homekit-controller.0.IP-60:08:AA:24:96:AA.1.garage-door-opener-2.door-state-current", "acl": { "object": 1636, "state": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator" } }
Ich kann das Gerät leider nicht steuern. Sowohl über den Admin als auch per Test-Script gibt es keine Reaktion. Er zeigt dann im Datenpunkt den gewünschten Status an, aber der Motor reagiert überhaupt nicht.
Hier das Test-Script:
setState("homekit-controller.0.IP-60:08:AA:24:96:AA.1.garage-door-opener-2.door-state-current",2,true);
Hier alle Datenpunkte, die der Adapter liefert:
Ich bin mit meinem Latein jetzt am Ende. Kann es sein, dass dieses Gerät keinen DP zu steuern hat?
Ich hatte vor dem Pairen das Gerät in Apple HomeKit integriert und konnte es ohne Probleme steuern.
-
@martybr ALso ich tippe das "current" den aktuellen Status beschreibt und du zum steuern "target" (Zielzustand) nutzen musst
Wie Du siehst ist "current" auch nicht beschreibbar.
Versuch doch das mal
-
@apollon77 Das funktioniert leider nicht. "target" kennt true/false.
Ich habe beide Werte per Script und auch per Admin gesetzt. Leide keine Reaktion.