Closed carsso closed 6 months ago
Add exceptions handling, to put back old data when request to nuki web fails.
Looks good! Anything else would you like to add or should I merge the PR?
Maybe that's worth testing a few days how it reacts with the exception handling as I added it just minutes ago. But up to you, I am running that version on my HA and watching behaviour carefully.
ok, please let me know when you think it's ready to be merged
Seems to be working fine since two days. Feel ready to merge when you want to :) I'll continue watching carefully how it behaves and I'll suggest a patch if anything goes wrong.
@kvj Hello, it's been a week, everything still working as expected without any issue. You can merge when you want.
@carsso could you please check the latest main branch? if it works as expected I'll bump new release
@kvj Sure, will deploy main on my HA right away.
@kvj Seems to be working fine with main branch as of now.
Because nuki is dropping IFTTT support, it is now impossible to trigger actions based on open/unlock/lock events. This PR adds a new last_log field with the name of the thing or person that triggered the last action (with some extra attributes to get the action type and timestamp). Last unlock user field is kept unchanged to ensure retro-compatibility with old automations relying on that field.