Hello Hello !!
I am a beginner on Home Assitant and ESPHome, trying to make my first device to control a relay based on humidity measurement. I am facing a major issue trying to make the first step:
Connect my ESP32-S3 to wifi. I have went through everything I have found about that on internet for days now but still not able to make it. I will try to explain as precisely as I can the problem I encounter:
When I create a new device, I connect to my ESP32-S3 using USB cable using ESPHome Web (Web - ESPHome).
I click on āPrepare for first useā, proceed to install successfully, I then configure wi-fi.
And it works, I can even visit the device locally on 192.168.1.20)
I can see my esp32 being connected to my 2.4GHz wifi on my route; The IP has been automatically attributed via the DHCP:
So it looks the ESP32 is well able to connect to my wifi using dynamic IP.
Now letās install my yaml file (I continue to use ESPHome Web, so manually download the .bin file):
esphome:
name: "esp32-vmc-controller"
friendly_name: "vmc-controller"
esp32:
board: esp32-s3-devkitc-1
framework:
type: arduino
api:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: "ESP32-VMC-CONTROLLER-HOTSPOT"
password: "password"
captive_portal:
logger:
level: ERROR
ota:
platform: esphome
improv_serial:
Again, the configuration is successfully installed:
So I have verified before installing my yaml configuration that the ESP32 is able to connect to the wifi, so it should be able to connect to my wifi now right ?
Well this is not what is happening, impossible to connect to ESP32.
I cannot connect anymore to my ESP32ā¦
So I went through a lot of forum, it often recommends to provide a manual IP (it should not be needed as earlier I could connect using DHCP but well, letās try). Letās update the yaml file:
esphome:
name: "esp32-vmc-controller"
friendly_name: "vmc-controller"
esp32:
board: esp32-s3-devkitc-1
framework:
type: arduino
api:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: 192.168.1.201
gateway: 192.168.1.1
subnet: 255.255.255.0
ap:
ssid: "ESP32-VMC-CONTROLLER-HOTSPOT"
password: "password"
captive_portal:
logger:
level: ERROR
ota:
platform: esphome
improv_serial:
I install again successfully using ESPHome Web interface but it still doesnāt work.
Iām having this problem for days now without being able to understand what Iām doing wrong, I therefore come here with the hope of getting some support !
Please, tell me what Iām doing wrong !
Note I have verified many many many times the SSID and the password of the Secrets are correct.