Giter Club home page Giter Club logo

Comments (4)

iranl avatar iranl commented on July 23, 2024

Thanks for helping us debug this issue.

Please do the following:

  • Flash the binary for your device:
    esp32-debug.zip
    esp32-c3-debug.zip
    esp32-s3-debug.zip

  • Enable Enable MQTT logging in Advanced MQTT and Network Configuration

  • Open MQTT Explorer and connect to your MQTT server

  • Check that you have a nukiopener/maintanence/log topic

  • Try to change to setting for Doorbell Suppression and Button Enabled. You can use the dropdown/switch in Home Assistant for this or publish { "doorbellSuppression": "CM & Ring" } or { "buttonEnabled": "1" } to nukiopener/configuration/action.

Note: Debugging is not enabled completely on all settings, so please stick to Doorbell Suppression and Button Enabled for now

  • Report back here with the last 5-10 messages in nuki/maintanence/log before the message MQTT connected is seen (this means the ESP has restarted)

  • It should look like this (but probably won't because of the crash, but hopefully will help pinpoint the exact location of the problem)

onConfigUpdateReceived: Config update recieved
onConfigUpdateReceived: Initial checks done, continuing
onConfigUpdateReceived: ACL preferences loaded
onConfigUpdateReceived: checking key name
[...]
onConfigUpdateReceived: checking key buttonEnabled
onConfigUpdateReceived: key exists
onConfigUpdateReceived: value = 1 (or 0 depending on if you are enabling or disabling the button)
onConfigUpdateReceived: Changing enableButton
onConfigUpdateReceived: result: 1
onConfigUpdateReceived: checking key ledEnabled
[...]
onConfigUpdateReceived: Success
Reading config. Result: success
Reading advanced config. Result: success

from nuki_hub.

sjors-lemniscap avatar sjors-lemniscap commented on July 23, 2024

Just tested with the esp32_debug binary. I can reproduce the crash reported by @fir3drag0n by changing either the Doorbell Suppression or Button Enabled setting in HA (but also publishing it directly to the MQTT configuration/action topic).

Worth noting (for future reference) that the logs are published through the nuki/maintanence/log topic. There are unfortunately no new MQTT messages before the MQTT connected message (which indicates a restart) when changing the settings meaning that the ESP32 is already crashing early in the process.

from nuki_hub.

iranl avatar iranl commented on July 23, 2024

Should be fixed by #385. Have been able to pinpoint the faulty code.

Please test:
esp32.zip
esp32-s3.zip
esp32-c3.zip

from nuki_hub.

technyon avatar technyon commented on July 23, 2024

Merged into master

from nuki_hub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.