ebaauw / homebridge-nb

Homebridge plugin for Nuki Bridge
Apache License 2.0
51 stars 3 forks source link

Never unlatch using Nuki, use opener or other device instead #131

Closed nixmeer closed 6 months ago

nixmeer commented 6 months ago

Hi :) As with almost all detached homes in Germany, we have a front door and an intercom that can operate a door buzzer. If I use the Smart Lock to unlock and unlatch the door, it opens a little and stays in this position after the latch is released. If I open but no one goes through the door and closes it afterwards, the door stays open. However, this doesn't happen if the door buzzer is being used instead of the latch. Nevertheless, using the door buzzer immediately doesn't make sense; I'd rather have it "wait" for the Smart Lockto unlock the door.

So here's what I'd like:

And here's the premium: It would be cool, if I didn't need to buy a bridge and an opener for that but could use any switch/button in my home as the opener (maybe though some kind of automation).

It might be that there already is a way to implement what I want though automations. Please share your ideas!

ebaauw commented 6 months ago

I'm afraid, don't have much experience with buzzers. The doorbell/intercom/buzzer installation in my apartment works fine with the Nuki Opener, and I've been using that.

if locked, instructs the Smart Lockto unlock the door and waits for the Smart Lockto complete, then triggers the Opener if unlocked, instantly trigger the Opener It might be that there already is a way to implement what I want though automations.

I suppose this could be automated, but might be a bit tricky. I think it requires three automations and a flag (or dummy switch). On "open the door", when the door is locked, you'd set the flag and unlock the door. On the door reporting it's opened, when the flag is set, you'd activate the buzzer and clear the flag. On "open the door", when the door is unlocked, simply activate the buzzer.

It would be cool, if I didn't need to buy a bridge and an opener for that but could use any switch/button in my home as the opener

I suppose, if you can figure out which wires activate the buzzer, you could short them using a relay. This could be a Zigbee smart relay, with Homebridge deCONZ, or a relay controlled through a Raspberry Pi GPIO pin, with Homebridge RPi. I suppose there's many other types of relays, integrated in HomeKit, but I have no experience with these either.

You might also consider a low-tech solution: install a mechanical door closer to keep the door closed, even when unlatched. It seems a bit superfluous to use both a lock and a buzzer, although, I suppose, you would this for what we would call a "night lock".

nixmeer commented 6 months ago

Hi Erik,

I build my entire smart home using hb, esp8266s and mqtt. I am able to install something else than the opener. And I am able to install a mechanical door closer, but that is not the point I am trying to make. The point is: this setup is the absolut standard in detached homes in the DACH area.

The question is: is there anyone willing to implement something like a "detached home front door" (dhfd) mode that has a "use opener" bool parameter? a) with "use opener" set to true, the dhfd mode creates three buttons (see post above) or a lock and a button (lock for locked and unlocked, button for buzzer). The lock (or two of the buttons) lock and unlock the smart lock. The additional button checks if the smart lock is unlocks, and if so tells the opener to open or tells the smart lock to unlock, waits for the smart lock to be done and afterwards tells the opener to open. b) with "use opener" set to false, the dhfd mode creates the same three buttons (or lock and one button) as in a) and an additional sensor (door contact?). Everything stays the same except for the opener. Instead of triggering the opener, the sensor state is changed. One can then attach any HomeKit/Homebridge device to this sensor using an automation; no need to buy bridge and opener then.

ebaauw commented 6 months ago

I think Homebridge is about exposing devices that don’t (fully) support HomeKit as HomeKit accessories. At least, that’s what my plugins do. Creating new accessories by combining multiple devices is beyond that.

I suppose, technically, you could create a dedicated dhfd plugin for your own use. Note that Homebridge plugins don’t have access to other HomeKit accessories. The dhfd plugin would need to use one of the Nuki APIs to check and control the lock state. And it would need to interact with the relay on the esp8266 (over mttq) to activate the buzzer.