-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: additional triggercards and adding tags #3
Comments
Sadly, the way the current app works (by polling the bridge), there is no information available about who opened the lock, or what way it was opened. I can only see the current status (locked, unlocked, locking, unlocking). However, it seems there has been an update to the API where I can improve this app in 2 ways:
I will have a look soon, bit busy but it should be do'able in january :) |
Just read the documentation and tried the new functions; there is no way to retrieve a username from the logs. However, I can create the callback that posts every lockstate update to Homey. That is going to work, as long as you have a "hardware bridge". It does not yet work on the software bridge (the app that you can install on an old phone). |
Thanx for investigating. I have a hardware bridge, so #2 would work for me (and I guess most nuki users). Concerning the username: could this be something you can take up with Nuki? It seems to be a very valid request to get the user information via the api. It is also available in their own app. I will back you up on this! |
Instead of polling directly the smartlock you should use /list und "the last known state" you get back from it. This does only poll the bridge and not the smartlock itself, therefore does not block the smartlock nor drain its battery. Obviously webhooks would be even better, quicker and more efficient. Meanwhile they are also supported by the software bridge (like all other v1.5 API commands). If you want to access log informations you need to go through the Nuki Web API (https://api.nuki.io/). |
I just noticed the update on the Nuki API (1.5) with the callbacks (webhooks) which makes it way more awesome, speedy and battery-efficient. A new version of the Homey app is coming up real soon! |
great news! Any estimated time of arrival for the new version? |
I have started progress on this, I think it will be available for testing in a few days. |
Anything I can test for you already? |
Hi Jorden please let me know I can assist you also in testing. |
I just need to find some time to finish the "API" side of the Nuki app. I already made some progress, meaning it is already working to check if the "Homey" IP URL is already set in Nuki as a webhook and if not, it will be added. I am also able to "receive" the webhook call and now I just need to "get" the right device to be able to trigger on the unlock. I think I already have the right code for that lying around somewhere but will have to implement it. So it really is a matter of finding the code (I think I have it in my Synology app), adding it, and then I only have to test it. By the way, I had to "directly" call Homey from Nuki, because Nuki does not allow https calls. I talked to Athom about a possibility to use a non https webhook but they said it's best to just use the "direct" call to Homey instead of the Athom webhook. So this means you should make sure that Homey has a fixed IP. At least until Nuki enables https webhook calls :) I will double check if it really doesn't work, but the manual says it doesn't :) |
Ok, keep up the good work. I have Homey on a fixed ip by the way, so for me this would work fine :) |
Just uploaded a new version that uses the new webhook function to directly call Homey after a lockstate changes. However, with that function I can only retrieve the Nuki ID / state / batterycritical / IP address of the bridge. Still have to investigate if it is a lot of work to look up the user that did this with the new webApi of Nuki. |
Ive been using v0.1.5 for more than a week now and it seems to work just fine. At least it does the same thing the polling version did, but hopefully with a lot less battery usage. Are you going to publish in the appstore soon? Any news on the user lookup? |
Bas has sent me some improvement guidance for the app, which I need to add before he will approve it. Just need to find some time for that, perhaps this weekend. About the user lookup; I have to ask Nuki for a developer key on their Slack channel. So first have to find out how to join that ;) Will do that soon |
happy easter ^o^ any news on the user lookup? |
No news yet, been too busy with other stuff. I have, however, asked Nuki to get an invite. No reaction yet. |
Invites for the slack channel are sent out automatically as soon as you sign up. If you haven't received it, it might have ended up in a spam folder. Please retry. If it fails again, we can add you manually if you mail us at [email protected] However you can manage API keys&tokens inside https://web.nuki.io at any time. |
Great app, thx!
I have a request for additional functionality that would greatly improve usability for me:
add tags to the action cards showing who/what is performing the action (username, or bridge, or manual button)
Trigger: Auto unlock & opened (with the user name as tag)
Trigger: opened door (with the user name as tag)
The text was updated successfully, but these errors were encountered: