jordenc / io.nuki.smartlock

Nuki Smartlock control for Homey
5 stars 0 forks source link

State lock/unlock isn't updatet #11

Closed philsniff closed 6 years ago

philsniff commented 6 years ago

when i lock/unlock my doorlock with its own app or manual then the states in homey aren't updatet. i would push a message to my phone when my daughter is coming home from school, but now i have to use ifttt for this. would be great if this can work without this workaround.

chrisboer commented 6 years ago

Strange I don’t have this issue I will send you an picture of my flow

philsniff commented 6 years ago

homey and nuki have static ips. and i restartet the nuki app, but nothing changed

chrisboer commented 6 years ago

afbeelding

chrisboer commented 6 years ago

Maybe it has something to do with the session, I had also an issue with this I will try to find the solution again on the forum

philsniff commented 6 years ago

Would be Great @chris

philsniff commented 6 years ago

i made all things that were reported in the forum. i now have only one entry when i call ...list?token=...

before there was not such en entry but after adding to the api from nuki it shows successfully only one line with id: 0 etc.

{"callbacks": [{"id": 0, "url": "192.168.xxx.xxx/api/app/io.nuki.smartlock/webhook"}]}

but still no update of the lock...

jordenc commented 6 years ago

It works for me every time. You need, however, to use the cards of the app, not the status card of the lock. The last one doesn't work. Same thing happens with the Danalock and it could be that the problem is with Homey, not the apps.

philsniff commented 6 years ago

Ah ok, jorden. I will Test.

gruß

Am 19. März 2018, 13:50 +0100 schrieb Jorden notifications@github.com:

It works for me every time. You need, however, to use the cards of the app, not the status card of the lock. The last one doesn't work. Same thing happens with the Danalock and it could be that the problem is with Homey, not the apps. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

philsniff commented 6 years ago

I can’t find the app in the flows section, only the device.

Or do i misunderstand something. Sorry then for that!

would you post me a screenshot of the working flow?

thats my card that i use: "laockstate changed" unbenannt

jordenc commented 6 years ago

That's indeed the one that works:

schermafbeelding 2018-03-19 om 15 20 20 It has never failed on me yet

philsniff commented 6 years ago

Ok, thank you very much. But it works not for me. there is ifttt so it is not sooo dramatically 😉

Gruß Philipp Schnittger

Von: Jorden Gesendet: Montag, 19. März 2018 15:25 An: jordenc/io.nuki.smartlock Cc: philsniff; Author Betreff: Re: [jordenc/io.nuki.smartlock] State lock/unlock isn't updatet (#11)

That's indeed the one that works:

It has never failed on me yet — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

jordenc commented 6 years ago

Did you check if the Nuki has your Homey URL in the callback list?

http://:8084/callback/list?token=

It should have something along the lines of:

http://192.168.2.20:80/api/app/io.nuki.smartlock/webhook

philsniff commented 6 years ago

i added it as it was written somewhere in the forum thread.

therefor it was {"callbacks": []}

now it is {"callbacks": [{"id": 0, "url": "192.168.xxx.xxx/api/app/io.nuki.smartlock/webhook"}]}

so i think i did all right. and it is only one line, so no other id which i have to remove...

should i reboot homey perhaps?

philsniff commented 6 years ago

there is no :80 behind my ulr... is this right?

jordenc commented 6 years ago

OK then it didn't set the callback URL correctly, which means there indeed were no callbacks.

The URL should be correct even without :80 but I think it requires http:// in front. And did you make sure that 192.168.xxx.xxx is the correct, local IP of your Homey?

philsniff commented 6 years ago

Hmm, i will try with http://...

Yes the static ip of my homey is correct for shure. I give all my devices in my wlan a static ip. And i looked up for homey.

No there must be another reason Then the ips.

I use chrome Webbrowser. There i only have to use the url without http, so i will try with.

But i don‘t think that this is the reason. ;-)

Greedings philipp

Am 20. März 2018, 09:44 +0100 schrieb Jorden notifications@github.com:

OK then it didn't set the callback URL correctly, which means there indeed were no callbacks. The URL should be correct even without :80 but I think it requires http:// in front. And did you make sure that 192.168.xxx.xxx is the correct, local IP of your Homey? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

jordenc commented 6 years ago

Fixed in 0.2.2! Submitted to the appstore for approval.