Closed leranp closed 2 years ago
Was the pairing with smart lock successful? Can you post your yaml and a screenshot of the esphome WT32-ETH01 device?
Was the pairing with smart lock successful? Can you post your yaml and a screenshot of the esphome WT32-ETH01 device?
The pairing is o.k, it works fine in standby, but most of the times when the nuki is changing state the esphome is restarting. This is the configuration:
esphome:
name: esp-lan
platform: ESP32
board: esp-wrover-kit
libraries:
- Preferences
- https://github.com/nkolban/ESP32_BLE_Arduino/
- https://github.com/I-Connect/NukiBleEsp32#v0.0.4
ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO0_IN
phy_addr: 1
power_pin: GPIO16
use_address: 192.168.XX.XX
# Enable Home Assistant API
api:
password: 'XXXXX'
logger:
#level: VERY_VERBOSE
ota:
password: 'XXXX'
sensor:
- platform: uptime
name: "Uptime EspLAN32 Sensor Sec"
id: uptime_sec
update_interval: 60s
external_components:
- source: github://uriyacovy/ESPHome_nuki_lock
lock:
- platform: nuki_lock
name: Nuki Lock Bridge
is_paired:
name: "Nuki Paired"
battery_critical:
name: "Nuki Battery Critical"
battery_level:
name: "Nuki Battery Level"
binary_sensor:
- platform: gpio
pin:
number: GPIO03
mode: INPUT_PULLUP
# inverted: True
name: "Door Open sensor"
filters:
- delayed_on_off: 50ms
device_class: door
switch:
- platform: gpio
pin: GPIO14
id: relay
name: "Lobby Light"
on_turn_on:
- delay: 500ms
- switch.turn_off: relay
Thanks leranp. Since I don't have this type of board, and to try to minimize the debugging scope, can you disable the Ethernet, door sensor and light, and check how does it behave?
Thanks leranp. Since I don't have this type of board, and to try to minimize the debugging scope, can you disable the Ethernet, door sensor and light, and check how does it behave?
i tried to compile without the ethernet and the sensor and switch , but the errors are the same, my esphome version is 2022.6.2 if you compile with the same configuration the errors are still there? maybe there is something changed in one of the repositorys?
NimBLE-Arduino was changed 16 days ago , NukiBleEsp32 is install the newest version of NimBLE-Arduino and not the stable one
NukiBleEsp32 points to v0.0.4 in your yaml, but in any case, I changed some time ago the yaml in the readme.md to point to my own fork. Can you try with:
libraries:
- Preferences
- https://github.com/nkolban/ESP32_BLE_Arduino/
- https://github.com/uriyacovy/NukiBleEsp32
NukiBleEsp32 points to v0.0.4 in your yaml, but in any case, I changed some time ago the yaml in the readme.md to point to my own fork. Can you try with:
libraries: - Preferences - https://github.com/nkolban/ESP32_BLE_Arduino/ - https://github.com/uriyacovy/NukiBleEsp32
Thank you, tried with your fork without the sensor and switch, but with the Ethernet component , I still have the same errors when compile the bin file ( clean all the files before ), I will give it a try to see if its now stable.
Good, let me know if it's more stable.
Good, let me know if it's more stable.
after 1 day I can confirm that nothing was change, in the night it was stable because no one opened the door, but in the morning the door was open about 4 times , and 2 of them make the esphome to restart. the only option is to remove the Ethernet and switch to WIFI , but it is a bad option because I bought the device to be more stable and reliable in the network. will update if the Ethernet was the problem
Sorry to hear that. I rebuilt the project from scratch with the latest HA and ESPHome on ESP32 wroom and it's running stable for several open and lock cycles. Looking forward to hear if the problem is related to the Ethernet.
Sorry to hear that. I rebuilt the project from scratch with the latest HA and ESPHome on ESP32 wroom and it's running stable for several open and lock cycles. Looking forward to hear if the problem is related to the Ethernet.
Same Problem, device restarting when the nuki changes the status Going to test it with the old device Esp32-cam, i suspect that something changed in one of the repositories versions. I will try to restart my nuki, maybe it's related to the problem
Sorry to hear that. I rebuilt the project from scratch with the latest HA and ESPHome on ESP32 wroom and it's running stable for several open and lock cycles. Looking forward to hear if the problem is related to the Ethernet.
Same Problem, device restarting when the nuki changes the status Going to test it with the old device Esp32-cam, i suspect that something changed in one of the repositories versions. I will try to restart my nuki, maybe it's related to the problem
After 1 day with this device nodemcu-32s, it was very stable compared to the Ethernet device, but i still had a one restart over the 24H when status changed , it is more reliable for me, i also remove the Nuki battery for 20 minutes to make a hard restart to the device and then test with the nodemcu-32s device for 1 day. It looks like something in the code doesn't catch the error if there's a wrong behavior and force the device to restart. Do you want me to change the log level to pull the logs when it happens?
Glad to hear you made some progress. Sure, please send the logs.
Glad to hear you made some progress. Sure, please send the logs.
After 3 days i had only 1 restart, I think that the Ethernet device is defective when using the Bluetooth option, because it's stable without using it. So I am closing this issue and ordering a new Ethernet device Thanks for your help
OK. Please update when the new Ethernet device arrives.
In the beginning i used ESP32-CAM device and i worked fine for more than 1 month , but now i bought a WT32-ETH01 device and i have an errors when install, it can work on the device but i have a reboots when the lock\unlock is triggered.
this is the logs from the installation
logs when lock is trigger: