sethvoltz / esphome

ESP Home Configs

Repository from Github https://github.comsethvoltz/esphomeRepository from Github https://github.comsethvoltz/esphome

ESP Home Configs

Setup

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.10

Install dependencies

pip install -r requirements.txt

Upgrade requirements

pip install --upgrade -r requirements.txt

Each Time

pyenv activate esphome-3.10

Build and Flash

esphome run <config>.yaml

Debugging

Sometimes 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

Notes

  • Much help on the M5StickC was found here
  • The AXP192 support for the PMU in the M5StickC is provided but a custom component from here

About

ESP Home Configs