[ NUKI Smartlock ] 73_NUKIBridge.pm und 74_NUKDevice.pm

Begonnen von CoolTux, 18 Juli 2016, 23:50:11

Vorheriges Thema - Nächstes Thema

Marvin

Hallo zusammen,

ich habe mir gestern auch mal ein Nuki mit Bridge zugelegt.
Ich möchte es hauptsächlich dazu benutzen das meine Haustür bei scharfer Alarmanlage abgeschlossen wir und bei unscharfer Anlage auf. Die Türöffnung erfolg sowieso mit der verbauten Türöffner.
Zusätzlich soll Abends automatisch abgeschlossen werden.

Nun zu meinem Problem:
Ich bekomme einfach keine Statusänderungen in FHEM angezeigt wenn ich über die APP den Zustand verändere, es sei den ist mache ein "get statusRequest".
Anfänglich hatte ich das Problem auch bei der Steuerung über FHEM, aber nach mehrfachem löschen und neu anlegen war diese Problem behoben.

Ich habe eine extra WEB Instanz damals schon für meinen Doorbird angelegt, der nur die Kommunikation für Interne IP´s erlaubt, halt ohne Token.
Anbei mal meine Konfiguration:

Internals:
   BRIDGEAPI  1.5
   DEF        192.168.100.120 123456
   HOST       192.168.100.120
   NAME       NUKI_Bridge
   NR         250
   PORT       8080
   STATE      connected
   TOKEN      123456
   TYPE       NUKIBridge
   VERSION    0.6.2
   READINGS:
     2018-06-23 07:53:35   0_name          Haust�r
     2018-06-23 07:53:35   0_nukiId        30255XXXX
     2018-06-23 08:20:58   bridgeType      Hardware
     2018-06-23 08:20:58   currentTime     2018-06-23T06:20:58+00:00
     2018-06-23 08:20:58   firmwareVersion 1.10.1
     2018-06-23 08:20:58   hardwareId      28468XXXX
     2018-06-23 08:20:58   serverConnected 1
     2018-06-23 08:20:58   serverId        13398XXXX
     2018-06-23 07:53:35   smartlockCount  1
     2018-06-23 08:20:58   state           connected
     2018-06-23 08:20:58   uptime          4413
     2018-06-23 08:20:58   wifiFirmwareVersion 1.1.0
   helper:
     aliveCount 0
Attributes:
   room       NUKI



Internals:
   DEF        3025XXXX IODev=NUKI_Bridge
   IODev      NUKI_Bridge
   NAME       NUKIDevice3025XXXX
   NR         251
   NUKIID     3025XXXX
   STATE      unlock
   TYPE       NUKIDevice
   VERSION    0.6.2
   WEBHOOK_COUNTER 0
   WEBHOOK_PORT 8088
   WEBHOOK_REGISTER sent
   WEBHOOK_URI /fhem/NUKIDevice
   WEBHOOK_URL http://192.168.100.109:8088/fhem/NUKIDevice-30255XXXX
   READINGS:
     2018-06-23 08:04:06   battery         ok
     2018-06-23 08:04:06   batteryCritical 0
     2018-06-23 08:04:06   batteryState    ok
     2018-06-23 08:06:02   lockState       unlock
     2018-06-23 08:22:40   name            Nuki_1208XXXX
     2018-06-23 08:22:40   paired          1
     2018-06-23 08:22:40   rssi            -68
     2018-06-23 08:06:02   state           unlock
     2018-06-23 08:06:02   success         1
   fhem:
     infix      NUKIDevice
   helper:
Attributes:
   IODev      NUKI_Bridge
   alias      Haust�r
   room       NUKI
   webhookFWinstance WEBApi
   webhookHttpHostname 192.168.100.109



Internals:
   CONNECTS   3
   DEF        8088 global
   FD         19
   NAME       WEBApi
   NR         142
   NTFY_ORDER 50-WEBApi
   PORT       8088
   STATE      Initialized
   TYPE       FHEMWEB
Attributes:
   allowfrom  ^192\.168\.100\.([1-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-4]))$|127.0.0.1|192.168.100.120
   csrfToken  none
   stylesheetPrefix dark


Mit freundlichen Grüßen Marvin

CoolTux

Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Marvin

Hallo CoolTux,

ja sorry, das hatte ich noch vergessen.

Callback-ID Callback-URL
0 http://192.168.100.109:8088/fhem/NUKIDevice-3025XXXX



Gruß Marvin

CoolTux

Passt erstmal. Die webinstanz scheint auch nicht Passwort geschützt zu sein oder HTTPS zu verwenden.

Kannst du die NUKIDevice Instanz bitte einmal auf verbose 5 stellen und dann mit der App schalten?
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Marvin

Hallo CoolTux,

wie gewünscht habe ich Verbose 5 beim Device eingeschaltet, im Log kommt jetzt folgendes:

2018.06.23 11:54:59 5: NUKIDevice (NUKIDevice3025XXXX) - Parse with result: {"paired":true,"name":"Nuki_1208XXXX","rssi":-67}
2018.06.23 11:54:59 5: NUKIDevice (NUKIDevice3025XXXX) - parse status message for NUKIDevice3025XXXX
2018.06.23 11:54:59 5: NUKIDevice (NUKIDevice3025XXXX) - readings set for NUKIDevice3025XXXX
2018.06.23 11:55:39 5: NUKIDevice (NUKIDevice3025XXXX) - Parse with result: {"name":"Nuki_1208XXXX","rssi":-64,"paired":true}
2018.06.23 11:55:39 5: NUKIDevice (NUKIDevice3025XXXX) - parse status message for NUKIDevice3025XXXX
2018.06.23 11:55:39 5: NUKIDevice (NUKIDevice3025XXXX) - readings set for NUKIDevice3025XXXX
2018.06.23 11:56:04 3: NUKIBridge (NUKI_Bridge) - invalid json detected: HTTP 503 Unavailable
2018.06.23 11:56:30 5: NUKIDevice (NUKIDevice3025XXXX) - Parse with result: {"paired":true,"name":"Nuki_1208XXXX","rssi":-68}
2018.06.23 11:56:30 5: NUKIDevice (NUKIDevice3025XXXX) - parse status message for NUKIDevice3025XXXX
2018.06.23 11:56:30 5: NUKIDevice (NUKIDevice3025XXXX) - readings set for NUKIDevice3025XXXX
2018.06.23 11:56:58 5: NUKIDevice (NUKIDevice3025XXXX) - Parse with result: {"paired":true,"rssi":-64,"name":"Nuki_1208XXXX"}
2018.06.23 11:56:58 5: NUKIDevice (NUKIDevice3025XXXX) - parse status message for NUKIDevice3025XXXX
2018.06.23 11:56:58 5: NUKIDevice (NUKIDevice3025XXXX) - readings set for NUKIDevice3025XXXX
2018.06.23 11:57:16 5: NUKIDevice (NUKIDevice3025XXXX) - Parse with result: {"name":"Nuki_1208XXXX","rssi":-64,"paired":true}
2018.06.23 11:57:16 5: NUKIDevice (NUKIDevice3025XXXX) - parse status message for NUKIDevice3025XXXX
2018.06.23 11:57:16 5: NUKIDevice (NUKIDevice3025XXXX) - readings set for NUKIDevice3025XXXX


mehrmal auf und zu geschlossen über die APP

das kommt nach dem checkStatus:

2018.06.23 11:57:37 4: NUKIDevice (NUKIDevice3025XXXX) - NUKIDevice_ReadFromNUKIBridge check Bridge connected
2018.06.23 11:57:37 4: NUKIDevice (NUKIDevice3025XXXX) - NUKIDevice_ReadFromNUKIBridge Bridge is connected call IOWrite
2018.06.23 11:57:37 5: NUKIDevice (NUKIDevice3025XXXX) - NUKIDevice_GetUpdate Call NUKIDevice_ReadFromNUKIBridge
2018.06.23 11:57:39 5: NUKIDevice (NUKIDevice3025XXXX) - Parse with result: {"state": 3, "stateName": "unlocked", "batteryCritical": false, "success": true}
2018.06.23 11:57:39 5: NUKIDevice (NUKIDevice3025XXXX) - parse status message for NUKIDevice3025XXXX
2018.06.23 11:57:39 5: NUKIDevice (NUKIDevice3025XXXX) - readings set for NUKIDevice3025XXXX
2018.06.23 11:57:39 5: NUKIDevice (NUKIDevice3025XXXX) - Parse with result: {"name":"Nuki_1208XXXX","rssi":-68,"paired":true}
2018.06.23 11:57:39 5: NUKIDevice (NUKIDevice3025XXXX) - parse status message for NUKIDevice3025XXXX
2018.06.23 11:57:39 5: NUKIDevice (NUKIDevice3025XXXX) - readings set for NUKIDevice3025XXXX


Danke schonmal für die schnellen Antworten.

Marvin

CoolTux

Da kommt leider nichts. Kannst du bitte einmal bei der Bridge das Log auslesen.
get logFile
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Marvin

#1011
Das ist alles was ich angezeigt bekomme wenn ich kurz vor der Abfrage über die APP zu und wieder auf schließe:

timestamp: 2018-06-23T11:22:00+00:00 type: HTTP-Log
timestamp: 2018-06-23T11:22:00+00:00 type: WLAN-SocketConnected connection: 0
timestamp: 2018-06-23T11:21:54+00:00 type: HTTP-PostFailed urlId: 0
timestamp: 2018-06-23T11:21:52+00:00 type: WLAN-SocketDisconnected connection: 0
timestamp: 2018-06-23T11:21:52+00:00 type: BLE-Disconnected nukiId: 12088ED1
timestamp: 2018-06-23T11:21:52+00:00 type: BLE-Disconnect nukiId: 12088ED1
timestamp: 2018-06-23T11:21:52+00:00 type: BLE-ReceivingMsg nukiId: 12088ED1 cmdId: 000E
timestamp: 2018-06-23T11:21:52+00:00 type: SSE-KeyturnerResponse nukiId: 12088ED1 bytes: 188
timestamp: 2018-06-23T11:21:52+00:00 type: BLE-ReceivingSSE bytes: 55 auth: 00000103
timestamp: 2018-06-23T11:21:52+00:00 type: SSE-KeyturnerResponse nukiId: 12088ED1 bytes: 256
timestamp: 2018-06-23T11:21:52+00:00 type: BLE-ReceivingSSE bytes: 106 auth: 00000103
timestamp: 2018-06-23T11:21:51+00:00 type: WLAN-SocketDisconnected connection: 3
timestamp: 2018-06-23T11:21:49+00:00 type: WLAN-SocketConnected connection: 0
timestamp: 2018-06-23T11:21:49+00:00 type: BLE-SendingSSE bytes: 96 auth: 00000103
timestamp: 2018-06-23T11:21:49+00:00 type: BLE-Connect handles: ARRAY(0x701ab20)
timestamp: 2018-06-23T11:21:49+00:00 type: BLE-Connected nukiId: 12088ED1
timestamp: 2018-06-23T11:21:49+00:00 type: BLE-Connect macAddr: 54D272088ED1
timestamp: 2018-06-23T11:21:49+00:00 type: BLE-Connect nukiId: 12088ED1
timestamp: 2018-06-23T11:21:49+00:00 type: SSE-KeyturnerRequest nukiId: 12088ED1 bytes: 96
timestamp: 2018-06-23T11:21:48+00:00 type: BLE-Disconnected nukiId: 12088ED1
timestamp: 2018-06-23T11:21:48+00:00 type: BLE-Disconnect nukiId: 12088ED1
timestamp: 2018-06-23T11:21:48+00:00 type: BLE-ReceivingMsg nukiId: 12088ED1 cmdId: 000E
timestamp: 2018-06-23T11:21:48+00:00 type: SSE-KeyturnerResponse nukiId: 12088ED1 bytes: 228
timestamp: 2018-06-23T11:21:48+00:00 type: BLE-ReceivingSSE bytes: 86 auth: 00000103
timestamp: 2018-06-23T11:21:48+00:00 type: BLE-SendingSSE bytes: 56 auth: 00000103
timestamp: 2018-06-23T11:21:48+00:00 type: BLE-Connect handles: ARRAY(0x6ffceb8)
timestamp: 2018-06-23T11:21:48+00:00 type: BLE-Connected nukiId: 12088ED1
timestamp: 2018-06-23T11:21:48+00:00 type: BLE-Connect macAddr: 54D272088ED1
timestamp: 2018-06-23T11:21:48+00:00 type: BLE-Connect nukiId: 12088ED1
timestamp: 2018-06-23T11:21:48+00:00 type: SSE-KeyturnerRequest nukiId: 12088ED1 bytes: 56
timestamp: 2018-06-23T11:21:47+00:00 type: BLE-Disconnected nukiId: 12088ED1
timestamp: 2018-06-23T11:21:47+00:00 type: BLE-Disconnect nukiId: 12088ED1
timestamp: 2018-06-23T11:21:47+00:00 type: BLE-ReceivingMsg nukiId: 12088ED1 cmdId: 000E
timestamp: 2018-06-23T11:21:47+00:00 type: SSE-KeyturnerResponse nukiId: 12088ED1 bytes: 208
timestamp: 2018-06-23T11:21:47+00:00 type: BLE-ReceivingSSE bytes: 72 auth: 00000103
timestamp: 2018-06-23T11:21:47+00:00 type: BLE-SendingSSE bytes: 56 auth: 00000103
timestamp: 2018-06-23T11:21:47+00:00 type: BLE-Connect handles: ARRAY(0x701afd0)
timestamp: 2018-06-23T11:21:47+00:00 type: BLE-Connected nukiId: 12088ED1
timestamp: 2018-06-23T11:21:47+00:00 type: BLE-Connect macAddr: 54D272088ED1
timestamp: 2018-06-23T11:21:47+00:00 type: BLE-Connect nukiId: 12088ED1
timestamp: 2018-06-23T11:21:47+00:00 type: SSE-KeyturnerRequest nukiId: 12088ED1 bytes: 56
timestamp: 2018-06-23T11:21:47+00:00 type: SSE-KeyturnerEventResp nukiId: 12088ED1
timestamp: 2018-06-23T11:21:47+00:00 type: HTTP-PostStart
timestamp: 2018-06-23T11:21:47+00:00 type: BLE-Disconnected nukiId: 12088ED1
timestamp: 2018-06-23T11:21:47+00:00 type: BLE-Disconnect nukiId: 12088ED1
timestamp: 2018-06-23T11:21:46+00:00 type: SSE-KeyturnerEventReq nukiId: 12088ED1
timestamp: 2018-06-23T11:21:46+00:00 type: BLE-ReceivingMsg nukiId: 12088ED1 cmdId: 000C
timestamp: 2018-06-23T11:21:46+00:00 type: BLE-SendingMsg nukiId: 12088ED1 cmdId: 0001
timestamp: 2018-06-23T11:21:46+00:00 type: BLE-Connect handles: ARRAY(0x7022370)
timestamp: 2018-06-23T11:21:46+00:00 type: BLE-Connected nukiId: 12088ED1
timestamp: 2018-06-23T11:21:45+00:00 type: BLE-Connect macAddr: 54D272088ED1
timestamp: 2018-06-23T11:21:45+00:00 type: BLE-Connect nukiId: 12088ED1
timestamp: 2018-06-23T11:21:45+00:00 type: BLE-StatusUpdate nukiId: 12088ED1
timestamp: 2018-06-23T11:21:45+00:00 type: BLE-Disconnected nukiId: 12088ED1
timestamp: 2018-06-23T11:21:45+00:00 type: BLE-Disconnect nukiId: 12088ED1
timestamp: 2018-06-23T11:21:45+00:00 type: BLE-ReceivingMsg nukiId: 12088ED1 cmdId: 000E
timestamp: 2018-06-23T11:21:45+00:00 type: SSE-KeyturnerResponse nukiId: 12088ED1 bytes: 189
timestamp: 2018-06-23T11:21:45+00:00 type: BLE-ReceivingSSE bytes: 55 auth: 00000101
timestamp: 2018-06-23T11:21:45+00:00 type: SSE-KeyturnerResponse nukiId: 12088ED1 bytes: 209
timestamp: 2018-06-23T11:21:45+00:00 type: BLE-ReceivingSSE bytes: 72 auth: 00000101
timestamp: 2018-06-23T11:21:40+00:00 type: SSE-KeyturnerResponse nukiId: 12088ED1 bytes: 209
timestamp: 2018-06-23T11:21:40+00:00 type: BLE-ReceivingSSE bytes: 72 auth: 00000101
timestamp: 2018-06-23T11:21:40+00:00 type: SSE-KeyturnerResponse nukiId: 12088ED1 bytes: 189
timestamp: 2018-06-23T11:21:40+00:00 type: BLE-ReceivingSSE bytes: 55 auth: 00000101
timestamp: 2018-06-23T11:21:40+00:00 type: BLE-SendingSSE bytes: 92 auth: 00000101
timestamp: 2018-06-23T11:21:40+00:00 type: BLE-Connect handles: ARRAY(0x704b5d8)
timestamp: 2018-06-23T11:21:40+00:00 type: BLE-Connected nukiId: 12088ED1
timestamp: 2018-06-23T11:21:40+00:00 type: BLE-Connect macAddr: 54D272088ED1
timestamp: 2018-06-23T11:21:40+00:00 type: BLE-Connect nukiId: 12088ED1
timestamp: 2018-06-23T11:21:40+00:00 type: SSE-KeyturnerRequest nukiId: 12088ED1 bytes: 92
timestamp: 2018-06-23T11:21:40+00:00 type: HTTP-PostFailed urlId: 0
timestamp: 2018-06-23T11:21:39+00:00 type: BLE-Disconnected nukiId: 12088ED1
timestamp: 2018-06-23T11:21:39+00:00 type: BLE-Disconnect nukiId: 12088ED1
timestamp: 2018-06-23T11:21:39+00:00 type: BLE-ReceivingMsg nukiId: 12088ED1 cmdId: 000E
timestamp: 2018-06-23T11:21:39+00:00 type: SSE-KeyturnerResponse nukiId: 12088ED1 bytes: 229
timestamp: 2018-06-23T11:21:39+00:00 type: BLE-ReceivingSSE bytes: 86 auth: 00000101
timestamp: 2018-06-23T11:21:39+00:00 type: BLE-SendingSSE bytes: 56 auth: 00000101
timestamp: 2018-06-23T11:21:39+00:00 type: BLE-Connect handles: ARRAY(0x701c310)
timestamp: 2018-06-23T11:21:39+00:00 type: BLE-Connected nukiId: 12088ED1
timestamp: 2018-06-23T11:21:38+00:00 type: BLE-Connect macAddr: 54D272088ED1
timestamp: 2018-06-23T11:21:38+00:00 type: BLE-Connect nukiId: 12088ED1
timestamp: 2018-06-23T11:21:37+00:00 type: BLE-Retry nukiId: 12088ED1 count: 1
timestamp: 2018-06-23T11:21:37+00:00 type: BLE-Disconnected nukiId: 12088ED1
timestamp: 2018-06-23T11:21:37+00:00 type: BLE-Disconnect nukiId: 12088ED1
timestamp: 2018-06-23T11:21:37+00:00 type: BLE-SendingSSE bytes: 56 auth: 00000101
timestamp: 2018-06-23T11:21:37+00:00 type: BLE-ReceivingMsg nukiId: 12088ED1 cmdId: 000E
timestamp: 2018-06-23T11:21:37+00:00 type: WLAN-SocketDisconnected connection: 0
timestamp: 2018-06-23T11:21:37+00:00 type: SSE-KeyturnerResponse nukiId: 12088ED1 bytes: 188
timestamp: 2018-06-23T11:21:37+00:00 type: BLE-ReceivingSSE bytes: 55 auth: 00000103
timestamp: 2018-06-23T11:21:37+00:00 type: WLAN-SocketDisconnected connection: 3
timestamp: 2018-06-23T11:21:36+00:00 type: SSE-KeyturnerRequest nukiId: 12088ED1 bytes: 56
timestamp: 2018-06-23T11:21:35+00:00 type: WLAN-SocketConnected connection: 0
timestamp: 2018-06-23T11:21:35+00:00 type: SSE-KeyturnerResponse nukiId: 12088ED1 bytes: 256
timestamp: 2018-06-23T11:21:35+00:00 type: BLE-ReceivingSSE bytes: 106 auth: 00000103
timestamp: 2018-06-23T11:21:34+00:00 type: BLE-SendingSSE bytes: 96 auth: 00000103
timestamp: 2018-06-23T11:21:34+00:00 type: BLE-Connect handles: ARRAY(0x6dcd678)
timestamp: 2018-06-23T11:21:34+00:00 type: BLE-Connected nukiId: 12088ED1
timestamp: 2018-06-23T11:21:34+00:00 type: BLE-Connect macAddr: 54D272088ED1
timestamp: 2018-06-23T11:21:34+00:00 type: BLE-Connect nukiId: 12088ED1
timestamp: 2018-06-23T11:21:34+00:00 type: SSE-KeyturnerRequest nukiId: 12088ED1 bytes: 96

und das wenn ich über FHEM zu und wieder auf schließe:

timestamp: 2018-06-23T11:25:31+00:00 type: HTTP-Log
timestamp: 2018-06-23T11:25:31+00:00 type: WLAN-SocketConnected connection: 0
timestamp: 2018-06-23T11:25:24+00:00 type: HTTP-PostFailed urlId: 0
timestamp: 2018-06-23T11:25:23+00:00 type: BLE-Disconnected nukiId: 12088ED1
timestamp: 2018-06-23T11:25:23+00:00 type: BLE-Disconnect nukiId: 12088ED1
timestamp: 2018-06-23T11:25:23+00:00 type: BLE-ReceivingMsg nukiId: 12088ED1 cmdId: 000E
timestamp: 2018-06-23T11:25:23+00:00 type: WLAN-SocketDisconnected connection: 0
timestamp: 2018-06-23T11:25:23+00:00 type: SSE-KeyturnerResponse nukiId: 12088ED1 bytes: 188
timestamp: 2018-06-23T11:25:23+00:00 type: BLE-ReceivingSSE bytes: 55 auth: 00000103
timestamp: 2018-06-23T11:25:23+00:00 type: WLAN-SocketDisconnected connection: 3
timestamp: 2018-06-23T11:25:22+00:00 type: WLAN-SocketConnected connection: 0
timestamp: 2018-06-23T11:25:20+00:00 type: SSE-KeyturnerResponse nukiId: 12088ED1 bytes: 256
timestamp: 2018-06-23T11:25:20+00:00 type: BLE-ReceivingSSE bytes: 106 auth: 00000103
timestamp: 2018-06-23T11:25:20+00:00 type: BLE-SendingSSE bytes: 96 auth: 00000103
timestamp: 2018-06-23T11:25:20+00:00 type: BLE-Connect handles: ARRAY(0x6ffdee8)
timestamp: 2018-06-23T11:25:20+00:00 type: BLE-Connected nukiId: 12088ED1
timestamp: 2018-06-23T11:25:20+00:00 type: BLE-Connect macAddr: 54D272088ED1
timestamp: 2018-06-23T11:25:20+00:00 type: BLE-Connect nukiId: 12088ED1
timestamp: 2018-06-23T11:25:20+00:00 type: SSE-KeyturnerRequest nukiId: 12088ED1 bytes: 96
timestamp: 2018-06-23T11:25:19+00:00 type: BLE-Disconnected nukiId: 12088ED1
timestamp: 2018-06-23T11:25:19+00:00 type: BLE-Disconnect nukiId: 12088ED1
timestamp: 2018-06-23T11:25:19+00:00 type: BLE-ReceivingMsg nukiId: 12088ED1 cmdId: 000E
timestamp: 2018-06-23T11:25:19+00:00 type: SSE-KeyturnerResponse nukiId: 12088ED1 bytes: 228
timestamp: 2018-06-23T11:25:19+00:00 type: BLE-ReceivingSSE bytes: 86 auth: 00000103
timestamp: 2018-06-23T11:25:19+00:00 type: BLE-SendingSSE bytes: 56 auth: 00000103
timestamp: 2018-06-23T11:25:19+00:00 type: BLE-Connect handles: ARRAY(0x701c790)
timestamp: 2018-06-23T11:25:19+00:00 type: BLE-Connected nukiId: 12088ED1
timestamp: 2018-06-23T11:25:19+00:00 type: BLE-Connect macAddr: 54D272088ED1
timestamp: 2018-06-23T11:25:19+00:00 type: BLE-Connect nukiId: 12088ED1
timestamp: 2018-06-23T11:25:19+00:00 type: SSE-KeyturnerRequest nukiId: 12088ED1 bytes: 56
timestamp: 2018-06-23T11:25:18+00:00 type: BLE-Disconnected nukiId: 12088ED1
timestamp: 2018-06-23T11:25:18+00:00 type: BLE-Disconnect nukiId: 12088ED1
timestamp: 2018-06-23T11:25:18+00:00 type: BLE-ReceivingMsg nukiId: 12088ED1 cmdId: 000E
timestamp: 2018-06-23T11:25:18+00:00 type: SSE-KeyturnerResponse nukiId: 12088ED1 bytes: 208
timestamp: 2018-06-23T11:25:18+00:00 type: BLE-ReceivingSSE bytes: 72 auth: 00000103
timestamp: 2018-06-23T11:25:18+00:00 type: BLE-SendingSSE bytes: 56 auth: 00000103
timestamp: 2018-06-23T11:25:18+00:00 type: BLE-Connect handles: ARRAY(0x701c2e0)
timestamp: 2018-06-23T11:25:18+00:00 type: BLE-Connected nukiId: 12088ED1
timestamp: 2018-06-23T11:25:18+00:00 type: BLE-Connect macAddr: 54D272088ED1
timestamp: 2018-06-23T11:25:18+00:00 type: BLE-Connect nukiId: 12088ED1
timestamp: 2018-06-23T11:25:18+00:00 type: SSE-KeyturnerRequest nukiId: 12088ED1 bytes: 56
timestamp: 2018-06-23T11:25:18+00:00 type: SSE-KeyturnerEventResp nukiId: 12088ED1
timestamp: 2018-06-23T11:25:17+00:00 type: WLAN-SocketDisconnected connection: 0
timestamp: 2018-06-23T11:25:13+00:00 type: HTTP-PostStart
timestamp: 2018-06-23T11:25:13+00:00 type: BLE-Disconnected nukiId: 12088ED1
timestamp: 2018-06-23T11:25:13+00:00 type: BLE-Disconnect nukiId: 12088ED1
timestamp: 2018-06-23T11:25:13+00:00 type: SSE-KeyturnerEventReq nukiId: 12088ED1
timestamp: 2018-06-23T11:25:13+00:00 type: BLE-ReceivingMsg nukiId: 12088ED1 cmdId: 000C
timestamp: 2018-06-23T11:25:12+00:00 type: BLE-SendingMsg nukiId: 12088ED1 cmdId: 0001
timestamp: 2018-06-23T11:25:12+00:00 type: BLE-Connect handles: ARRAY(0x6ebdf68)
timestamp: 2018-06-23T11:25:12+00:00 type: BLE-Connected nukiId: 12088ED1
timestamp: 2018-06-23T11:25:12+00:00 type: BLE-Connect macAddr: 54D272088ED1
timestamp: 2018-06-23T11:25:12+00:00 type: BLE-Connect nukiId: 12088ED1
timestamp: 2018-06-23T11:25:12+00:00 type: BLE-StatusUpdate nukiId: 12088ED1
timestamp: 2018-06-23T11:25:12+00:00 type: BLE-Disconnected nukiId: 12088ED1
timestamp: 2018-06-23T11:25:06+00:00 type: BLE-Disconnect nukiId: 12088ED1
timestamp: 2018-06-23T11:25:05+00:00 type: BLE-ReceivingMsg nukiId: 12088ED1 cmdId: 000E
timestamp: 2018-06-23T11:25:04+00:00 type: BLE-ReceivingMsg nukiId: 12088ED1 cmdId: 000C
timestamp: 2018-06-23T11:25:01+00:00 type: BLE-ReceivingMsg nukiId: 12088ED1 cmdId: 000C
timestamp: 2018-06-23T11:24:57+00:00 type: BLE-ReceivingMsg nukiId: 12088ED1 cmdId: 000C
timestamp: 2018-06-23T11:24:56+00:00 type: BLE-ReceivingMsg nukiId: 12088ED1 cmdId: 000E
timestamp: 2018-06-23T11:24:56+00:00 type: BLE-SendingMsg nukiId: 12088ED1 cmdId: 000D
timestamp: 2018-06-23T11:24:56+00:00 type: BLE-ReceivingMsg nukiId: 12088ED1 cmdId: 0004
timestamp: 2018-06-23T11:24:55+00:00 type: BLE-SendingMsg nukiId: 12088ED1 cmdId: 0001
timestamp: 2018-06-23T11:24:55+00:00 type: BLE-Connect handles: ARRAY(0x706cde8)
timestamp: 2018-06-23T11:24:55+00:00 type: BLE-Connected nukiId: 12088ED1
timestamp: 2018-06-23T11:24:55+00:00 type: BLE-Connect macAddr: 54D272088ED1
timestamp: 2018-06-23T11:24:55+00:00 type: BLE-Connect nukiId: 12088ED1
timestamp: 2018-06-23T11:24:55+00:00 type: HTTP-LockAction nukiId: 12088ED1
timestamp: 2018-06-23T11:24:55+00:00 type: WLAN-SocketConnected connection: 0
timestamp: 2018-06-23T11:24:44+00:00 type: WLAN-SocketDisconnected connection: 0
timestamp: 2018-06-23T11:24:44+00:00 type: HTTP-Info
timestamp: 2018-06-23T11:24:44+00:00 type: WLAN-SocketConnected connection: 0
timestamp: 2018-06-23T11:24:37+00:00 type: HTTP-PostFailed urlId: 0
timestamp: 2018-06-23T11:24:36+00:00 type: BLE-Disconnected nukiId: 12088ED1
timestamp: 2018-06-23T11:24:36+00:00 type: BLE-Disconnect nukiId: 12088ED1
timestamp: 2018-06-23T11:24:36+00:00 type: BLE-ReceivingMsg nukiId: 12088ED1 cmdId: 000E
timestamp: 2018-06-23T11:24:36+00:00 type: SSE-KeyturnerResponse nukiId: 12088ED1 bytes: 188
timestamp: 2018-06-23T11:24:36+00:00 type: BLE-ReceivingSSE bytes: 55 auth: 00000103
timestamp: 2018-06-23T11:24:36+00:00 type: SSE-KeyturnerResponse nukiId: 12088ED1 bytes: 256
timestamp: 2018-06-23T11:24:36+00:00 type: BLE-ReceivingSSE bytes: 106 auth: 00000103
timestamp: 2018-06-23T11:24:36+00:00 type: BLE-SendingSSE bytes: 96 auth: 00000103
timestamp: 2018-06-23T11:24:36+00:00 type: BLE-Connect handles: ARRAY(0x7076fb8)
timestamp: 2018-06-23T11:24:36+00:00 type: BLE-Connected nukiId: 12088ED1
timestamp: 2018-06-23T11:24:36+00:00 type: BLE-Connect macAddr: 54D272088ED1
timestamp: 2018-06-23T11:24:36+00:00 type: BLE-Connect nukiId: 12088ED1
timestamp: 2018-06-23T11:24:36+00:00 type: SSE-KeyturnerRequest nukiId: 12088ED1 bytes: 96
timestamp: 2018-06-23T11:24:35+00:00 type: BLE-Disconnected nukiId: 12088ED1
timestamp: 2018-06-23T11:24:35+00:00 type: BLE-Disconnect nukiId: 12088ED1
timestamp: 2018-06-23T11:24:35+00:00 type: BLE-ReceivingMsg nukiId: 12088ED1 cmdId: 000E
timestamp: 2018-06-23T11:24:35+00:00 type: WLAN-SocketDisconnected connection: 3
timestamp: 2018-06-23T11:24:32+00:00 type: SSE-KeyturnerResponse nukiId: 12088ED1 bytes: 228
timestamp: 2018-06-23T11:24:32+00:00 type: BLE-ReceivingSSE bytes: 86 auth: 00000103
timestamp: 2018-06-23T11:24:32+00:00 type: BLE-SendingSSE bytes: 56 auth: 00000103
timestamp: 2018-06-23T11:24:32+00:00 type: BLE-Connect handles: ARRAY(0x7077438)
timestamp: 2018-06-23T11:24:32+00:00 type: BLE-Connected nukiId: 12088ED1
timestamp: 2018-06-23T11:24:32+00:00 type: BLE-Connect macAddr: 54D272088ED1
timestamp: 2018-06-23T11:24:32+00:00 type: BLE-Connect nukiId: 12088ED1
timestamp: 2018-06-23T11:24:32+00:00 type: SSE-KeyturnerRequest nukiId: 12088ED1 bytes: 56
timestamp: 2018-06-23T11:24:31+00:00 type: BLE-Disconnected nukiId: 12088ED1


EDIT: Wobei ich grade auch nur sporadisch die Rückmeldung zu FHEM bekomme wenn ich mit FHEM schalte.
und das taucht im FHEM Log auf:
2018.06.23 13:27:35 3: NUKIBridge (NUKI_Bridge) - invalid json detected: HTTP 503 Unavailable
2018.06.23 13:28:45 3: NUKIBridge (NUKI_Bridge) - invalid json detected: HTTP 503 Unavailable



Marvin

CoolTux

HTTP-PostFailed       urlId:    0

Scheint wohl Probleme zu geben. Kannst du bei deiner allowed Instanz bitte das allowed from Attribut löschen. Zum testen.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Marvin

Habe ich gemacht, aber leider das gleiche Verhalten.
Die RSSI die angegeben werden, ist das die Verbindung zwischen Schloss und Bridge oder das WLAN von Bridge zum Router?
Nicht das auf Grund einer schlechten WLAN Verbindung das bei mir nicht richtig ankommt. Oder kann man das ausschließen?

Marvin

CoolTux

Das ist zwischen Bridge und Schloß. Das passt schon. Was sagt das Bridge Log?
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Marvin

Morgen,

Ich bekomme auch weiterhin im Bridge Log den HTTP Fehler

HTTP-PostFailed       urlId:    0

