Close

Using the command line

A project log for Experiences with ESPhome

Setting up some ESPhome-devices

mabe42MaBe42 12/27/2024 at 21:320 Comments

I am working on a Debian Bookworm system. This means, to use python3 with additional packages, I have to use a virtual environment.

Using a virtual environment is explained in many places on the web e.g. https://linuxconfig.org/how-to-set-up-a-python-virtual-environment-on-debian-10-buster

To get my environment running I have to run

source ~/ESPhome/bin/activate

Then in my working directory (where the yaml-files reside) I only need three commands:

to create a new yaml file [myproject].yaml:

esphome wizard [myproject].yaml

 to compile and upload:

esphome run [myproject].yaml

to check for errors:

esphome config [myproject].yaml

Discussions