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
uriyacovy
(Uri Yacovy)
February 16, 2025, 1:47pm
26
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
uriyacovy
(Uri Yacovy)
April 19, 2025, 4:18pm
28
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
uriyacovy
(Uri Yacovy)
June 11, 2025, 8:45am
30
See here an update if this helps:
opened 12:03PM - 24 Jun 24 UTC
closed 04:05PM - 08 Aug 24 UTC
After updating Esphome to 2024.6.1, I can't update my Nuki Lock device and get e… rrors 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 ](https://github.com/uriyacovy/ESPHome_nuki_lock/issues/44), 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
```