2024-09-28 17:44:57 +02:00
|
|
|
# esphomeconfig
|
2024-09-19 21:52:53 +02:00
|
|
|
|
|
|
|
This contains clerie's esphome configs.
|
2024-09-28 17:44:57 +02:00
|
|
|
|
|
|
|
## Build and flash
|
|
|
|
|
|
|
|
Make sure esphome cli is available:
|
|
|
|
|
|
|
|
```
|
|
|
|
nix shell nixpkgs#esphome
|
|
|
|
```
|
|
|
|
|
|
|
|
Build firmware for device:
|
|
|
|
|
|
|
|
```
|
|
|
|
esphome compile nodes/d1-mini-scd40-fee158/firmware.yaml
|
|
|
|
```
|
|
|
|
|
|
|
|
Connect device via USB.
|
|
|
|
|
|
|
|
Flash firmware to device:
|
|
|
|
|
|
|
|
```
|
|
|
|
esphome upload nodes/d1-mini-scd40-fee158/firmware.yaml
|
|
|
|
```
|
|
|
|
|
|
|
|
The command asks interactively for the serial interface to flash the firmware to.
|