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

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

Vorheriges Thema - Nächstes Thema

Morpheus_1977

#720
OK, danke schonmal für deine Hilfe!

Warum auch immer ist Nuki nun doch verfügbar. Nur hab ich folgendes Problem:

Siri Name: Haustür

Sag ich Siri nun: Haustür abschließen, sagt Siri mir->Haustür ist abgeschlossen, aber es erfolt keine Aktion bei Nuki obwohl sie unlocked ist.
Das gleiche passiert auch anders herum, Siri bzw Fhem scheinen keine Aktion an Nuki zu senden!?!?

CoolTux

Wie gesagt, ich habe weder Nuki noch Siri. Müssen wir warten. Hast du vielleicht Einträge im 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

Weisswurstverkäufer

Hallo,

habe das Modul mal eingerichtet - funktioniert sehr gut  :)

Leider habe ich nirgendwo einen Hinweis gefunden was zu tun ist damit die Callbacks funktionieren, wenn man nur eine WEB-Instanz mit Passwort hat. Kann mir da jemand helfen?

Gruß

CoolTux

Du könntest Dich freiwillig als Testkandidat melden und als webhookHttpHostname folgendes machen

login:pass@ip-addresse

Wenn du das gemacht hast. Schaust du bei der Bridge nach ob der Callback eingerichtet wurde.
Ansonsten bleibt nur einne weitere Webinstanz ein zu richten.
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

Weisswurstverkäufer

Das scheint nicht zu funktionieren - Status bleibt immer 'unlocked'.

Müsste ich jetzt eine 2. WEB-Instanz anlegen und der nur Zugriff auf den Callback geben? Gibt es für sowas irgendeine Doku?

CoolTux

Was sagt denn ein get callbackList beim Bridgedevice?

Ja Du müsstest dann eine weitere Webinstanz mache.

define WEBhook FHEMWEB 8088 global
attr WEBhook hiddenroom input,detail,save,Unsorted,Everything,CUL_HM,FS20,Commandref,style,Edit files,Select style,Logfile,Floorplans,Remotedoc,FileLogs,Apartment,Bathroom,Bedroom,Kitchen,Living,Residents,System,Weather,Event monitor,NEW
attr WEBhook room hidden
attr WEBhook webname webhook


Wichtig ist alle Räume zu verstecken.
Dann

define allowedWEBhook allowed
attr allowedWEBhook allowedCommands ,
attr allowedWEBhook allowedDevices ,
attr allowedWEBhook validFor WEBhook


Und nun Mal schauen ob es geht.
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

Weisswurstverkäufer

Die Callbacklist sah eigentlich gut und richtig aus. http://user:pass@...

Mit der 2. Instanz funktioniert es perfekt - besten Dank

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

Morpheus_1977

Zitat von: Morpheus_1977 am 02 Februar 2017, 20:26:43
OK, danke schonmal für deine Hilfe!

Warum auch immer ist Nuki nun doch verfügbar. Nur hab ich folgendes Problem:

Siri Name: Haustür

Sag ich Siri nun: Haustür abschließen, sagt Siri mir->Haustür ist abgeschlossen, aber es erfolt keine Aktion bei Nuki obwohl sie unlocked ist.
Das gleiche passiert auch anders herum, Siri bzw Fhem scheinen keine Aktion an Nuki zu senden!?!?
Kann mir hier den noch jemand weiter helfen??? Wäre toll :)
Danke
Grüße

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

Morpheus_1977

#730
Zitat von: CoolTux am 08 Februar 2017, 16:03:18
Irgendwelche Logfiles?

Ich hoffe das kann uns helfen:
2017.02.08 16:05:33 4: NUKIDevice (NUKIDevice112944569) - Received scanResults for matching NukiID 112944569 at device NUKIDevice112944569
2017.02.08 16:05:33 5: NUKIDevice (NUKIDevice112944569) - Parse with result: {"paired":true,"name":"Nuki_06BB65B9","rssi":-77}
2017.02.08 16:05:33 5: NUKIDevice (NUKIDevice112944569) - parse status message for NUKIDevice112944569
2017.02.08 16:05:33 5: NUKIDevice (NUKIDevice112944569) - readings set for NUKIDevice112944569
2017.02.08 16:05:33 5: Starting notify loop for NUKIDevice112944569, 3 event(s), first is name: Nuki_06BB65B9
2017.02.08 16:05:33 5: End notify loop for NUKIDevice112944569


