benzman81 / homebridge-nukiio

Nuki.io support for Homebridge: https://github.com/nfarina/homebridge
GNU General Public License v3.0
42 stars 6 forks source link

Enabled Homekit Notifications get fired for all doors when homebridge restarts. #39

Closed produdegr closed 5 years ago

produdegr commented 5 years ago

Hi, I got 2 Nukis' and a bridge. At the beginning with Nuki system I had a huge disappointment to find out that original nuki bridge is not forwarding homekit messages. Thankfully, your homebridge plugin solved this and it works perfectly for my setup. Both doors lock and unlock. THANK YOU. I have only one small issue: when enabling notifications on the homebridge doors, they get triggered whenever I restart the homebridge server or whenever i go to the "Accessories" section of homebridge-config-ui-x - web manager UI for homebridge. I'm not using webhooks in my setup, doing so would it solve this?

Thanks for your time.

benzman81 commented 5 years ago

Actually I have the same issue and have not yet had the time to look into it. Feel free to contribute.

nicoh88 commented 5 years ago

@benzman81: Schaust du hier

Beim getServices muss der letzte Status, am besten aus dem Cache, gesetzt werden - nicht erst beim getState oder ähnliches - dann weiß HomeKit dass sich der Status nicht geändert hat. Wenn der Status erst beim ersten getState gesetzt wird, ist es für HomeKit eine Statusänderung -> Notification!

Gruß Nico

benzman81 commented 5 years ago

Fixed with 0.7.9