I can't connect NodeMCU

Hello everyone I can’t connect NodeMCU to HA. Asks for the WIFI password and login. But if I specify, the syntax swears at the password that it must be at least 8 characters long. My password is already 8 characters long. What am I doing wrong?

INFO ESPHome 2024.2.2
INFO Reading configuration /config/esphome/esphome-web-f5506b.yaml...
Failed config

wifi: [source /config/esphome/esphome-web-f5506b.yaml:20]
  ssid: !secret wifi_ssid
  
  WPA password must be at least 8 characters long.
  password: !secret wifi_password
  ap: 
    ssid: Esphome-Web-F5506B
    password: Em9A2QwIpJoM
sensor.sensor: [source /config/esphome/esphome-web-f5506b.yaml:32]
  
  Platform not found: 'sensor.sensor'.
  platform: sensor
  pin: D3
  model: SHTCx
  temperature: 
    name: Temp
  humidity: 
    name: Humidity
  update_interval: 10s

Do you have a secrets file?

Is that what you’re asking?

Yes, that’s it.

This one definetely stopping configuration to compile.
Fix sensor configuration. Or remove it for first try.
Just to connect device to WiFi and HA, then add sensors etc.

1 Like

If I remove the sensor configuration, the error on it disappears. But the wifi error will remain. I am entering the correct wifi data. The syntax still swears at the number of characters in the password.

If your WiFi password is less than 8 characters then change it to one that is at least 8 characters.
It is a standard to require that on most devices, so it will not just be ESPHome you will be fighting with.

1 Like

It’s not. Read post one.

1 Like

I can’t see if the WiFi password is too short or if it is just a typing error in the secrets file that cause it.

Can you tell me how to change the secrets password? Is the password that is requested in the code secrets or from the home network?

Click on secrets and edit there.

You have to put there your wifi credentials.

Like:

# Your Wi-Fi SSID and password
wifi_ssid: "myssid"
wifi_password: "mywifipassword"
1 Like