add home-assistant nix configuration
This commit is contained in:
parent
bdca649697
commit
027be96f9c
22 changed files with 1450 additions and 60 deletions
21
hosts/fw.cloonar.com/modules/home-assistant/scene-switch.nix
Normal file
21
hosts/fw.cloonar.com/modules/home-assistant/scene-switch.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
services.home-assistant.config = {
|
||||
"automation scene_switch" = {
|
||||
alias = "switch scene";
|
||||
hide_entity = true;
|
||||
trigger = {
|
||||
platform = "event";
|
||||
event_type = "button_pressed";
|
||||
event_data = {
|
||||
id = [ 254 242 234 134 ];
|
||||
};
|
||||
};
|
||||
action = {
|
||||
service_template = "switch.turn_on";
|
||||
data_template = {
|
||||
entity_id = "switch.computer";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue