Can't make the stupid esp32 config

Hi everyone,

I’m running Home Assistant via Docker on a mini PC and trying to connect my ESP32 with a BMP280 sensor. The issue is that when I use the ESPHome Docker container, no matter what I try, it can’t find the WiFi network. However, if I use the ESPHome website (Ready-Made Projects — ESPHome) and enter the same network details, it works perfectly.

The downside is that with the website method, I can’t modify the configuration (or I don’t know how), so I don’t get the sensor readings.

Does anyone know how I can fix this issue? Any help would be much appreciated!

Thanks!

What is your docker command?

ok, this is mine docker-compose.yml file for esphome

### ESPHOME
  esphome:
    container_name: esphome
    image: ghcr.io/esphome/esphome
    environment:
      - ESPHOME_DASHBOARD_USE_PING=true
    volumes:
      - /opt/esphome/config:/config
      - /etc/localtime:/etc/localtime:ro
    ports:
      - 6052:6052
    restart: always

Esphome dashboard is available at my_server_ip:6052
You can add it to ha using ingress integration.

You can compile your yaml code in esphome dashboard, download it and flash board with that file using web esphome.