feat: initial commit
This commit is contained in:
commit
24c89f3190
6 changed files with 62 additions and 0 deletions
12
.devcontainer/devcontainer.json
Normal file
12
.devcontainer/devcontainer.json
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"image": "ghcr.io/esphome/esphome",
|
||||||
|
"customizations": {
|
||||||
|
"vscode": {
|
||||||
|
"extensions": [
|
||||||
|
"EditorConfig.EditorConfig",
|
||||||
|
"ESPHome.esphome-vscode",
|
||||||
|
"redhat.vscode-yaml"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
12
.editorconfig
Normal file
12
.editorconfig
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# EditorConfig is awesome: https://EditorConfig.org
|
||||||
|
|
||||||
|
# top-most EditorConfig file
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
end_of_line = lf
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
.esphome
|
||||||
|
secrets.yaml
|
6
.vscode/settings.json
vendored
Normal file
6
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"files.associations": {
|
||||||
|
"secrets*.yaml": "yaml",
|
||||||
|
"*.yaml": "esphome"
|
||||||
|
}
|
||||||
|
}
|
25
README.md
Normal file
25
README.md
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# ESPHome Device Configurations
|
||||||
|
|
||||||
|
This repo contains YAML configurations and scripts for ESPHome devices. Each device has its own YAML file (e.g., `device1.yaml`, `device2.yaml`).
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
1. Clone this repo
|
||||||
|
2. Open in VS Code and reopen in Dev Container when prompted.
|
||||||
|
3. Adjust YAML files as needed.
|
||||||
|
|
||||||
|
## Secrets
|
||||||
|
Create a `secrets.yaml` file to store Wi-Fi and OTA secrets. This ensures the OTA password is consistent across builds:
|
||||||
|
```yaml
|
||||||
|
wifi_ssid: "your-ssid"
|
||||||
|
wifi_password: "your-password"
|
||||||
|
ota_password: "your-ota-password"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
- Prepare device for first use via [esphome web flasher](https://web.esphome.io)
|
||||||
|
- Connect device to wifi
|
||||||
|
- Compile & upload config via ota and ip address of the device:
|
||||||
|
```bash
|
||||||
|
esphome run device.yaml --device x.x.x.x
|
||||||
|
```
|
||||||
|
|
5
secrets.yaml.template
Normal file
5
secrets.yaml.template
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# Wi-Fi SSID and password
|
||||||
|
wifi_ssid:
|
||||||
|
wifi_password:
|
||||||
|
# Over-the-air update secret, must be the same for all users who compile esphome configs
|
||||||
|
ota_password:
|
Loading…
Add table
Reference in a new issue