ESPHome CLI provides command-line tools for managing device configurations, validating YAML, compiling firmware, flashing devices, and viewing runtime logs. Some M5Stack external components may not yet support the latest ESPHome release, which can cause configuration or compilation errors. If you encounter a version-compatibility issue, install the ESPHome version required by the product component with pip, then compile again.
pip.We recommend completing the Python and CLI setup by following the official ESPHome installation guide. When a specific version is required, install it from a terminal with a version-pinned pip command. For installation requirements, command-line options, and usage details, refer to:
Use the following commands for routine configuration and firmware management. Refer to the official documentation for the complete list of options:
esphome version
esphome config device.yaml
esphome compile device.yaml
esphome upload device.yaml
esphome logs device.yaml To install a specific version, include the version number in the installation command:
python -m pip install esphome==2026.4.5 secrets.yaml and referencing them from the YAML with !secret. Incorrect Wi-Fi credentials prevent the device from connecting to the network after flashing and from being discovered by Home Assistant.