Closed axute closed 1 year ago
Hi @axute. I see that core version of ESPHome were updated with the v2022.12.0. Until I upgrade and go through the changes, can you check if the dev branch works for you? There are a few changes required in the yaml, so please through the readme.
It works with the dev branch, great. And the door opens too ;-) Thanks so much! Do you need the new logfile?
Not yet, but thanks.
@uriyacovy do you think with the release of 2022.12.0 the Nuki Lock could be supported directly via Active Bluetooth Proxies? Exchanged a message with @bdraco and he mentioned:
it looks like HA already has all the frameworks needed to talk to these locks so anyone should be able to make an integration for them without any additional changes to HA core
As far as I understand, Active Bluetooth Proxies are managed by SW running on HA. This is different then what is implemented here (the edge SW on the esp running the logic and bluetooth communication). You might want to check with the following projects if they would implement your idea: RaspiNukiBridge, NukiBridgeAddon
Not sure how the bridge implementations would implement a HA integration that interacts with the lock via its BT API? (I understand you see this as out of scope for this project, but for the bridge projects it will be even more so.)
The bridge SW implements the interaction with the NUKI lock over standard BT libraries. It only needs to add support for esphome BT proxy.
Yeah but I think its unlikely that they want to add a dependency on HA/ESPhome when their interface is the "home automation-neutral" Nuki Bridge API.
(I mean the add-on might in principle be willing, but I doubt there is a way for an add-on running as a separate docker container to easily access the proxied BT API.)
As far as I understand the Home Assistant BT integration can now manage active BT connections as well, all via bluetooth proxies using ESPHome. My idea is that I can use any ESP32 I have available, flash with a generic ESPHome build with active connection proxying to Home Assistant, and add Nuki on Home Assistant directly.
Very similar to what is being done with SwitchBot devices -- https://github.com/home-assistant/core/blob/dev/homeassistant/components/switchbot/__init__.py.
The advantage is that there would be no specific ESPHome build to replace the Nuki Bridge, only code to support it directly in Home Assistant. The logic for the SwitchBot Lock is handled on the library https://github.com/Danielhiversen/pySwitchbot/blob/master/switchbot/devices/lock.py.
@ruimarinho, as I wrote before, I agree that this a valid approach, but this module does not implement the bride SW, only the ESPHome wrapper.
Should be fixed at the main branch now.
any ideas?