ESPHome with any ESP8266 Relay board?

Hi, Can you tell me how you flashed the board?
I have connected a USB to TTL and it all powers up good.
The problem is I cannot down load to the board.

Try using esphomeflasher. I could not flash some boards using web tool.
I don’t recall anything special to be honest. Shortening IO0 pin with GND before powering it, disconnected that after about 5 seconds and then flashed.

1 Like

Thanks.
Used another flash tool and it worked.

Did you have to do anything special with the EspHome configuration?
i have successfully flashed it with EspHome from HA and the configuration succeeded but the wifi was not activated on the chip and I cannot access it via wifi.

Here is example. You should have your wifi details configured in secrets file. And if it cannot connect, it will revert to AP (name and password defined below)

esphome:
  name: gardenwatering8ch

esp8266:
  board: esp12e
  early_pin_init: false

# Enable logging
logger:

#web_server:
#  port: 80

ota:
  password: "xxx"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "GardenWatering-8ChAP"
    password: "xxx"

I am going crazy here. :slight_smile:
It just will not find my wifi.
I even set up a fall back wifi using another hotspot and it cannot find that either.
I think that the version of yaml on the esp8266 is not the same as I have in EspHome.
Even though EspHome has returned a successful install.
To get EspHome to install I have to put on the jumper cable between IO0 and GND
And then for normal operation I remove the jumper.
Maybe the Yaml is just not being saved? Or it is always resetting it to the original version I flashed.

[D][wifi:402]: Found networks:
[D][wifi:450]: - ‘Ferenczi_Net’[redacted] (68:FF:7B:49:97:2C) [redacted]▂▄▆█
[W][wifi:456]: No matching network found!
[D][wifi:387]: Starting scan…
[D][wifi:402]: Found networks:
[D][wifi:450]: - ‘Ferenczi_Net’[redacted] (68:FF:7B:49:97:2C) [redacted]▂▄▆█
[W][wifi:456]: No matching network found!
[D][wifi:387]: Starting scan…
[D][wifi:402]: Found networks:
[D][wifi:450]: - ‘Ferenczi_Net’[redacted] (68:FF:7B:49:97:2C) [redacted]▂▄▆█
[W][wifi:456]: No matching network found!

esphome:
  name: relay
  friendly_name: Relay

esp8266:
  board: esp01_1m

# Enable logging
logger:
  level: debug


# Enable Home Assistant API
api:
  encryption:
    key: "KD1i/etXnNlzy84uaZxjgJCp9OuWzAJgzzqXZYnWJqY="

ota:
  password: "54364c9085cf7eb39174df48a0c27378"

wifi:
  ssid: Ferenczi_Net
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Relay Fallback Hotspot"
    password: "IzwULOwcXU07"

captive_portal:

Should you be using quotes?
I don’t specify SSID in code. Both are stored in my secrets file and in " ". And in code for device, I point them to secrets.

So if you put SSID directly in code, should it be in quotes?

Device code has following:

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

Secrets contain this:

# Your Wi-Fi SSID and password
wifi_ssid: "myssid"
wifi_password: "mypass"

I initially had it all in secrets.
Then I tried without secrets and without quotes
The I tried with quotes.

FFS !!
Just restarted the whole of Home Assistant and it now works. I did that earlier without any luck.
Well my device is now online :slight_smile: :slight_smile: :slight_smile:
Thanks eveyone.
Much appreciated