summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/glados/automation/hass-restart.nix
blob: 5f61e19f1ae48a299b9f99963f2257b6f51b0d19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# needs:
#  light.fablab_led
{
  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";
          };
        }
      ];
    }
  ];
}