mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
feat: refactoring + system types
This commit is contained in:
parent
a0f9d0ab48
commit
9794026f6c
36 changed files with 653 additions and 537 deletions
21
esphome/base.nix
Normal file
21
esphome/base.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ config, ... }: {
|
||||
api = {
|
||||
password = "!secret api_password";
|
||||
};
|
||||
ota = {
|
||||
safe_mode = true;
|
||||
password = "!secret ota_password";
|
||||
};
|
||||
wifi = {
|
||||
ssid = "Gensokyo";
|
||||
password = "!secret wifi_password";
|
||||
};
|
||||
logger = {
|
||||
level = "DEBUG";
|
||||
};
|
||||
secrets = {
|
||||
ota_password = "gensokyo/esphome#ota";
|
||||
api_password = "gensokyo/esphome#api";
|
||||
wifi_password = "gensokyo/esphome#wifi";
|
||||
};
|
||||
}
|
||||
|
|
@ -3,25 +3,11 @@
|
|||
platform = "esp8266";
|
||||
board = "d1_mini";
|
||||
};
|
||||
api = {
|
||||
password = "!secret api_password";
|
||||
};
|
||||
wifi = {
|
||||
ssid = "Gensokyo";
|
||||
password = "!secret wifi_password";
|
||||
};
|
||||
i2c = {
|
||||
sda = "D2";
|
||||
scl = "D1";
|
||||
scan = true;
|
||||
};
|
||||
logger = {
|
||||
level = "DEBUG";
|
||||
};
|
||||
ota = {
|
||||
safe_mode = true;
|
||||
password = "!secret ota_password";
|
||||
};
|
||||
sensor = [
|
||||
{
|
||||
platform = "dht";
|
||||
|
|
@ -48,7 +34,7 @@
|
|||
name = "Bedroom eCO2";
|
||||
};
|
||||
tvoc = {
|
||||
name = "Bedroom Total Volatile Organic Compound";
|
||||
name = "Bedroom TVOC";
|
||||
};
|
||||
}
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue