stuff
This commit is contained in:
parent
1ac7e0c6e1
commit
6200ef7e76
5 changed files with 115 additions and 123 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
{ ... }:
|
{ lib, config, ... }:
|
||||||
{
|
{
|
||||||
|
config = lib.mkIf config.server.home-assistant.enable {
|
||||||
services.home-assistant.config = {
|
services.home-assistant.config = {
|
||||||
"automation" = [
|
"automation" = [
|
||||||
{
|
{
|
||||||
|
|
@ -27,4 +28,5 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
{...}: {
|
{ lib, config, ... }:
|
||||||
|
{
|
||||||
|
config = lib.mkIf config.server.home-assistant.enable {
|
||||||
services.home-assistant.config.automation = [
|
services.home-assistant.config.automation = [
|
||||||
{
|
{
|
||||||
description = "Pause Heating when Window opens";
|
description = "Pause Heating when Window opens";
|
||||||
|
|
@ -13,4 +15,5 @@
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
{...}: {
|
{ lib, config, ... }:
|
||||||
|
{
|
||||||
|
config = lib.mkIf config.server.home-assistant.enable {
|
||||||
services.home-assistant.config.automation = [
|
services.home-assistant.config.automation = [
|
||||||
{
|
{
|
||||||
alias = "Wake Up Light";
|
alias = "Wake Up Light";
|
||||||
|
|
@ -7,11 +9,11 @@
|
||||||
platform = "time";
|
platform = "time";
|
||||||
at = "sensor.lilith_phone_next_alarm";
|
at = "sensor.lilith_phone_next_alarm";
|
||||||
};
|
};
|
||||||
condition = [];
|
condition = [ ];
|
||||||
action = [
|
action = [
|
||||||
{
|
{
|
||||||
action = "light.turn_on";
|
action = "light.turn_on";
|
||||||
metadata = {};
|
metadata = { };
|
||||||
data = {
|
data = {
|
||||||
transition = 3;
|
transition = 3;
|
||||||
kelvin = 3000;
|
kelvin = 3000;
|
||||||
|
|
@ -38,12 +40,12 @@
|
||||||
seconds = 0;
|
seconds = 0;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
condition = [];
|
condition = [ ];
|
||||||
action = [
|
action = [
|
||||||
{
|
{
|
||||||
action = "light.turn_off";
|
action = "light.turn_off";
|
||||||
metadata = {};
|
metadata = { };
|
||||||
data = {};
|
data = { };
|
||||||
target = {
|
target = {
|
||||||
area_id = "bedroom";
|
area_id = "bedroom";
|
||||||
};
|
};
|
||||||
|
|
@ -52,4 +54,5 @@
|
||||||
mode = "single";
|
mode = "single";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
{ sops, config, ...}: {
|
{ lib, config, ... }:
|
||||||
|
{
|
||||||
|
config = lib.mkIf config.server.home-assistant.enable {
|
||||||
|
|
||||||
sops.secrets."home-assistant/mosquitto/hass" = {};
|
sops.secrets."home-assistant/mosquitto/hass" = { };
|
||||||
|
|
||||||
services.mosquitto = {
|
services.mosquitto = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -17,4 +19,5 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 1883 ];
|
networking.firewall.allowedTCPPorts = [ 1883 ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
{...}: {
|
|
||||||
services.wyoming = {
|
|
||||||
piper.servers = {
|
|
||||||
alba = {
|
|
||||||
enable=true;
|
|
||||||
uri="tcp://localhost:12001";
|
|
||||||
voice="en_GB-alba-medium";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
faster-whisper.servers = {
|
|
||||||
tiny = {
|
|
||||||
enable=true;
|
|
||||||
uri="tcp://localhost:12002";
|
|
||||||
model="tiny-int8";
|
|
||||||
language="en";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue