summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/glados/automation/hass-restart.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-12-01 23:20:31 +0100
committermakefu <github@syntax-fehler.de>2020-12-01 23:20:31 +0100
commitc370c87da36bc256cfbc59bb2b0b9ffa1d457168 (patch)
tree43b5ef43963f9cedcb7273d7fb1c4dc01afffb62 /krebs/2configs/shack/glados/automation/hass-restart.nix
parent9f2c161de0f7e807e66dd114f913db6acecd666b (diff)
shack/glados: utilize mergeable home-assistant config
Diffstat (limited to 'krebs/2configs/shack/glados/automation/hass-restart.nix')
-rw-r--r--krebs/2configs/shack/glados/automation/hass-restart.nix39
1 files changed, 21 insertions, 18 deletions
diff --git a/krebs/2configs/shack/glados/automation/hass-restart.nix b/krebs/2configs/shack/glados/automation/hass-restart.nix
index 1b380204d..5f61e19f1 100644
--- a/krebs/2configs/shack/glados/automation/hass-restart.nix
+++ b/krebs/2configs/shack/glados/automation/hass-restart.nix
@@ -1,21 +1,24 @@
# needs:
# light.fablab_led
-[
- { alias = "State on HA start-up";
- trigger = {
- platform = "homeassistant";
- event = "start";
- };
- # trigger good/bad air
- action = [
- { service = "light.turn_on";
- data = {
- entity_id = "light.fablab_led";
- effect = "Rainbow";
- color_name = "purple";
- };
- }
- ];
- }
-]
+{
+ services.home-assistant.config.automation =
+ [
+ { alias = "State on HA start-up";
+ trigger = {
+ platform = "homeassistant";
+ event = "start";
+ };
+ # trigger good/bad air
+ action = [
+ { service = "light.turn_on";
+ data = {
+ entity_id = "light.fablab_led";
+ effect = "Rainbow";
+ color_name = "purple";
+ };
+ }
+ ];
+ }
+ ];
+}