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

error in compiling with Esphome 2024.6.1 #51

Open
marcor78 opened this issue Jun 24, 2024 · 3 comments
Open

error in compiling with Esphome 2024.6.1 #51

marcor78 opened this issue Jun 24, 2024 · 3 comments

Comments

@marcor78
Copy link

After updating Esphome to 2024.6.1, I can't update my Nuki Lock device and get errors during compiling.
Here the logs:

INFO ESPHome 2024.6.1
INFO Reading configuration /config/nuki-lock.yaml...
WARNING The selected Arduino framework version is not the recommended one. If there are connectivity or build issues please remove the manual version.
WARNING The selected Arduino framework version is not the recommended one. If there are connectivity or build issues please remove the manual version.
INFO Generating C++ source...
INFO Compiling app...
Processing nuki-lock (board: esp32dev; framework: arduino; platform: platformio/[email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Dependency Graph
|-- AsyncTCP-esphome @ 2.1.3
|-- Preferences @ 2.0.0
|-- NimBLE-Arduino @ 2.0.0+sha.76ef4b7
|-- Crc16 @ 0.1.2+sha.719a7a1
|-- NukiBleEsp @ 2.0.0+sha.1de6290
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.2.2
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- noise-c @ 0.1.4
|-- ArduinoJson @ 6.18.5
Compiling .pioenvs/nuki-lock/src/esphome/components/nuki_lock/nuki_lock.cpp.o
Compiling .pioenvs/nuki-lock/src/esphome/components/sensor/automation.cpp.o
Compiling .pioenvs/nuki-lock/src/esphome/components/sensor/filter.cpp.o
In file included from .piolibdeps/nuki-lock/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/nuki-lock/NukiBleEsp/src/NukiBle.h:316:10: error: 'void Nuki::NukiBle::onDisconnect(NimBLEClient*)' marked 'override', but does not override
     void onDisconnect(BLEClient*) override;
          ^~~~~~~~~~~~
*** [.pioenvs/nuki-lock/src/esphome/components/nuki_lock/nuki_lock.cpp.o] Error 1
========================= [FAILED] Took 24.02 seconds =========================

I already updated libraries as suggested for example here , cleaned build files and re-install, but no joy so far.

This is my config:

esphome:
  name: nuki-lock
  libraries:
  - Preferences
  - https://github.com/h2zero/NimBLE-Arduino
  - https://github.com/vinmenn/Crc16.git
  - https://github.com/uriyacovy/NukiBleEsp32

external_components:
  - source: github://uriyacovy/ESPHome_nuki_lock
  
substitutions:
  hostname: 'Nuki Lock:'
  id: 'nuki-lock'
  
esp32:
  board: esp32dev  
  framework:
    type: arduino
    version: 2.0.16
    platform_version: 6.7.0
  
# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: !secret encryption
  reboot_timeout: 0s

ota:
  - platform: esphome
  
# WebServer and Authentication
web_server:
  port: 80
  auth:
    username: !secret web_server_username
    password: !secret web_server_password
  
# Setting time platform
time:
  - platform: sntp
    id: sntp_time
    timezone: Europe/Rome
    
# Wifi, AP and Static IP
wifi:
  networks:
  - ssid: !secret wifi_ssid
    password: !secret wifi_pwd
  - ssid: !secret 2nd_wifi_ssid
    password: !secret 2nd_wifi_pwd
  manual_ip:
    static_ip: 192.168.1.200
    gateway: 192.168.1.1
    subnet: 255.255.255.0

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Nuki-Lock Fallback Hotspot"
    password: !secret hotspot_pwd

captive_portal:

lock:
  - platform: nuki_lock
    name: Nuki Lock
    is_connected: 
      name: "Nuki Connected"
    is_paired: 
      name: "Nuki Paired"
    battery_critical:
      name: "Nuki Battery Critical"
    battery_level:
      name: "Nuki Battery Level"
      
switch:
  - platform: restart
    name: $hostname Restart
    
@ssorgatem
Copy link

Same issue here

@Triskae
Copy link

Triskae commented Jul 5, 2024

Hello, same error here !

In file included from .piolibdeps/sensor-all-in-one-linvingroom/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/sensor-all-in-one-linvingroom/NukiBleEsp/src/NukiBle.h:316:10: error: 'void Nuki::NukiBle::onDisconnect(NimBLEClient*)' marked 'override', but does not override
     void onDisconnect(BLEClient*) override;
          ^~~~~~~~~~~~
*** [.pioenvs/sensor-all-in-one-linvingroom/src/esphome/components/nuki_lock/nuki_lock.cpp.o] Error 1

@J8PMN
Copy link

J8PMN commented Jul 5, 2024

same issue here

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

4 participants