One Time
Setup environment
brew install pyenv pyenv-virtualenv
cat <<EOF >> ~/.localrc
export PYENV_VIRTUALENV_DISABLE_PROMPT=1
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
EOF
source ~/.localrc
pyenv virtualenv 3.10.13 esphome-3.10Install dependencies
pip install -r requirements.txtUpgrade requirements
pip install --upgrade -r requirements.txtEach Time
pyenv activate esphome-3.10esphome run <config>.yamlSometimes the compile for ESP-IDF fails after linking. Most often this happens when adding or removing new components (sensors, outputs, etc). The easiest thing to try is to clean and re-compile.
esphome clean <config>.yaml
esphome run <config>.yaml