ESPHome Issue, maybe (shows as offline)

Total noob I have no idea what I’m doing please help.

I have a Nodemcu V2 CP2102 with ESP8266MOD from Ali option #2. I originally flashed this project successfully because why not, and the web client works just fine. Then I decided to integrate it with hassio and installed ESPHome as an add-on, then ran through the configuration wizard. It didn’t seem to pick up the node, so I slapped on some manual IP code. Now I have this and it still doesn’t work:

esphome:
  name: bar_node
  platform: ESP8266
  board: nodemcuv2

wifi:
  ssid: "totally_my_ssid"
  password: "password"
  
  manual_ip:
    static_ip: 192.168.1.40// this is the IP the web client is working on at the moment
    gateway: 192.168.1.1 // definitely my router IP
    subnet: 255.255.255.0 // this is what my router says it is

# Everything below is boilerplate garbo
logger:
api:
ota:

Logging says cannot connect. The icon is red instead of green, as the guides have led me to believe I should expect. Where could I have messed up? Did flashing it before trying ESPHome mess with it? Did I mess up my config somewhere? Any hints at all would be appreciated. Thank you.

Does this format work maybe?

esphome:
  name: bar_node
  platform: ESP8266
  board: nodemcuv2

wifi:
  ssid: 'totally_my_ssid'
  password: 'password'  
  manual_ip:
    static_ip: 192.168.1.40// this is the IP the web client is working on at the moment
    gateway: 192.168.1.1 // definitely my router IP
    subnet: 255.255.255.0 // this is what my router says it is

# Everything below is boilerplate garbo
logger:
api:
ota:

So if I read this correctly, you haven’t uploaded an ESPHome firmware to the device yet?
If this is correct, the dashboard won’t show it, because it is looking for the ESPHome device… and you haven’t flashed it yet.

The first flash has to be done manually - you can’t use the ESHome OTA for the initial flash.
You need to connect to the device via USB. If you can do this from the computer that ESPHome Dashboard is running on, then you can do it from there, otherwise you’ll need to download the bin file and use esptool.py to push the file (or something similar.

Cheers!
DeadEnd