YAML to Executable.bin An understanding sought

I’m sorry if this question has an obvious answer, or maybe I’ve just not been able to ask the search engines the correct question! But…

Background: I have an (almost) working ESP32 reading the MODBUS data from an Eastron SDM230m. This is based on the sample code here: SDM Meter .

The Issue: The sample code is, of course, written in YAML. Which in turn will be compiled into code to run in the ESP32. I think that there maybe a miss-mapping between the Yaml named sensors and the physical MODBUS addresses?

Question: How or where is this compilation performed? It seems to me that it may be done on the Home Assistant server, which in my case is an Oracle VirtualBox. But to do this, the source and header files have to be retrieved from somewhere?
Can someone tell me what the yaml-to-executable.bin workflow is and how can I gain access to the header files so that I can check and hopefully correct.

Best regards to you all, Martin

It is done on the machine which is running esphome, which is not necessarily the machine running home assistant).

If you are running a supervised or haos install, and used the esphome addon, then there is a directory /config/esphome which stores the yaml files and all the build files.

The building is done by platformio, you can see a certain amount of what is going on in the log when you build a .bin file.

Ah… Hidden files!
I think I have found what I was asking for (which may not be what I want!) at:
/config/esphome/.esphome/<etc>

If I was to rephrase my question, could you point me in that direction?
The sample yaml I am using has this snippet:

sensor:
  - platform: sdm_meter

How can I track down the project author(s) of the “sdm_meter”?

Many thanks, M.

You can open an issue here:

The source will be on github, for your example here esphome/esphome/components/sdm_meter at dev · esphome/esphome · GitHub

Tom, Thank you. Done my best - hope it is okay?
Nick, I’ll study with interest. With only a bit of Arduno falvioured C/C++ I’ll probably not get very far!

Regards, M.