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

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

Vorheriges Thema - Nächstes Thema

Bjoern2480

http://ip-bridge:8080/log?token=abc123


Antwort:

[
{"timestamp": "2016-10-23T08:21:56+00:00", "type": "WLAN-SocketConnected", "connection": 0},
{"timestamp": "2016-10-23T08:21:53+00:00", "type": "WLAN-SocketDisconnected", "connection": 0},
{"timestamp": "2016-10-23T08:21:53+00:00", "type": "BLE-Disconnected", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:21:52+00:00", "type": "BLE-ReceivingMsg", "nukiId": "ABCDEF", "cmdId": "000C"},
{"timestamp": "2016-10-23T08:21:51+00:00", "type": "BLE-SendingMsg", "nukiId": "ABCDEF", "cmdId": "0001"},
{"timestamp": "2016-10-23T08:21:51+00:00", "type": "BLE-Connect", "handles": [24, 28]},
{"timestamp": "2016-10-23T08:21:51+00:00", "type": "BLE-Connected", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:21:49+00:00", "type": "BLE-Connect", "macAddr": "123456"},
{"timestamp": "2016-10-23T08:21:49+00:00", "type": "BLE-Connect", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:21:49+00:00", "type": "HTTP-LockState", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:21:49+00:00", "type": "WLAN-SocketConnected", "connection": 0},
{"timestamp": "2016-10-23T08:21:38+00:00", "type": "WLAN-SocketDisconnected", "connection": 0},
{"timestamp": "2016-10-23T08:21:16+00:00", "type": "HTTP-List"},
{"timestamp": "2016-10-23T08:21:16+00:00", "type": "WLAN-SocketConnected", "connection": 0},
{"timestamp": "2016-10-23T08:20:59+00:00", "type": "WLAN-SocketDisconnected", "connection": 0},
{"timestamp": "2016-10-23T08:20:59+00:00", "type": "BLE-Disconnected", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:20:58+00:00", "type": "BLE-ReceivingMsg", "nukiId": "ABCDEF", "cmdId": "000C"},
{"timestamp": "2016-10-23T08:20:57+00:00", "type": "BLE-SendingMsg", "nukiId": "ABCDEF", "cmdId": "0001"},
{"timestamp": "2016-10-23T08:20:57+00:00", "type": "BLE-Connect", "handles": [24, 28]},
{"timestamp": "2016-10-23T08:20:57+00:00", "type": "BLE-Connected", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:20:56+00:00", "type": "BLE-Connect", "macAddr": "123456"},
{"timestamp": "2016-10-23T08:20:56+00:00", "type": "BLE-Connect", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:20:56+00:00", "type": "HTTP-LockState", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:20:56+00:00", "type": "WLAN-SocketConnected", "connection": 0},
{"timestamp": "2016-10-23T08:20:37+00:00", "type": "WLAN-SocketDisconnected", "connection": 0},
{"timestamp": "2016-10-23T08:20:16+00:00", "type": "HTTP-List"},
{"timestamp": "2016-10-23T08:20:16+00:00", "type": "WLAN-SocketConnected", "connection": 0},
{"timestamp": "2016-10-23T08:19:58+00:00", "type": "WLAN-SocketDisconnected", "connection": 0},
{"timestamp": "2016-10-23T08:19:58+00:00", "type": "BLE-Disconnected", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:19:57+00:00", "type": "BLE-ReceivingMsg", "nukiId": "ABCDEF", "cmdId": "000C"},
{"timestamp": "2016-10-23T08:19:56+00:00", "type": "BLE-SendingMsg", "nukiId": "ABCDEF", "cmdId": "0001"},
{"timestamp": "2016-10-23T08:19:56+00:00", "type": "BLE-Connect", "handles": [24, 28]},
{"timestamp": "2016-10-23T08:19:56+00:00", "type": "BLE-Connected", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:19:56+00:00", "type": "BLE-Connect", "macAddr": "123456"},
{"timestamp": "2016-10-23T08:19:56+00:00", "type": "BLE-Connect", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:19:56+00:00", "type": "HTTP-LockState", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:19:56+00:00", "type": "WLAN-SocketConnected", "connection": 0},
{"timestamp": "2016-10-23T08:19:39+00:00", "type": "WLAN-SocketDisconnected", "connection": 0},
{"timestamp": "2016-10-23T08:19:39+00:00", "type": "BLE-Disconnected", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:19:38+00:00", "type": "BLE-ReceivingMsg", "nukiId": "ABCDEF", "cmdId": "000C"},
{"timestamp": "2016-10-23T08:19:36+00:00", "type": "BLE-SendingMsg", "nukiId": "ABCDEF", "cmdId": "0001"},
{"timestamp": "2016-10-23T08:19:36+00:00", "type": "BLE-Connect", "handles": [24, 28]},
{"timestamp": "2016-10-23T08:19:36+00:00", "type": "BLE-Connected", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:19:36+00:00", "type": "BLE-Connect", "macAddr": "123456"},
{"timestamp": "2016-10-23T08:19:36+00:00", "type": "BLE-Connect", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:19:36+00:00", "type": "HTTP-LockState", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:19:36+00:00", "type": "WLAN-SocketConnected", "connection": 0},
{"timestamp": "2016-10-23T08:19:26+00:00", "type": "WLAN-SocketDisconnected", "connection": 0},
{"timestamp": "2016-10-23T08:19:16+00:00", "type": "HTTP-List"},
{"timestamp": "2016-10-23T08:19:16+00:00", "type": "WLAN-SocketConnected", "connection": 0},
{"timestamp": "2016-10-23T08:18:58+00:00", "type": "WLAN-SocketDisconnected", "connection": 0},
{"timestamp": "2016-10-23T08:18:58+00:00", "type": "BLE-Disconnected", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:18:57+00:00", "type": "BLE-ReceivingMsg", "nukiId": "ABCDEF", "cmdId": "000C"},
{"timestamp": "2016-10-23T08:18:56+00:00", "type": "BLE-SendingMsg", "nukiId": "ABCDEF", "cmdId": "0001"},
{"timestamp": "2016-10-23T08:18:56+00:00", "type": "BLE-Connect", "handles": [24, 28]},
{"timestamp": "2016-10-23T08:18:56+00:00", "type": "BLE-Connected", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:18:56+00:00", "type": "BLE-Connect", "macAddr": "123456"},
{"timestamp": "2016-10-23T08:18:56+00:00", "type": "BLE-Connect", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:18:56+00:00", "type": "HTTP-LockState", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:18:56+00:00", "type": "WLAN-SocketConnected", "connection": 0},
{"timestamp": "2016-10-23T08:18:49+00:00", "type": "WLAN-SocketDisconnected", "connection": 0},
{"timestamp": "2016-10-23T08:18:39+00:00", "type": "BLE-Disconnected", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:18:08+00:00", "type": "BLE-Connect", "handles": [24, 28]},
{"timestamp": "2016-10-23T08:18:08+00:00", "type": "BLE-Connected", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:18:08+00:00", "type": "BLE-Connect", "macAddr": "123456"},
{"timestamp": "2016-10-23T08:18:08+00:00", "type": "BLE-Connect", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:18:08+00:00", "type": "BLE-Disconnected", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:17:57+00:00", "type": "SSE-KeyturnerResponse", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:17:57+00:00", "type": "BLE-ReceivingSSE", "nukiId": "ABCDEF", "auth": "00000201"},
{"timestamp": "2016-10-23T08:17:56+00:00", "type": "BLE-SendingSSE", "nukiId": "ABCDEF", "auth": "00000201"},
{"timestamp": "2016-10-23T08:17:56+00:00", "type": "BLE-Connect", "handles": [24, 28]},
{"timestamp": "2016-10-23T08:17:56+00:00", "type": "BLE-Connected", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:17:56+00:00", "type": "HTTP-LockState", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:17:56+00:00", "type": "WLAN-SocketConnected", "connection": 0},
{"timestamp": "2016-10-23T08:17:56+00:00", "type": "BLE-Connect", "macAddr": "123456"},
{"timestamp": "2016-10-23T08:17:56+00:00", "type": "BLE-Connect", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:17:56+00:00", "type": "SSE-KeyturnerRequest", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:17:41+00:00", "type": "BLE-Disconnected", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:17:36+00:00", "type": "WLAN-SocketDisconnected", "connection": 0},
{"timestamp": "2016-10-23T08:17:31+00:00", "type": "SSE-KeyturnerResponse", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:17:31+00:00", "type": "BLE-ReceivingSSE", "nukiId": "ABCDEF", "auth": "00000201"},
{"timestamp": "2016-10-23T08:17:29+00:00", "type": "BLE-SendingSSE", "nukiId": "ABCDEF", "auth": "00000201"},
{"timestamp": "2016-10-23T08:17:29+00:00", "type": "BLE-Connect", "handles": [24, 28]},
{"timestamp": "2016-10-23T08:17:29+00:00", "type": "BLE-Connected", "nukiId": "ABCDEF"},
{"timestamp": "2016-10-23T08:17:29+00:00", "type": "BLE-Connect", "macAddr": "123456"}
]

CoolTux

Supi. Vielen Dank. Das reicht mir erstmal schon um einen get log zu bauen.

Grüße
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

Bjoern2480

Ich habe bei mir auch das Problem, dass ich mein Nuki einwandfrei über FHEM steuern kann (schließen/öffnen), allerdings die Bridge fast ausschließlich als "not connected" erkannt wird.

lastError     http://ip:8080/list?token=12345: empty answer received
state     not connected

CoolTux

Führe diesen Befehl mal bitte im Browser aus und poste hier das Ergebnis.

Danke
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

Bjoern2480

request:
http://ip:8080/list?token=12345

response:
[{"nukiId": 55555555, "name": "myHome", "lastKnownState": {"state": 1, "stateName": "locked", "batteryCritical": false, "timestamp": "2016-10-24T12:51:14+00:00"}}]


Allerdings hängt es auch ab und zu beim Browser. Beim 2. Aufruf/erneuten Laden geht es dann und es erscheint die antwort.

Bjoern2480

Zitat von: Bjoern2480 am 24 Oktober 2016, 14:54:35
request:
http://ip:8080/list?token=12345

response:
[{"nukiId": 55555555, "name": "myHome", "lastKnownState": {"state": 1, "stateName": "locked", "batteryCritical": false, "timestamp": "2016-10-24T12:51:14+00:00"}}]


Allerdings hängt es auch ab und zu beim Browser. Beim 2. Aufruf/erneuten Laden geht es dann und es erscheint die antwort.


Kann es sein dass das Timeout etwas zu kurz ist?
beim "set myNUKI statusrequest" kommt relativ schnell die Antwort "...: empty answer received" und ab und zu wenige Sekunden danach "Timed out". Alle beide Antworten zusammen ca 10 Sek gesamt.

CoolTux

Es sind immer 10s bis zum Timeout. Nach 10s sollte es doch die Bridge geschafft haben zu antworten. Ansonsten blockiert da wohl eher irgendwas.
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

Steeeve

Zitat von: CoolTux am 24 Oktober 2016, 15:06:51
Es sind immer 10s bis zum Timeout. Nach 10s sollte es doch die Bridge geschafft haben zu antworten. Ansonsten blockiert da wohl eher irgendwas.

Ob es eventuell damit zusammen hängt:
New beta firmware *v1.4.2* available. Further improves the handling of several Smart Locks on the same bridge and fixes a bug in v1.4.1 which could lead to lost commands when a command arrived before the bridge properly disconnected from the Smart Lock.

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

_Marco_

Hi, ich habe die Module auch im Einsatz und funktionieren sowei ganz gut  :)
Ich habe im Log hier das entdeckt
PERL WARNING: Use of uninitialized value in string eq at ./FHEM/74_NUKIDevice.pm line 338.
2016.10.28 10:28:13 3: stacktrace:
2016.10.28 10:28:13 3:     main::__ANON__                      called by ./FHEM/74_NUKIDevice.pm (338)
2016.10.28 10:28:13 3:     main::NUKIDevice_Parse              called by ./FHEM/73_NUKIBridge.pm (386)
2016.10.28 10:28:13 3:     main::NUKIBridge_Dispatch           called by FHEM/HttpUtils.pm (421)
2016.10.28 10:28:13 3:     main::__ANON__                      called by fhem.pl (669)

kann da jemand was mit anfangen?
Das Einzige was mir aufgefallen ist das nach einem Schliessvorgang das Device keinen Status mehr bekommt, aber nach ca. einer Minute gehts wieder.

Gruß Marco

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

CoolTux

Zitat von: _Marco_ am 29 Oktober 2016, 17:01:32
Hi, ich habe die Module auch im Einsatz und funktionieren sowei ganz gut  :)
Ich habe im Log hier das entdeckt
PERL WARNING: Use of uninitialized value in string eq at ./FHEM/74_NUKIDevice.pm line 338.
2016.10.28 10:28:13 3: stacktrace:
2016.10.28 10:28:13 3:     main::__ANON__                      called by ./FHEM/74_NUKIDevice.pm (338)
2016.10.28 10:28:13 3:     main::NUKIDevice_Parse              called by ./FHEM/73_NUKIBridge.pm (386)
2016.10.28 10:28:13 3:     main::NUKIBridge_Dispatch           called by FHEM/HttpUtils.pm (421)
2016.10.28 10:28:13 3:     main::__ANON__                      called by fhem.pl (669)

kann da jemand was mit anfangen?
Das Einzige was mir aufgefallen ist das nach einem Schliessvorgang das Device keinen Status mehr bekommt, aber nach ca. einer Minute gehts wieder.

Gruß Marco

Kann ich mir beim besten Willen nicht erklären. Da dürfte sowas gar nicht kommen. Da wurden voher schon 3 Tests durchlaufen ob die Daten valide sind. Kopfkratz
Hast Du die Version aus dem FHEM Update? Hast Du Soft oder Hardware Bridge? Welche Bridgefirmwareversion hast Du wenn Hardwarebridge?
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

_Marco_

Ich habe die Version aus dem Fhem Update ja, ich habe im moment Soft- und Hardwarebridge mit jeweils einem Nuki im betrieb da es mit zwei Nukis an einer Bride Probleme gibt.
Ich bin mir jetzt nicht 100% sicher ob der Fehler bei beiden Bridges kam  ::)
Die Hardwarebridge habe ich erst seit Freitag, wie kann die Bridge-Firmeware überhaupt geupdatet werden, ich sehe nirgends ein Menu dafür??

_Marco_

Ich habe auch immer Timeouts bei der Hardwarebridge

NUKIBridge NUKI_Bridge lastError: read from http://192.168.11.119:8080 timed out

fred_feuerstein

Hab ich mit der aktuellen 0.2.1 vom Modul auch, allerdings ist mein nuki noch nicht vom Service zurück.
Hab auch keine Ahnung wie die Bridge zu aktualisieren ist.
Über den Browser kommt schnell eine response, nur das Modul zeigt time out.

>> gesendet mit LG G4 via Tapatalk <<

Gruß, Fred

FHEM auf Raspberry PI 3B+ im 7Zoll TouchDisplay Gehäuse, OS: Bullseye, mit Z-Wave RaZberry-Modul, 868CUL (WMBUS), LaCrosseCUL (Temp) und knapp 300 Devices aller Art