stuff
This commit is contained in:
parent
1ac7e0c6e1
commit
6200ef7e76
5 changed files with 115 additions and 123 deletions
|
|
@ -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";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue