Skip to content
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

Is it possible to switch a PIN of ESP32 low/high for showing Lock status? #148

Closed
BennoB666 opened this issue Mar 18, 2023 · 9 comments
Closed

Comments

@BennoB666
Copy link

Is it possible in future release to have a PIN which state the status of the NUKI Lock?

@technyon
Copy link
Owner

Well, there are more than two states, but it could be mapped like the binaryState for HA. What's your use case?

@BennoB666
Copy link
Author

Thx for fast answer. I have a second Door for my garage where is installed an electric door opener. I look for a solution to lock the garage door when i lock the nuki. I asked by nuki if it possible to lock two doors with one Keypad/app/... but that is not possible. So when it ist possible to trigger a pin of ESP i can break the wire to the electric door opener and nobody can access. In best case i can input a delay to trigger the pin or can change the pin via MQTT so node red can trigger the pin to the nuki state.
Also with this pin you can show the status of the door with a LED or simular.

@technyon
Copy link
Owner

You use a NUKI lock for your door and a NUKI Opener for the garage?

@BennoB666
Copy link
Author

No, i use a NUKI Lock for my door und for the garage a brand free electric door opener switched by a contact simular to a NUKI Opener. When i leave my house i close the door and lock the NUKI Lock by a keypad. My wish is that after I have left the property with the car the door to the garage is automatically locked. So the ESP can easy do that by one of the PINs i think. Thx for your time.

@technyon
Copy link
Owner

I'm not against this idea, actually I've though about this so you could drive some LEDs with it. However, it has to be configurable and I'm not exactly sure how to do this ... it has to be tailored to the opener you are using (is it just a single contact with on/off, or several contacts one of opening, one for closing, ...).

Which home automation system are you using? I'm thinking if it maybe is easier to just install some other device to control the garage opener. I guess you'd have to drive the garage opener using a relay anyway, since directly connecting the ESP doesn't sound like a good idea. Some kind of Wifi relay should do it, you could triggered via some kind of automation when the lock state changes.

@BennoB666
Copy link
Author

For me its enough to have such LED PIN. I can do this also with a second esp witch toggle the relay (i have to supply 12V to the opener for opening means 12V -> Open, 0V -> close) but the NUKI-HUB is 50 cm away from the Opener and for me it is easy to grab the PIN and toggle a transistor/relay. Maybe it is also good for opening/closing yard gate or Garage door. I can do this with Homeassistent when it possible to change PIN state via MQTT. I prefer NodeRed. Maybe you can implement to passthrough unused PINs of ESP to MQTT.
Thx a lot.

@technyon
Copy link
Owner

technyon commented Apr 8, 2023

@BennoB666 Check release 8.22

@victorigualada
Copy link

Hi,

First of all thanks for this amazing work. Was using HA addons to act as bridge but this solution is great.

I'm trying something similar. Currently I have an eWelink relay to open my building's entrance (something similar to the Nuki Opener) behind the intercom. I can then from HomeAssistant trigger the relay and open the main entrance.

Would this be possible to accomplish with the current nuki_hub functionality? I'd love to remove that relay and use only the nuki_hub in the ESP32 for both things (Nuki Lock and intercom) for sake of space and energy costs.

If it's not supported, is there a way it could be extended to enable one GPIO to be configurable in MQTT to trigger a high state with a particular topic? Maybe also with some kind of inching to hold the intercom opened for x seconds.

Thank you!

@BennoB666
Copy link
Author

Thx a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants