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

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

Vorheriges Thema - Nächstes Thema

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

markukug

73_NUKIBridge.pm
my $version = "0.2.1";
my $bridgeAPI = "1.0.2";

74_NUKIDevice.pm
my $version = "0.2.1";

CoolTux

Bitte mal die Develversion vom ersten Post unten installieren.
Das wäre supi.
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

markukug

Meinst Du diese Version?
my $version = "0.3.4p1";
my $bridgeAPI = "1.0.2";

Übrigens, danke für Deinen Einsatz.

lg
Markus

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

markukug

Super, danke!

Habs getestet. Das Problem scheint das Gleiche zu sein.

lastError
read from http://192.168.178.xxx:8080 timed out 2016-11-04 16:28:15
state Initialized 2016-11-04 16:27:52


Internals:
   CFGFN
   DEF        192.168.178.xxx 123456
   HOST       192.168.178.xxx
   INTERVAL   60
   NAME       nuki01
   NR         501
   PORT       8080
   STATE      Initialized
   TOKEN      123456
   TYPE       NUKIBridge
   VERSION    0.3.7
   Readings:
     2016-11-04 16:29:12   bridgeType      Hardware
     2016-11-04 16:29:12   currentTime     2016-11-04T15:29:12+00:00
     2016-11-04 16:29:12   hardwareId      98598929
     2016-11-04 16:28:15   lastError       read from http://192.168.178.xxx:8080 timed out
     2016-11-04 16:29:12   serverConnected true
     2016-11-04 16:29:12   serverId        132456789
     2016-11-04 16:27:52   state           Initialized
     2016-11-04 16:29:12   uptime          4466
Attributes:
   room       NUKI


lasterror:
empty answer oder
timed out

CoolTux

Interessant. Denn Du hast ja Readings aus dem Info Bereich.
Es scheint nur ein list nicht zu gehen. Muss mir das noch mal anschauen.
Mach mal bitte ein get logFile. Ausserdem mal bitte die Setter testen. Reboot Firmwareupdate und so. Nur ob das klappt.
Und dann berichten. Danke Dir.
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

Kannst du bitte dann noch mal ein autocreate anstoßen mit verbose 5. Und hier das Log wiedergeben. Danke für Dein Einsatz.
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

markukug

#263
get logfile:
2016.11.04 16:49:32 3: NUKIDevice (nuki01) - empty answer received for http://192.168.178.xxx:8080/log?token=123456
2016.11.04 16:49:32 3: NUKIBridge (nuki01) - Kurz vor der Bedingung nach decode_json ARRAY


set autocreate
2016.11.04 16:44:37 4: NUKIBridge (nuki01) - Send HTTP POST with URL http://192.168.178.xxx:8080/list?token=123456
2016.11.04 16:44:37 4: NUKIBridge (nuki01) - Call NUKIBridge_Get
2016.11.04 16:44:40 4: NUKIBridge (nuki01) - Send HTTP POST with URL http://192.168.178.xxx:8080/info?token=123456
2016.11.04 16:44:40 3: NUKIBridge (nuki01) - Param Alive:
2016.11.04 16:44:40 3: NUKIBridge (nuki01) - Param Code:
2016.11.04 16:44:40 3: NUKIBridge (nuki01) - Error: http://192.168.178.xxx:8080/info?token=123456: empty answer received
2016.11.04 16:44:40 3: NUKIBridge (nuki01) - JSON:
2016.11.04 16:44:40 4: NUKIBridge (nuki01) - error while requesting: http://192.168.178.xxx:8080/info?token=123456: empty answer received
2016.11.04 16:44:47 3: NUKIBridge (nuki01) - Param Alive:
2016.11.04 16:44:47 3: NUKIBridge (nuki01) - Param Code:
2016.11.04 16:44:47 3: NUKIBridge (nuki01) - Error: read from http://192.168.178.xxx:8080 timed out
2016.11.04 16:44:47 3: NUKIBridge (nuki01) - JSON:
2016.11.04 16:44:47 4: NUKIBridge (nuki01) - error while requesting: read from http://192.168.178.xxx:8080 timed out


set clearlog
2016.11.04 16:46:20 3: NUKIDevice (nuki01) - empty answer received for http://192.168.178.xxx:8080/clearlog?token=123456

set fwupdate
2016.11.04 16:46:58 3: NUKIDevice (nuki01) - empty answer received for http://192.168.178.xxx:8080/fwupdate?token=123456

set reboot
2016.11.04 16:48:05 3: NUKIDevice (nuki01) - empty answer received for http://192.168.178.xxx:8080/reboot?token=123456

set statusrequest
2016.11.04 16:48:43 4: NUKIBridge (nuki01) - Send HTTP POST with URL http://192.168.178.xxx:8080/info?token=123456
2016.11.04 16:48:43 3: NUKIBridge (nuki01) - Param Alive:
2016.11.04 16:48:43 3: NUKIBridge (nuki01) - Param Code: 200
2016.11.04 16:48:43 3: NUKIBridge (nuki01) - Error:
2016.11.04 16:48:43 3: NUKIBridge (nuki01) - JSON: {"bridgeType": 1, "ids": {"hardwareId": 123456789, "serverId": 123456789}, "versions": {"firmwareVersion": "1.3.6", "wifiFirmwareVersion": "1.0.1"}, "uptime": 33, "currentTime": "2016-11-04T15:48:43+00:00", "serverConnected": true, "scanResults": [{"nukiId": 102765321, "name": "Nuki_06201309", "rssi": -79, "paired": true}]}


und noch dieser Fehler im Log
2016.11.04 16:38:33 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/73_NUKIBridge.pm line 397.
2016.11.04 16:38:33 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/73_NUKIBridge.pm line 398.

CoolTux

Und hast du mal geschaut ob die Bridge ein Reboot gemacht hat und ob das Log gelöscht wurde?
Scheint alles zu klappen bis auf das list.
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

markukug


  • log wird nicht gelöscht
  • reboot funktioniert
  • fwupdate scheint zu funktionieren
{"timestamp": "2016-11-04T17:45:14+00:00", "type": "FirmUpdateCheck", "fwType": "wlan"},
{"timestamp": "2016-11-04T17:45:14+00:00", "type": "BLE-Connected", "nukiId": "06201309"},
{"timestamp": "2016-11-04T17:45:14+00:00", "type": "BLE-Connect", "macAddr": "54D272201309"},
{"timestamp": "2016-11-04T17:45:14+00:00", "type": "BLE-Connect", "nukiId": "06201309"},
{"timestamp": "2016-11-04T17:45:15+00:00", "type": "FirmUpdateCheck", "fwType": "main"},
{"timestamp": "2016-11-04T17:45:15+00:00", "type": "WLAN-SocketDisconnected", "connection": 0},
{"timestamp": "2016-11-04T17:45:15+00:00", "type": "SSE-PushNukisResponse", "error": 0},
{"timestamp": "2016-11-04T17:45:15+00:00", "type": "SSE-PushNukisRequest"},
{"timestamp": "2016-11-04T17:45:15+00:00", "type": "HTTP-FwUpdate"},

CoolTux

Danke Dir erstmal. Setze mich später noch mal ran.
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

Ich habe soeben eine neue Develversion hochgeladen. Kann mal bitte jemand mit einer Hardwarebridge diese testen. Danke! Verbose 5 bitte einschalten.
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

markukug


CoolTux

Immer im GitHub Develzweig. Der selbe Link wie letztens oder auf der ersten Seite im ersten Post von mir recht weit unten beim Thema Develinfo
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