update
This commit is contained in:
parent
a18e244ba5
commit
05a9d96d4e
26 changed files with 861 additions and 182 deletions
30
server/home-assistant/bathroom.nix
Normal file
30
server/home-assistant/bathroom.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ ... }:
|
||||
{
|
||||
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