mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-17 04:58:19 -04:00
set up esphome
This commit is contained in:
@@ -2,59 +2,66 @@ let
|
|||||||
vars = import ./vars.nix;
|
vars = import ./vars.nix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.home-assistant = {
|
services ={
|
||||||
enable = true;
|
home-assistant = {
|
||||||
openFirewall = true;
|
enable = true;
|
||||||
configDir = vars.media_home_assistant;
|
openFirewall = true;
|
||||||
config = {
|
configDir = vars.media_home_assistant;
|
||||||
http = {
|
config = {
|
||||||
server_port = 8123;
|
http = {
|
||||||
server_host = [
|
server_port = 8123;
|
||||||
"192.168.95.14"
|
server_host = [
|
||||||
"192.168.90.40"
|
"192.168.95.14"
|
||||||
"192.168.98.4"
|
"192.168.90.40"
|
||||||
|
"192.168.98.4"
|
||||||
|
];
|
||||||
|
use_x_forwarded_for = true;
|
||||||
|
trusted_proxies = "172.18.0.0/24";
|
||||||
|
};
|
||||||
|
homeassistant = {
|
||||||
|
time_zone = "America/New_York";
|
||||||
|
unit_system = "imperial";
|
||||||
|
temperature_unit = "F";
|
||||||
|
};
|
||||||
|
assist_pipeline = { };
|
||||||
|
backup = { };
|
||||||
|
bluetooth = { };
|
||||||
|
config = { };
|
||||||
|
dhcp = { };
|
||||||
|
energy = { };
|
||||||
|
history = { };
|
||||||
|
homeassistant_alerts = { };
|
||||||
|
image_upload = { };
|
||||||
|
logbook = { };
|
||||||
|
media_source = { };
|
||||||
|
mobile_app = { };
|
||||||
|
ssdp = { };
|
||||||
|
sun = { };
|
||||||
|
webhook = { };
|
||||||
|
zeroconf = { };
|
||||||
|
automation = "!include automations.yaml";
|
||||||
|
script = "!include scripts.yaml";
|
||||||
|
scene = "!include scenes.yaml";
|
||||||
|
group = "!include groups.yaml";
|
||||||
|
};
|
||||||
|
extraPackages =
|
||||||
|
python3Packages: with python3Packages; [
|
||||||
|
aioesphomeapi
|
||||||
|
aiounifi
|
||||||
|
bleak-esphome
|
||||||
|
esphome-dashboard-api
|
||||||
|
gtts
|
||||||
|
psycopg2
|
||||||
|
pymetno
|
||||||
|
pyownet
|
||||||
|
uiprotect
|
||||||
];
|
];
|
||||||
use_x_forwarded_for = true;
|
extraComponents = [ "isal" ];
|
||||||
trusted_proxies = "172.18.0.0/24";
|
};
|
||||||
};
|
esphome = {
|
||||||
homeassistant = {
|
enable = true;
|
||||||
time_zone = "America/New_York";
|
openFirewall = true;
|
||||||
unit_system = "imperial";
|
address = "192.168.90.40";
|
||||||
temperature_unit = "F";
|
|
||||||
};
|
|
||||||
assist_pipeline = { };
|
|
||||||
backup = { };
|
|
||||||
bluetooth = { };
|
|
||||||
config = { };
|
|
||||||
dhcp = { };
|
|
||||||
energy = { };
|
|
||||||
history = { };
|
|
||||||
homeassistant_alerts = { };
|
|
||||||
image_upload = { };
|
|
||||||
logbook = { };
|
|
||||||
media_source = { };
|
|
||||||
mobile_app = { };
|
|
||||||
ssdp = { };
|
|
||||||
sun = { };
|
|
||||||
webhook = { };
|
|
||||||
zeroconf = { };
|
|
||||||
automation = "!include automations.yaml";
|
|
||||||
script = "!include scripts.yaml";
|
|
||||||
scene = "!include scenes.yaml";
|
|
||||||
group = "!include groups.yaml";
|
|
||||||
};
|
};
|
||||||
extraPackages =
|
|
||||||
python3Packages: with python3Packages; [
|
|
||||||
aioesphomeapi
|
|
||||||
aiounifi
|
|
||||||
bleak-esphome
|
|
||||||
esphome-dashboard-api
|
|
||||||
gtts
|
|
||||||
psycopg2
|
|
||||||
pymetno
|
|
||||||
pyownet
|
|
||||||
uiprotect
|
|
||||||
];
|
|
||||||
extraComponents = [ "isal" ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user