Hier noch aus dem Event Monitor
Zitat
2017.02.08 16:09:21 4 : NUKIBridge (NBridge1) - NUKIBridge_GetCheckBridgeAlive
2017.02.08 16:09:21 4 : HttpUtils url=http://192.168.2.42:8080/info?token=xxx
2017.02.08 16:09:21 4 : NUKIBridge (NBridge1) - Send HTTP POST with URL http://192.168.2.42:8080/info?token=xxxx
2017.02.08 16:09:21 4 : NUKIBridge (NBridge1) - run NUKIBridge_Call
2017.02.08 16:09:21 4 : NUKIBridge (NBridge1) - Call InternalTimer for NUKIBridge_GetCheckBridgeAlive
2017.02.08 16:09:21 4 : http://192.168.2.42:8080/info?token=xxxx: HTTP response code 200
2017.02.08 16:09:21 4 : HttpUtils http://192.168.2.42:8080/info?token=xxxx: Got data, length: 241
2017.02.08 16:09:21 5 : NUKIBridge (NBridge1) - Response JSON: {"bridgeType":2,"ids":{"serverId":915081946},"versions":{"appVersion":"0.2.14"},"uptime":805473,"currentTime":"2017-02-08T15:09:16Z","serverConnected":true,"scanResults":[{"nukiId":112944569,"name":"Nuki_06BB65B9","rssi":-77,"paired":true}]}
2017.02.08 16:09:21 5 : NUKIBridge (NBridge1) - Response ERROR:
2017.02.08 16:09:21 5 : NUKIBridge (NBridge1) - Response CODE: 200
2017.02.08 16:09:21 5 : NUKIBridge (NBridge1) - Bridge ist online
2017.02.08 16:09:21 5 : Starting notify loop for NBridge1, 1 event(s), first is connected
2017.02.08 16:09:21 5 : createNotifyHash
2017-02-08 16:09:21 NUKIBridge NBridge1 connected
2017.02.08 16:09:21 5 : End notify loop for NBridge1
2017.02.08 16:09:21 5 : Starting notify loop for NBridge1, 6 event(s), first is appVersion: 0.2.14
2017-02-08 16:09:21 NUKIBridge NBridge1 appVersion: 0.2.14
2017-02-08 16:09:21 NUKIBridge NBridge1 bridgeType: Software
2017-02-08 16:09:21 NUKIBridge NBridge1 serverId: 915081946
2017-02-08 16:09:21 NUKIBridge NBridge1 uptime: 805473
2017-02-08 16:09:21 NUKIBridge NBridge1 currentTime: 2017-02-08T15:09:16Z
2017-02-08 16:09:21 NUKIBridge NBridge1 serverConnected: true
2017.02.08 16:09:21 5 : End notify loop for NBridge1
2017.02.08 16:09:21 4 : NUKIDevice (NUKIDevice112944569) - Received scanResults for matching NukiID 112944569 at device NUKIDevice112944569
2017.02.08 16:09:21 5 : NUKIDevice (NUKIDevice112944569) - Parse with result: {"rssi":-77,"paired":true,"name":"Nuki_06BB65B9"}
2017.02.08 16:09:21 5 : NUKIDevice (NUKIDevice112944569) - parse status message for NUKIDevice112944569
2017.02.08 16:09:21 5 : NUKIDevice (NUKIDevice112944569) - readings set for NUKIDevice112944569
2017.02.08 16:09:21 5 : Starting notify loop for NUKIDevice112944569, 3 event(s), first is name: Nuki_06BB65B9
2017-02-08 16:09:21 NUKIDevice NUKIDevice112944569 name: Nuki_06BB65B9
2017-02-08 16:09:21 NUKIDevice NUKIDevice112944569 rssi: -77
2017-02-08 16:09:21 NUKIDevice NUKIDevice112944569 paired: true
2017.02.08 16:09:21 5 : End notify loop for NUKIDevice112944569

CoolTux

Das ist Standardkram. Dachte mehr an Log von Homebride/Siri
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

Morpheus_1977

Zitat von: CoolTux am 08 Februar 2017, 16:13:52
Das ist Standardkram. Dachte mehr an Log von Homebride/Siri
Also aus der Console?

Ich glaub das könnte interessant sein

Feb 08 15:54:01 raspberrypi homebridge[474]: 2017-02-08 15:54:01 caching: NUKIDevice112944569-lockState: unlocked
Feb 08 15:54:01 raspberrypi homebridge[474]: [2/8/2017, 3:54:01 PM] [FHEM] NUKIDevice112944569-lockState value unlocked not handled in values
Feb 08 15:54:01 raspberrypi homebridge[474]: 2017-02-08 15:54:01 caching: NUKIDevice112944569-state: unlocked

CoolTux

Das ist sogar sehr interessant. Das bitte mal bei den Homebride Leuten hinterfragen.
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

Morpheus_1977

Zitat von: Morpheus_1977 am 08 Februar 2017, 16:17:27
Also aus der Console?

Ich glaub das könnte interessant sein

Feb 08 15:54:01 raspberrypi homebridge[474]: 2017-02-08 15:54:01 caching: NUKIDevice112944569-lockState: unlocked
Feb 08 15:54:01 raspberrypi homebridge[474]: [2/8/2017, 3:54:01 PM] [FHEM] NUKIDevice112944569-lockState value unlocked not handled in values
Feb 08 15:54:01 raspberrypi homebridge[474]: 2017-02-08 15:54:01 caching: NUKIDevice112944569-state: unlocked


Da mir bei meinem Problem bisher noch nicht geholfen werden konnt habe ich das Nuki Device sowie die Bridge heute noch mal neu angelegt. Nach dem löschen der Device einen neustart! Das neu anlegen hat geklappt, nur schmeißt mir FHEM im log Fehler bzw Wanungen aus:

2017.02.10 09:51:06 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/74_NUKIDevice.pm line 215, <$fh> line 231
2017.02.10 09:56:53 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/74_NUKIDevice.pm line 215, <$fh> line 232
2017.02.10 10:08:33 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/74_NUKIDevice.pm line 459.
2017.02.10 10:08:33 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/74_NUKIDevice.pm line 465.
2017.02.10 12:44:27 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/37_plex.pm line 4075.
2017.02.10 12:44:27 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/37_plex.pm line 4145.

Hab ich was flasch gemacht?
Grüße