Sonoff - esphome flashed - does not show up in HA

Hello,

Forgive me as this is my first project, so i am completely newbie here.
Surely i am missing something stupid… and someone can point me into right direction…

I use hass.io (latest version). Installed the ESPHome Add-On (latest version 1.13.5) and did a new project to flash my Sonoff Basic device exactly as described here: https://esphome.io/devices/sonoff_basic.html

ESPHome also shows it is online (also OTA update works).
pic1

Also if i click “Show logs” within ESPHome:

The code in ESPHome is as following:
esphome:
name: wasser
platform: ESP8266
board: esp01_1m

wifi:
  ssid: "my_wlan_here"
  password: "my_pw_here"

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: "Mln1xagwe"

ota:
  password: "my_ota_pw_here"

binary_sensor:
  - platform: gpio
    pin:
      number: GPIO0
      mode: INPUT_PULLUP
      inverted: True
    name: "sensor_wasser"
    on_press:
      - switch.toggle: relay

switch:
  - platform: gpio
    name: "switch_wasser"
    pin: GPIO12
    id: relay

status_led:
  pin:
    number: GPIO13
    inverted: yes

Now i cannot find the device within HA ?!

Thanks for any hint…
/ Ralf

In home assistant click on configuration (in the panel on the left) then integrations. The new device should be there. Click on it,enter the api password.

Thats it!!! Thanks very much!
P. S. the name of the integration must end with .local, in my case wasser.local

/ Ralf

Hi @Ralf, this happens to me from time to time if the devices has only just been flashed. HA will eventually detect it, but if the new ESPhome device does not automagically appear in the Integrations list as quickly as desired, you can manually add a new ESPhome integration, right there in the Integrations page. You just need to know the IP address of the new device. Works great.

I think it’s because I’m running my HA on a pi, which doesn’t have quite as much muscle as a PC.