Deprecate reflash.sh in favor of Makefile
Compile All / compile (push) Failing after 1m26s

This commit is contained in:
2026-07-12 15:04:33 +00:00
parent f6d068ffd2
commit ec4385e197
8 changed files with 333 additions and 134 deletions
+22 -9
View File
@@ -10,28 +10,41 @@ timezone when syncing the clock (NTP).
## Compiling
```
```bash
$ cp -i secrets.yaml{.sample,}
$ cp -i templates/secrets.yaml{.sample,}
# Edit both secrets.yaml files.
$ ./reflash.sh compile ''
# Compile all devices in parallel (up to 4 jobs)
$ nix develop --command make compile-all -j4
# Or compile a single device
$ nix develop --command make compile-bathroomheater
```
## Running
## Flashing
```
$ ./reflash.sh
To flash all devices (automatically prioritizes OTA and skips prompts):
```bash
$ nix develop --command make flash-all -j4
```
or
To flash a single device:
```
$ esphome run file.yaml
```bash
$ nix develop --command make flash-bathroomheater
```
Look up list of runnable configurations inside `reflash.sh` script.
Alternatively, you can drop into the development shell and run `esphome` directly:
```bash
$ nix develop
$ esphome run bathroomheater.yaml
```
**Note:** The Makefile automatically tracks dependencies (including `!include` files and local `external_components` directories). It will natively evaluate changes and only recompile what has actually changed since the last run.
## Running remotely