diff options
author | lassulus <lassulus@lassul.us> | 2020-12-30 09:13:07 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2020-12-30 09:13:07 +0100 |
commit | e0bb61d3d3c2e053ab8c8c22f9cdded409ecece7 (patch) | |
tree | cb00a8eeead2d80cb05bc561005b8e9cf6edfb6a /krebs/2configs/shack/glados/automation/hass-restart.nix | |
parent | ba47b90d7326c262f3e3327781a16fd8400df062 (diff) | |
parent | c370c87da36bc256cfbc59bb2b0b9ffa1d457168 (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'krebs/2configs/shack/glados/automation/hass-restart.nix')
-rw-r--r-- | krebs/2configs/shack/glados/automation/hass-restart.nix | 39 |
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"; + }; + } + ]; + } + ]; +} |