Hi, i am try to use this esphome project:
But i gave an error about library import, i have already opened a ticket to developer but meanwile there is a way to solve this library import issue?
The error is:
Compiling /data/nuki-bridge/.pioenvs/nuki-bridge/lib32e/NukiBleEsp/NukiBle.cpp.o
Archiving /data/nuki-bridge/.pioenvs/nuki-bridge/lib49e/libBleScanner.a
Compiling /data/nuki-bridge/.pioenvs/nuki-bridge/lib32e/NukiBleEsp/NukiLock.cpp.o
/data/nuki-bridge/.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.cpp: In member function ‘Nuki::PairingState Nuki::NukiBle::pairStateMachine(Nuki::PairingState)’:
/data/nuki-bridge/.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.cpp:677:35: warning: ignoring return value of ‘int crypto_scalarmult_curve25519(unsigned char*, const unsigned char*, const unsigned char*)’, declared with attribute warn_unused_result [-Wunused-result]
crypto_scalarmult_curve25519(sharedKeyS, myPrivateKey, remotePublicKey);
~~~~~~~~~~~~~~^
Compiling /data/nuki-bridge/.pioenvs/nuki-bridge/lib32e/NukiBleEsp/NukiLockUtils.cpp.o
Compiling /data/nuki-bridge/.pioenvs/nuki-bridge/lib32e/NukiBleEsp/NukiOpener.cpp.o
Compiling /data/nuki-bridge/.pioenvs/nuki-bridge/lib32e/NukiBleEsp/NukiOpenerUtils.cpp.o
Compiling /data/nuki-bridge/.pioenvs/nuki-bridge/lib32e/NukiBleEsp/NukiUtils.cpp.o
Compiling /data/nuki-bridge/.pioenvs/nuki-bridge/lib32e/NukiBleEsp/main.cpp.o
/data/nuki-bridge/.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiUtils.cpp:4:10: fatal error: Crc16.h: No such file or directory
- Looking for Crc16.h dependency? Check our library registry!
- CLI > platformio lib search “header:Crc16.h”
- Web > PlatformIO Registry
#include “Crc16.h”
^~~~~~~~~
compilation terminated.
*** [/data/nuki-bridge/.pioenvs/nuki-bridge/lib32e/NukiBleEsp/NukiUtils.cpp.o] Error 1
The code i am tryng to compile is:
# Main declarations
esphome:
name: nuki-bridge
friendly_name: nuki-bridge
# External libraries import
libraries:
- Preferences
- https://github.com/uriyacovy/NukiBleEsp32#dev
# Board setup
esp32:
board: esp32-poe
framework:
type: arduino
version: 2.0.3
platform_version: 4.4.0
# Ethernet setup
ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO17_OUT
phy_addr: 0
power_pin: GPIO12
# Enable logging
logger:
# Enable Home Assistant API
api:
# Enable OTA
ota:
#Import external components
external_components:
- source: github://uriyacovy/ESPHome_nuki_lock
#Lock setup
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"