Wenn ich das also richtig verstehe versucht die Bridge den Status zu Pushen, bekommt aber eine Fehlermeldung das FHEM das nicht quittiert bzw. nichts empfängt.
Somit bekomme ich natürlich auch keinen richtigen Status in FHEM angezeigt.

Komischerweise ist der Fehler auch im Log zu sehen wenn ich über FHEM den Zustand ändere und trotzdem bekomme ich den richtigen Zustand angezeigt.

Gruß Marvin

CoolTux

Das muss ich versuchen bei mir nach zu stellen. Also mit deinen Einstellungen. Dauert bisschen.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Marvin

#1017
Hallo CoolTux,

du kannst es glaube ich sein lassen, mit dem Testaufbau, habe das Problem gefunden.

Mein Server hat sowohl eine Ethernet als auch eine WLAN Verbindung, anscheinend stört das irgendwie. Wenn ich nur die WLAN Verbindung aktiv habe funktioniert es.
Sobald ich das Netzwerkkabel wieder einstecke klappt es nicht mehr. Hast du vielleicht eine Ahnung wie ich das beheben kann?
Die Ethernet Verbindung nutze ich für meine Plex Server, beide Verbindungen haben unterschiedliche IP Adressen.

EDIT:Wenn ich FQDN eintrage Funktioniert es auch nicht. FHEM ist auf beiden IP´s erreichbar, periodisiert da etwas die Ethernet Verbindung?
Habe jetzt die CallBack URL mal auf die Ethernet IP gestellt und dort klappt es.

Marvin

CoolTux

Auf welcher der beiden Verbindungen liegt der Default Gateway?
Eigentlich sollte das zwar egal sein, hatte aber schon Vorkommnisse wo das ein Grund war
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Marvin

Bei beiden Verbindungen ist mein Router als Gateway eingetragen, da kommt es dann bestimmt auf die Metrik an.
Ich habe jetzt einfach die WLAN Verbindung abgestellt und lasse alles über eine IP über Ethernet laufen, ist eh stabiler und schneller.

Ich danke dir vielmals für deine Bemühungen und für das tolle Modul.

Gruß Marvin