Tefi
October 5, 2023, 12:06pm
21
Ferdytao:
aqara door sensors
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 ?
DaveTiff
(Dave T)
April 7, 2024, 4:04pm
23
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
fitz247
(adam)
July 9, 2024, 2:34am
24
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"
uriyacovy
(Uri Yacovy)
July 26, 2024, 3:25pm
25
Should be solved now, see here:
opened 12:45PM - 25 Jul 24 UTC
I used the configuration on the github, and while compiling I had this log:
I… NFO ESPHome 2024.7.1
INFO Reading configuration /config/esphome/nuki-bridge.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-bridge (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.5567365
|-- 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
Compiling .pioenvs/nuki-bridge/src/esphome/components/nuki_lock/nuki_lock.cpp.o
Compiling .pioenvs/nuki-bridge/src/main.cpp.o
Archiving .pioenvs/nuki-bridge/libaa6/libAsyncTCP-esphome.a
Archiving .pioenvs/nuki-bridge/libf54/libPreferences.a
Compiling .pioenvs/nuki-bridge/lib118/NimBLE-Arduino@src-5c9866cf064444db58eab10c8b1ed41c/NimBLEClient.cpp.o
Compiling .pioenvs/nuki-bridge/lib118/NimBLE-Arduino@src-5c9866cf064444db58eab10c8b1ed41c/NimBLEDescriptor.cpp.o
Compiling .pioenvs/nuki-bridge/lib118/NimBLE-Arduino@src-5c9866cf064444db58eab10c8b1ed41c/NimBLEDevice.cpp.o
Compiling .pioenvs/nuki-bridge/lib118/NimBLE-Arduino@src-5c9866cf064444db58eab10c8b1ed41c/NimBLEEddystoneTLM.cpp.o
Compiling .pioenvs/nuki-bridge/lib118/NimBLE-Arduino@src-5c9866cf064444db58eab10c8b1ed41c/NimBLEEddystoneURL.cpp.o
Compiling .pioenvs/nuki-bridge/lib118/NimBLE-Arduino@src-5c9866cf064444db58eab10c8b1ed41c/NimBLEExtAdvertising.cpp.o
Compiling .pioenvs/nuki-bridge/lib118/NimBLE-Arduino@src-5c9866cf064444db58eab10c8b1ed41c/NimBLEHIDDevice.cpp.o
In file included from .piolibdeps/nuki-bridge/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-bridge/NukiBleEsp/src/NukiBle.h:140:32: error: 'std::list' has not been declared
void getKeypadEntries(std::list<KeypadEntry>* requestedKeyPadEntries);
^~~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.h:140:36: error: expected ',' or '...' before '<' token
void getKeypadEntries(std::list<KeypadEntry>* requestedKeyPadEntries);
^
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.h:162:39: error: 'std::list' has not been declared
void getAuthorizationEntries(std::list<AuthorizationEntry>* requestedAuthorizationEntries);
^~~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.h:162:43: error: expected ',' or '...' before '<' token
void getAuthorizationEntries(std::list<AuthorizationEntry>* requestedAuthorizationEntries);
^
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.h:386:10: error: 'list' in namespace 'std' does not name a template type
std::list<KeypadEntry> listOfKeyPadEntries;
^~~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.h:386:5: note: 'std::list' is defined in header '<list>'; did you forget to '#include <list>'?
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.h:22:1:
+#include <list>
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.h:386:5:
std::list<KeypadEntry> listOfKeyPadEntries;
^~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.h:387:10: error: 'list' in namespace 'std' does not name a template type
std::list<AuthorizationEntry> listOfAuthorizationEntries;
^~~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.h:387:5: note: 'std::list' is defined in header '<list>'; did you forget to '#include <list>'?
std::list<AuthorizationEntry> listOfAuthorizationEntries;
^~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.h:316:10: error: 'void Nuki::NukiBle::onDisconnect(NimBLEClient*)' marked 'override', but does not override
void onDisconnect(BLEClient*) override;
^~~~~~~~~~~~
Compiling .pioenvs/nuki-bridge/lib118/NimBLE-Arduino@src-5c9866cf064444db58eab10c8b1ed41c/NimBLERemoteCharacteristic.cpp.o
In file included from src/esphome/components/nuki_lock/nuki_lock.h:10,
from src/esphome/components/nuki_lock/nuki_lock.cpp:2:
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:257:37: error: 'std::list' has not been declared
void getTimeControlEntries(std::list<TimeControlEntry>* timeControlEntries);
^~~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:257:41: error: expected ',' or '...' before '<' token
void getTimeControlEntries(std::list<TimeControlEntry>* timeControlEntries);
^
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:264:29: error: 'std::list' has not been declared
void getLogEntries(std::list<LogEntry>* requestedLogEntries);
^~~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:264:33: error: expected ',' or '...' before '<' token
void getLogEntries(std::list<LogEntry>* requestedLogEntries);
^
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:349:10: error: 'list' in namespace 'std' does not name a template type
std::list<TimeControlEntry> listOfTimeControlEntries;
^~~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:349:5: note: 'std::list' is defined in header '<list>'; did you forget to '#include <list>'?
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:6:1:
+#include <list>
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:349:5:
std::list<TimeControlEntry> listOfTimeControlEntries;
^~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:350:10: error: 'list' in namespace 'std' does not name a template type
std::list<LogEntry> listOfLogEntries;
^~~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:350:5: note: 'std::list' is defined in header '<list>'; did you forget to '#include <list>'?
std::list<LogEntry> listOfLogEntries;
^~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:351:10: error: 'list' in namespace 'std' does not name a template type
std::list<AuthorizationEntry> listOfAuthorizationEntries;
^~~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:351:5: note: 'std::list' is defined in header '<list>'; did you forget to '#include <list>'?
std::list<AuthorizationEntry> listOfAuthorizationEntries;
^~~
Compiling .pioenvs/nuki-bridge/lib118/NimBLE-Arduino@src-5c9866cf064444db58eab10c8b1ed41c/NimBLERemoteDescriptor.cpp.o
src/esphome/components/nuki_lock/nuki_lock.cpp: In member function 'void esphome::nuki_lock::NukiLockComponent::print_keypad_entries()':
src/esphome/components/nuki_lock/nuki_lock.cpp:425:14: error: 'list' is not a member of 'std'
std::list<NukiLock::KeypadEntry> entries;
^~~~
src/esphome/components/nuki_lock/nuki_lock.cpp:425:14: note: 'std::list' is defined in header '<list>'; did you forget to '#include <list>'?
src/esphome/components/nuki_lock/nuki_lock.cpp:3:1:
+#include <list>
src/esphome/components/nuki_lock/nuki_lock.cpp:425:14:
std::list<NukiLock::KeypadEntry> entries;
^~~~
src/esphome/components/nuki_lock/nuki_lock.cpp:425:40: error: expected primary-expression before '>' token
std::list<NukiLock::KeypadEntry> entries;
^
src/esphome/components/nuki_lock/nuki_lock.cpp:425:42: error: 'entries' was not declared in this scope
std::list<NukiLock::KeypadEntry> entries;
^~~~~~~
src/esphome/components/nuki_lock/nuki_lock.cpp:432:34: error: unable to deduce 'auto&&' from 'entries'
for (const auto& entry : entries) {
^~~~~~~
Compiling .pioenvs/nuki-bridge/lib118/NimBLE-Arduino@src-5c9866cf064444db58eab10c8b1ed41c/NimBLERemoteService.cpp.o
Compiling .pioenvs/nuki-bridge/lib118/NimBLE-Arduino@src-5c9866cf064444db58eab10c8b1ed41c/NimBLEScan.cpp.o
Compiling .pioenvs/nuki-bridge/lib118/NimBLE-Arduino@src-5c9866cf064444db58eab10c8b1ed41c/NimBLEServer.cpp.o
Compiling .pioenvs/nuki-bridge/lib118/NimBLE-Arduino@src-5c9866cf064444db58eab10c8b1ed41c/NimBLEService.cpp.o
Compiling .pioenvs/nuki-bridge/lib118/NimBLE-Arduino@src-5c9866cf064444db58eab10c8b1ed41c/NimBLEUUID.cpp.o
Compiling .pioenvs/nuki-bridge/lib118/NimBLE-Arduino@src-5c9866cf064444db58eab10c8b1ed41c/NimBLEUtils.cpp.o
Compiling .pioenvs/nuki-bridge/lib118/NimBLE-Arduino@src-5c9866cf064444db58eab10c8b1ed41c/nimble/esp_port/esp-hci/src/esp_nimble_hci.c.o
*** [.pioenvs/nuki-bridge/src/esphome/components/nuki_lock/nuki_lock.cpp.o] Error 1
In file included from .piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:3,
from src/esphome/components/nuki_lock/nuki_lock.h:10,
from src/esphome.h:30,
from src/main.cpp:3:
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.h:140:32: error: 'std::list' has not been declared
void getKeypadEntries(std::list<KeypadEntry>* requestedKeyPadEntries);
^~~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.h:140:36: error: expected ',' or '...' before '<' token
void getKeypadEntries(std::list<KeypadEntry>* requestedKeyPadEntries);
^
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.h:162:39: error: 'std::list' has not been declared
void getAuthorizationEntries(std::list<AuthorizationEntry>* requestedAuthorizationEntries);
^~~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.h:162:43: error: expected ',' or '...' before '<' token
void getAuthorizationEntries(std::list<AuthorizationEntry>* requestedAuthorizationEntries);
^
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.h:386:10: error: 'list' in namespace 'std' does not name a template type
std::list<KeypadEntry> listOfKeyPadEntries;
^~~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.h:386:5: note: 'std::list' is defined in header '<list>'; did you forget to '#include <list>'?
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.h:22:1:
+#include <list>
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.h:386:5:
std::list<KeypadEntry> listOfKeyPadEntries;
^~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.h:387:10: error: 'list' in namespace 'std' does not name a template type
std::list<AuthorizationEntry> listOfAuthorizationEntries;
^~~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.h:387:5: note: 'std::list' is defined in header '<list>'; did you forget to '#include <list>'?
std::list<AuthorizationEntry> listOfAuthorizationEntries;
^~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiBle.h:316:10: error: 'void Nuki::NukiBle::onDisconnect(NimBLEClient*)' marked 'override', but does not override
void onDisconnect(BLEClient*) override;
^~~~~~~~~~~~
In file included from src/esphome/components/nuki_lock/nuki_lock.h:10,
from src/esphome.h:30,
from src/main.cpp:3:
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:257:37: error: 'std::list' has not been declared
void getTimeControlEntries(std::list<TimeControlEntry>* timeControlEntries);
^~~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:257:41: error: expected ',' or '...' before '<' token
void getTimeControlEntries(std::list<TimeControlEntry>* timeControlEntries);
^
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:264:29: error: 'std::list' has not been declared
void getLogEntries(std::list<LogEntry>* requestedLogEntries);
^~~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:264:33: error: expected ',' or '...' before '<' token
void getLogEntries(std::list<LogEntry>* requestedLogEntries);
^
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:349:10: error: 'list' in namespace 'std' does not name a template type
std::list<TimeControlEntry> listOfTimeControlEntries;
^~~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:349:5: note: 'std::list' is defined in header '<list>'; did you forget to '#include <list>'?
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:6:1:
+#include <list>
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:349:5:
std::list<TimeControlEntry> listOfTimeControlEntries;
^~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:350:10: error: 'list' in namespace 'std' does not name a template type
std::list<LogEntry> listOfLogEntries;
^~~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:350:5: note: 'std::list' is defined in header '<list>'; did you forget to '#include <list>'?
std::list<LogEntry> listOfLogEntries;
^~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:351:10: error: 'list' in namespace 'std' does not name a template type
std::list<AuthorizationEntry> listOfAuthorizationEntries;
^~~~
.piolibdeps/nuki-bridge/NukiBleEsp/src/NukiLock.h:351:5: note: 'std::list' is defined in header '<list>'; did you forget to '#include <list>'?
std::list<AuthorizationEntry> listOfAuthorizationEntries;
^~~
*** [.pioenvs/nuki-bridge/src/main.cpp.o] Error 1
========================== [FAILED] Took 3.40 seconds ==========================
I don't know where and if should I make corrections
1 Like