refactor folder structure
This commit is contained in:
parent
da669efee2
commit
df50e70f3e
175 changed files with 7 additions and 3760 deletions
20
hosts/fw/modules/home-assistant/scene-switch.nix
Normal file
20
hosts/fw/modules/home-assistant/scene-switch.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
services.home-assistant.config = {
|
||||
"automation scene_switch" = {
|
||||
alias = "switch scene";
|
||||
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