This commit is contained in:
Lilith 2026-01-14 01:41:00 +01:00
parent 1ac7e0c6e1
commit 6200ef7e76
No known key found for this signature in database
GPG key ID: 272C807BD91F8446
5 changed files with 115 additions and 123 deletions

View file

@ -1,30 +1,32 @@
{ ... }:
{ lib, config, ... }:
{
services.home-assistant.config = {
"automation" = [
{
alias = "Towel Warmer Timer";
trigger = {
type = "turned_on";
device_id = "bf77f1611d1d9959e967b4e35ba5234c";
entity_id = "b674ce8cc70a4d0c1bfba7c6946ab3e4";
domain = "switch";
trigger = "device";
for = {
hours = 0;
minutes = 60;
seconds = 0;
};
};
action = [
{
type = "turn_off";
config = lib.mkIf config.server.home-assistant.enable {
services.home-assistant.config = {
"automation" = [
{
alias = "Towel Warmer Timer";
trigger = {
type = "turned_on";
device_id = "bf77f1611d1d9959e967b4e35ba5234c";
entity_id = "b674ce8cc70a4d0c1bfba7c6946ab3e4";
domain = "switch";
}
];
}
];
trigger = "device";
for = {
hours = 0;
minutes = 60;
seconds = 0;
};
};
action = [
{
type = "turn_off";
device_id = "bf77f1611d1d9959e967b4e35ba5234c";
entity_id = "b674ce8cc70a4d0c1bfba7c6946ab3e4";
domain = "switch";
}
];
}
];
};
};
}