checkout this repo
create python virtual environment: python3 -m venv venv source venv/bin/activate pip install esphome