Home Assistant: Difference between revisions
→Automations: - Added another 2 examples for some more Trigger types (time based, duration based) |
→More Declarative Nix Configuration Examples: Added alarm control panel example |
||
| Line 396: | Line 396: | ||
}; | }; | ||
}; | }; | ||
</syntaxhighlight> | |||
=== Alarm Control Panel === | |||
You can declaratively define your own Alarm Control Panel which will appear on the GUI and have entities available to be changed via declaratively created automations. See https://www.home-assistant.io/integrations/manual/ for more documentation. <syntaxhighlight lang="nix"> | |||
config = { | |||
default_config = {}; | |||
homeassistant = { | |||
# On same level as automations | |||
"alarm_control_panel" = [ | |||
{ | |||
platform = "manual"; | |||
name = "Home Alarm"; | |||
code_arm_required = "false"; | |||
arming_time = "30"; | |||
delay_time = "20"; | |||
trigger_time = "4"; | |||
disarmed = { | |||
trigger_time = "0"; | |||
}; | |||
armed_home = { | |||
arming_time = "0"; | |||
delay_time = "0"; | |||
}; | |||
armed_night = { | |||
arming_time = "0"; | |||
delay_time = "0"; | |||
}; | |||
} | |||
]; | |||
</syntaxhighlight> | </syntaxhighlight> | ||