Yaml files for ESP8266

I flashed a NodeMCU with EasyHome and added the integration to my Home Assistant. HA recognizes the device and will take me to that device’s web server page. I’ve seen some examples of yaml files for the ESP8266 that are in line with my initial project, reading a reed switch turned on and off by a gas meter.

Where would I store the gasmeter.yaml file in HA and how would I upload the file to the device? Is the OTA Update on the device’s web server used for this? Thanks.

Do you mean esphome?

I am confused. What is “EasyHome” and what did you flash to the NodeMCU? How did you generate the gasmeter.yaml file?

The recommended procedure is to open the ESPHome Control Panel and click on +New Device.

Sorry, yes, I meant to write ESPHome, but had it confused with another ESP app. I used a web tool to flash the nodemcu with wifi connection and its web server and add to HA. When I have it plugged into power, it connects to the router and displays as a device on HA under the integrations page. This is what the device web page looks like:

In HA on the device page there are as yet no entities. I don’t see an ESPHome Control Panel or way to upload yaml files to the ESP device. so my question is, when I have a entity file to upload to the device, how would I do that? Thanks.

I found out I don’t have the control panel because I’m running HA in a docker container. Is there a repository to add it through HACS?

Don’t think so but the (very extensive) documentionation on www.esphome.io mentions that there is a docker thing available you can role out :whale:

Thanks; I’ll try that.

I run ESPHome in docker and I have the dashboard installed via the ESPHome environment variable:

sudo docker run -d --name="esphome" --restart=unless-stopped -p 6052:6052 -p 6123:6123 -e ESPHOME_DASHBOARD_USE_PING=true -v /home/finity/docker/esphome:/config esphome/esphome /config dashboard