Open olicooper opened 1 year ago
Using the esphome CLI I can set PLATFORMIO_BOARDS_DIR
environment variable to the directory containing the custom board JSON.
For the home assistant add-on I think it would be better to support specifying URLs of the custom board JSON.
Describe the problem you have/What new integration you would like
Sometimes the predefined board options are not suitable and some parameters need to be changed. Platformio allows the use of custom board files (see: https://docs.platformio.org/en/latest/platforms/creating_board.html). esphome does not support custom board files, but I have done some testing and I can get it working quite easily. esphome warns if the board is unknown with the message
This board is unknown, please set the variant manually
(see: components/esp32/init.py#L280)My suggestion is to check if the board exists, and if it doesn't then check the variant is configured and that a custom board file can be found, then copy that file to the build directory...
I have written the following code for the
esp32
platform which does everything required to get the board file to the build directory. This should be placed here: components/esp32/init.py#L526Please describe your use case for this integration and alternatives you've tried:
I would like to configure options like the
maximum_ram_size
but it is not possible with the current configuration options e.g.Additional context