1.2 KiB
1.2 KiB
AGENTS.md (ESPHome Workspace)
This directory is a self-contained ESPHome project space utilizing dynamic configuration loaders and an interactive flashing CLI.
Rules & Design Standards
Secret Management
- NEVER write plaintext Wi-Fi passwords, tokens, or API keys directly in the YAML configurations.
- DO NOT modify the
.gitignoreto allow checking in.envfiles. - Use ESPHome's
!env_var VAR_NAMEto inject environment variables at compile-time. Any new secrets must be declared in.env.templateand configured locally in.env.
Configuration Standards
- Default board architecture is ESP32 (
nodemcu-32switharduinoframework) unless specified. - Naming conventions for configurations:
esdisplay_<name>.yamlorsensor_<name>.yaml. - All displays should use the
timecomponent with SNTP sync for accurate time rendering. - Prefer importing sensors from Home Assistant over Native API client integrations, as it decouples rendering layouts from automation scripts.
Build and Run Tools
- Use
uv run flash.pyto compile, validate, clean, or flash ESPHome configurations. - Avoid triggering direct
esphomecli calls unless doing isolated validation tests.