What you are referring to is the original method. The file you put on your CONFIG/network/the-file-on-your-USB-stick is the same file which gets imported to /etc/NetworkManager/system-connections/the-file-on-your-USB-stick
Using ' works for me when I create a password which contains !
I had some similar problem I think with a % in my wifi password. I tried all here except yours with the variable, I created the file which would have been imported from USB directly in folder /etc/NetworkManager/system-connection and rebootet. The connection was then defined but not coming up and I already suspected it is the password.
ânmcli connection showâ was showing up the wifi setup not being connected to any device (âââ).
ânmcli device connect wlan0â gave me the feedback I needed:
Passwords or encryption keys are required to access the wireless network blablubb.
Warning: password for â802-11-wireless-security.pskâ not given in âpasswd-fileâ and nmcli cannot ask without ââaskâ option.
Error: Connection activation failed: (7) Secrets were required, but not provided.
Guess what: I ran the same command again with this option and then it asks interactively for the password and here it accepts the special signs. Now it is up!
I donât think you actually read the guide. (hint, you need a specific addon and other steps)
Also this is not hassbian or raspbian. There is no apt-get. You wonât be installing software without using addons. All addons are containers, including the ssh addons. They provide basic access to the mapped directories and access to the custom command line. Type âha helpâ to see more.
I have the same issue, except that I donât have any special character in my wifi password.
I tried the following command:
nmcli device wifi connect <SSID> --ask
Itâs interactively asking for password, but I still end with Error: Connection activation failed: (7) Secrets were required, but not provided.
The add-on is indeed the community ssh and web terminal version, configured with password (temporarily, I will uninstall it when wifi is connected), and with protection mode disabled, followed by the add-on restart and even a homeassistant reboot (then add-on start).
What is the command you used exactly? Have you done any change in a file elsewhere?
I tried to connect to the wifi with the nmcli device wifi connect "SSID" password "pw" command. But it says Error: No network with SSID 'SSID-Name' found.
The SSID of the wifi is not visible but there must be a way to connect to a network that is not visisbleâŚ
I am an experienced embeded system C programmer but a complete novice at Raspberry Pi and open source code in general. That said, I was also having trouble getting wifi working with my Pi 4 model B and hassio. The 5GHz worked fine with Rasbian. After much serching and dead ends, I noticed the potential problem if the channel number was not < 10. When I looked at my router, 2.4 GHz supported channels 1-11 but 5 GHz only listed double digit or more channel numbers. Once I changed my configuation to the 2.4 GHz (seperate SSIDs) and insured the channel number was < 10, it is now working. Of course I canât be sure the channel number is the problem but it seems to make sense.
I was getting âError: Connection activation failed: (7) Secrets were required, but not provided.â message driving me nuts. Finally I figured out what the issue was. So, this message is generated if MAC filtering is enabled on your AP. By default, this OS changes wlan0 MAC address every time it activates it, which I find very silly for a home automation controller. Would be perfectly fine for a mobile device connecting to the public WiFi networks, of courseâŚ
Anyway, "nmcli c modify wifi.cloned-mac-address will ensure that the same address is used every time, so you will be able to put it in your AP filter and get things in order.
NetworkManager.conf man page is very badly written when it comes to the description of some of the important parameters, like this one.