Open Savjee opened 1 year ago
Hi Savjee, Thank you for the feedback.
Regarding your request, I was already considering this but I think it is a bit problematic due to several reasons:
Overall, considering that an ESP32 module costs ~$5, I think it does not worth the effort. Nevertheless, I'll keep the issue open (as a feature request), and wait for additional comments.
Uri
Thanks for your reply!
I don't have a lot of experience with developing for ESPHome, and zero knowledge of BLE, but I do want to give this a go. Here are my initial thoughts, and I'd love your feedback/guidance.
We could create multiple instances of your Nuki implementation and set their deviceId
in the YAML. I believe this is supported by the NukiBLE library you're using (not sure though how you set the deviceId in your code. Seems like it's fixed to 2020002
?)
Example:
lock:
- platform: nuki_lock
name: Front door
device_id: 1234567 # Available in Nuki app
- platform: nuki_lock
name: Back door
device_id: 987654 # Available in Nuki app
As for your other remarks:
I know that ESP32's are cheap, and I have several of them around the house. But it seems wasteful to have 1 for each lock. I like to consolidate as much as possible.
I suggest that once you get the 2nd nuki, test the changes and I'll pull the PR if everything goes right.
+1 on 2 locks spport
I appreciate the feedback and the request, but currently, due to scheduling, IO and other complexities when working with BT and ESPHome, I do not plan support for two locks. I'd leave the issue open to get further feedback.
Hi,
First up: awesome work! Works flawlessly!
Would it be possible to pair multiple Nuki locks to the same ESP? I'm planning on adding a second lock (frontdoor + backdoor) and place my ESP32 in the middle.