summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/ham/automation
diff options
context:
space:
mode:
Diffstat (limited to 'makefu/2configs/ham/automation')
-rw-r--r--makefu/2configs/ham/automation/firetv_restart.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/makefu/2configs/ham/automation/firetv_restart.nix b/makefu/2configs/ham/automation/firetv_restart.nix
new file mode 100644
index 000000000..779092c73
--- /dev/null
+++ b/makefu/2configs/ham/automation/firetv_restart.nix
@@ -0,0 +1,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";
+ };
+ }
+ ];
+ }
+]