uriyacovy / ESPHome_nuki_lock

ESPHome lock platform for Nuki Smartlock
MIT License
72 stars 21 forks source link

Error after last Esphome version 2024.5.0 #44

Closed ploto22 closed 6 months ago

ploto22 commented 6 months ago

After last esphome version 2024.5.0, there are the follow compile error about library register:

` Compiling .pioenvs/air-door/src/esphome/components/nuki_lock/nuki_lock.cpp.o In file included from .piolibdeps/air-door/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/air-door/NukiBleEsp/src/NukiBle.h:14:10: fatal error: NimBLEDevice.h: No such file or directory


How can resolve the error ? Thanks

marioedani commented 6 months ago

I have the same problem. Already here #43

marioedani commented 6 months ago

I confirm that reverting ESPHome back to previous version (2024.4.2) the problem is gone

uriyacovy commented 6 months ago

I suspect that this is because ESPHome changed platformio version. Please check if adding h2zero/NimBLE-Arduino to libraries section solves the problem:

  libraries:
  - Preferences
  - https://github.com/h2zero/NimBLE-Arduino
  - https://github.com/vinmenn/Crc16.git
  - https://github.com/uriyacovy/NukiBleEsp32
marioedani commented 6 months ago

I suspect that this is because ESPHome changed platformio version. Please check if adding h2zero/NimBLE-Arduino to libraries section solves the problem:

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

Tested now. Adding "NimBLE-Arduino" repository to libraries list solves the issue! 👍 Thank you very much for your support

ploto22 commented 6 months ago

Great issue resolved ! - CLOSED - Be attention: use the same sequence of the libraries, if reversed again the issue Thank you very much for your support

the-mentor commented 6 months ago

This issue can be closed since it was fixed in PR https://github.com/uriyacovy/ESPHome_nuki_lock/pull/48

uriyacovy commented 6 months ago

Solved in rel v0.0.3