ESPHome - bapowell/bapowell.github.io GitHub Wiki

References

https://esphome.io

Prerequisites (Ubuntu)

  • Python 2.7 installed (v2.7 because of platformio)

  • Ensure pip (i.e. pip2) is installed.

    • $ sudo apt-get install python-pip
  • Ensure virtualenv is installed.

    • $ pip2 install virtualenv
      • note: installed to ~/.local/lib/python2.7/site-packages

Installation

  • Create a python2 virtual environment for ESPHome.

    • $ python2 -m virtualenv --python=python2.7 {DIR}
      • where {DIR} might be something like ~/esphome_pyvenv
  • Active the virtual environment.

    • $ source {DIR}/bin/activate
      • note: To deactivate it later, type deactivate<enter> at the command prompt.
  • Ensure using latest version of pip.

    • (esphome_pyvenv) $ python -m pip install pip --upgrade
  • (optional) Update outdated packages.

    • (esphome_pyvenv) $ python -m pip list --outdated
    • example:
      • (esphome_pyvenv) $ python -m pip install --upgrade setuptools wheel
  • Install/Upgrade ESPHome

    • (esphome_pyvenv) $ python -m pip install --upgrade esphome
⚠️ **GitHub.com Fallback** ⚠️