Closed 7wells closed 1 year ago
Hi, If you have already a Home Assistant running there is this guide for getting started with ESPHome https://esphome.io/guides/getting_started_hassio.html
If you don't have Home assistant it gets a bit more complex and there is another guide for it: https://esphome.io/guides/getting_started_command_line.html
I see ESP Home as a lot of building blocks to build your ESP project. Just start with a very simple one from the example and then add this component to it.
I already have HA running on my Pi4 and also have an ESP32 attached to the Pi4. The ESP32 is also shown under "ESPHome", and I understand how to place yaml files into HA. So all that is fine.
My question was rather about how to get your project code onto the ESP32, as I see it contains also C++ code. And this puzzles me. I thought that you can only put MicroPython onto an ESP32.
Where will the compiled C++ files go to, how are they compiled, and what are they for?
Thank you! ☺️
That's the great thing of ESP Home that you don't have to worry about these things too much. Once the device is setup for ESP Home you can give your HA your yaml configuration file. HA (Pi4) will detect the components and build the firmware for your device and then upload it to the ESP.
Simply copy the truma.yml and - after clicking the edit-button shown in ESPhome - replace the prefilled code by pasting the truma.yml. Then edit it according to your needs (e. g. enter your Wifi-Credentials and paste , save and press install, which then will try to compile the code and install it on the ESP via your USB-connection. If everything was done properly (ESP is shown as 'online' in ESPhome) , it can even be installed wirelessly.
How can I find out the correct board, e.g. mhetesp32devkit
or esp32dev
? A possible programmatic solution described there seems out of date:
https://arduino.stackexchange.com/questions/21137/arduino-how-to-get-the-board-type-in-code
esp32dev
should always work. Main difference between the devices is the pin naming and numbering. If you stick to the ESP32 internal pin numbering you should have no difference.
Sorry, another question: The PW of the fallback AP is plain in the repo. How do you guys handle this?
This is just an example config. I don't actually use them anywhere.
Hi Fabian, please forgive me my maybe stupid question, but do you have some recommendation how to install your code? I'm familiar (a bit) with the ESP32, uPython, and was able to get inetbox2mqtt running on my other ESP32 but have no idea how to start with your project. Thanks for your hints (and patience)! ☺️