diff options
author | makefu <github@syntax-fehler.de> | 2020-03-03 21:12:51 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2020-03-03 21:13:20 +0100 |
commit | 2563c59e73dfe9df7b98d5b184785f3a5936ca17 (patch) | |
tree | dd8b052a25417681ea989728df28b4913b90ba35 /makefu/2configs/ham/automation | |
parent | 843ee70248752c7b3fc656807bd12b6e6f21f0e1 (diff) |
ma ham: use home-assistant from unstable, enable androidtv support
Diffstat (limited to 'makefu/2configs/ham/automation')
-rw-r--r-- | makefu/2configs/ham/automation/firetv_restart.nix | 26 |
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"; + }; + } + ]; + } +] |