summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/ham/automation/firetv_restart.nix
blob: 779092c73704615b8354b816e062de6ee5ff37da (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
25
26
[
  {
    alias = "Nightly reboot of firetv";
    trigger = {
      platform = "time";
      at = "03:00:00";
    };
    action = [
      {
        service = "androidtv.adb_command";
        data = {
          entity_id = "media_player.firetv_stick";
          command = "reboot";
        };
      }
      { delay.minutes = 2; }
      {
        service = "media_player.select_source";
        data = {
          entity_id = "media_player.firetv_stick";
          source = "com.amazon.bueller.music";
        };
      }
    ];
  }
]