Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuki Hub does not connect to WiFi #595

Closed
2 tasks
madCase1988 opened this issue Jan 6, 2025 · 15 comments
Closed
2 tasks

Nuki Hub does not connect to WiFi #595

madCase1988 opened this issue Jan 6, 2025 · 15 comments
Labels
question Further information is requested

Comments

@madCase1988
Copy link

PROBLEM DESCRIPTION

Problem is that when i flash the latest version of nuki hub to an esp32 I did not manage to connect the device to wifi. I always get the error "Failed to connect to the given SSID with the given secret key, credentials not saved". The secret key is definitely correct. When I flash the e.g. the ESP Home Bluetooth Proxy Firmware to the same devices I do not have any problem connecting them to the wifi. It only occurs, when I flash the NukiHub Firmware

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

  • [ X] Searched the problem in the docs
  • [ X] Searched the problem in the chat
  • Device used (e.g., ESP32-S3): ESP32 WROOM 32 (‎AM03DE-GXFB0014-005) and M5Stack ATOM Lite ESP32
  • Nuki Hub binary firmware version number used: 9.06

TO REPRODUCE

Steps to reproduce the behavior:

  • install Nuki Hub 9.06 to ESP32 WROOM 32 or M5Stack ATOM Lite ESP32
  • connect to the Nuki Hub Wifi
  • choose your WiFi
  • enter the correct secret key

EXPECTED BEHAVIOUR

Nuki Hub should connect to Wifi with the entered secret key

SCREENSHOTS

image

@technyon
Copy link
Owner

technyon commented Jan 6, 2025

Is there anything special about your key? Special characters, length?

@iranl
Copy link
Collaborator

iranl commented Jan 6, 2025

Or are you using a Hidden SSID?

@madCase1988
Copy link
Author

Is there anything special about your key? Special characters, length?

To my mind not. The key consists only of digits and has 16 digits in total. Shouldn't be a problem, should it?

@madCase1988
Copy link
Author

Or are you using a Hidden SSID?

No. I also tried several router configuration concerning Encryption: tried WPA2-PSK (AES) and WPA3 Personal.

@madCase1988
Copy link
Author

What I forgot: when i connect the Nuki Hub to Mobile Hotspot of my mobile it works. So I guess its something with the router configuration but i don't have a clue...

@iranl
Copy link
Collaborator

iranl commented Jan 6, 2025

Anything special in your SSID (length, characters)?

Have you tried changing your SSID and pass to the same as your mobile hotspot to test?

DHCP working?

@madCase1988
Copy link
Author

Anything special in your SSID (length, characters)?

Have you tried changing your SSID and pass to the same as your mobile hotspot to test?

DHCP working?

To my mind nothing special. SSID consists of 23 (normal) letters and one number. No special characters. I named my mobile hotspot excatly like my home wifi and also set the Enryption exatly the same and mobile hotspot works but home wifi not. I also deactivated all integrated antivirus filters temporarily.

When I flash tzhe same esp32 with bluetooth proxy software wifi connection is no problem!

@technyon
Copy link
Owner

technyon commented Jan 6, 2025

To ask again, DHCP is activated and working?
Your home Wifi works on the 2.4GHz band? ESPs don't work on 5GHz. If your network appears in the list when configuring the ESP, it's 2.4GHz.
Sure no MAC filter is active?
What kind model is your router?

@madCase1988
Copy link
Author

To ask again, DHCP is activated and working? Your home Wifi works on the 2.4GHz band? ESPs don't work on 5GHz. If your network appears in the list when configuring the ESP, it's 2.4GHz. Sure no MAC filter is active? What kind model is your router?

Sorry that i missed your question. DHCP ist activated and working:

image

image

Router Model is: TP-Link AX6000

@madCase1988
Copy link
Author

Sure no MAC filter is active?

Sure no MAC filter is active? Yes
Your home Wifi works on the 2.4GHz band? Yes

I am also sure, because conneting same ESP with Proxy Firmware works...

@iranl
Copy link
Collaborator

iranl commented Jan 6, 2025

Have you disabled the option to search for the best AP and/or set a static IP on NukiHub while selecting your ssid/inputing password?

If all that doesn't work you can try getting a serial log over usb while setting up the wifi

@iranl iranl changed the title Nuki Hub does not connect to WiFi because of wrong secret key (which is not wrong) Nuki Hub does not connect to WiFi Jan 6, 2025
@iranl
Copy link
Collaborator

iranl commented Jan 6, 2025

Note that is doesn't say anywhere that you have given an incorrect secret key. It just says it failed to connect to the ssid with the given key. Doesn't mean it's the pass

@madCase1988
Copy link
Author

Have you disabled the option to search for the best AP and/or set a static IP on NukiHub while selecting your ssid/inputing password?

Yes, tried both.

If all that doesn't work you can try getting a serial log over usb while setting up the wifi
Will do that

@madCase1988
Copy link
Author

Note that is doesn't say anywhere that you have given an incorrect secret key. It just says it failed to connect to the ssid with the given key. Doesn't mean it's the pass

Got you. Its correct! :)

@iranl iranl added the question Further information is requested label Jan 7, 2025
@iranl
Copy link
Collaborator

iranl commented Jan 15, 2025

Closing for inactivity. Please re-open if the issue persists and you have provided the requested information (Serial logs)

@iranl iranl closed this as not planned Won't fix, can't repro, duplicate, stale Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants