ESPHome Nuki Bridge

does it have an esp inside, then it shoud be possible

Hi, is it possible to use the esp32_ble_beacon: and this integration simultaneously ?

Hi, I have a button connected to my ESP32

lock:
  # Required:
  - platform: nuki_lock
    name: Nuki Lock
    is_connected: 
      name: "Nuki Connected"
    is_paired: 
      name: "Nuki Paired"      
  # Optional:
    battery_critical:
      name: "Nuki Battery Critical"
    battery_level:
      name: "Nuki Battery Level"

binary_sensor:
  
  - platform: gpio
    pin: 
      number: GPIO32
    name: "Button Lock Door"

How can I lock the door within the ESP32 without going out and back through HA, not sure how to code it?

Regards, Dave

I’ve been using this with great success for the last year ago. Not sure if there is actually a need to upgrade, however ESPHome has been bugging me to upgrade but the installation now fails. I see there were some recent changes to the required yaml however doesn’t appear to work for me.

error message:

 In file included from .piolibdeps/esphome-web-98a14c/NukiBleEsp/src/NukiLock.h:3,
                  from src/esphome/components/nuki_lock/nuki_lock.h:10,
                  from src/esphome/components/nuki_lock/nuki_lock.cpp:2:
 .piolibdeps/esphome-web-98a14c/NukiBleEsp/src/NukiBle.h:316:10: error: 'void Nuki::NukiBle::onDisconnect(NimBLEClient*)' marked 'override', but does not override
      void onDisconnect(BLEClient*) override;
           ^~~~~~~~~~~~
 Compiling .pioenvs/esphome-web-98a14c/src/esphome/components/sensor/filter.cpp.o
 *** [.pioenvs/esphome-web-98a14c/src/esphome/components/nuki_lock/nuki_lock.cpp.o] Error 1

yaml has been updated to the the current version

esphome:
  name: esphome-web-98a14c
  friendly_name: ESPHome Nuki 

  libraries:
  - Preferences
  - https://github.com/h2zero/NimBLE-Arduino
  - Crc16
  - https://github.com/uriyacovy/NukiBleEsp32

external_components:
  - source: github://uriyacovy/ESPHome_nuki_lock

esp32:
  board: "esp32dev"  # Or whatever other board you're using
  framework:
    type: arduino
    version: 2.0.16
    platform_version: 6.7.0

# Enable logging
logger:
  

# Enable Home Assistant API
api:
  encryption:
    key: "yjtpZ7MyLVjl4rhJckdeUYYAtuBdKVu4nWblvuavpZ4="

ota:
- platform: esphome



wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esphome-Web-98A14C"
    password: "u1PMuPCjx1JW"

captive_portal:
    


> lock:
>   # Required:
>   - platform: nuki_lock
>     name: Nuki Lock
>     is_connected: 
>       name: "Nuki Connected"
>     is_paired: 
>       name: "Nuki Paired"      
>   # Optional:
>     battery_critical:
>       name: "Nuki Battery Critical"
>     battery_level:
>       name: "Nuki Battery Level"
>     door_sensor:
>       name: "Nuki Door Sensor"
>     door_sensor_state:
>       name: "Nuki Door Sensor State"

Should be solved now, see here:

1 Like

Anyone here with the new Ultra lock and is willing to help us test the component?

Also, this might be a good opportunity to add that quite a lot of features and improvements were added recently (thanks a lot AzonInc (Flo) · GitHub !).

Hi,

thanks for this integration.
I try to install it but i got the following error.

Compiling .pioenvs/esphome-web-ca58b0/src/esphome/components/nuki_lock/nuki_lock.cpp.o
In file included from src/esphome/components/nuki_lock/nuki_lock.cpp:11:
src/esphome/components/nuki_lock/nuki_lock.h:33:10: fatal error: NukiLock.h: No such file or directory

******************************************************************
* Looking for NukiLock.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:NukiLock.h"
* Web  > https://registry.platformio.org/search?q=header:NukiLock.h
*
******************************************************************

   33 | #include "NukiLock.h"
      |          ^~~~~~~~~~~~
compilation terminated.
*** [.pioenvs/esphome-web-ca58b0/src/esphome/components/nuki_lock/nuki_lock.cpp.o] Error 1
========================= [FAILED] Took 84.40 seconds =========================

Anyone an idea?

Thanks Basti

Sorry for the late reply. Can you repost in GitHub with the exact configuration (yaml) you are trying to build?

Im getting a error when flashing compiling the firmware

i’m using a Esp32 C3

See here an update if this helps: