mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
55 lines
1 KiB
Nix
55 lines
1 KiB
Nix
{ config, target, ... }: {
|
|
esphome = {
|
|
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";
|
|
model = "DHT22";
|
|
update_interval = "60s";
|
|
pin = "D0";
|
|
temperature = {
|
|
name = "Bedroom Temperature";
|
|
id = "bedtemp";
|
|
};
|
|
humidity = {
|
|
name = "Bedroom Humidity";
|
|
id = "bedhum";
|
|
};
|
|
}
|
|
{
|
|
platform = "ccs811";
|
|
update_interval = "60s";
|
|
address = "0x5A";
|
|
temperature = "bedtemp";
|
|
humidity = "bedhum";
|
|
baseline = "0x2BBB";
|
|
eco2 = {
|
|
name = "Bedroom eCO2";
|
|
};
|
|
tvoc = {
|
|
name = "Bedroom Total Volatile Organic Compound";
|
|
};
|
|
}
|
|
];
|
|
}
|