ma ham: update home-assistant config
This commit is contained in:
parent
f28d580a4f
commit
c325d7d6cf
@ -1,4 +1,13 @@
|
|||||||
[
|
let
|
||||||
|
cmd = command: {
|
||||||
|
service = "androidtv.adb_command";
|
||||||
|
data = {
|
||||||
|
entity_id = "media_player.firetv_stick";
|
||||||
|
inherit command;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
sec = seconds: { delay.seconds = seconds; };
|
||||||
|
in [
|
||||||
{
|
{
|
||||||
alias = "Nightly reboot of firetv";
|
alias = "Nightly reboot of firetv";
|
||||||
trigger = {
|
trigger = {
|
||||||
@ -6,21 +15,19 @@
|
|||||||
at = "03:00:00";
|
at = "03:00:00";
|
||||||
};
|
};
|
||||||
action = [
|
action = [
|
||||||
{
|
(cmd "reboot")
|
||||||
service = "androidtv.adb_command";
|
(sec 90) # go to my music because apparently select_source does not seem to always work
|
||||||
data = {
|
(cmd "HOME")
|
||||||
entity_id = "media_player.firetv_stick";
|
(sec 2)
|
||||||
command = "reboot";
|
(cmd "DOWN")
|
||||||
};
|
(sec 2)
|
||||||
}
|
(cmd "DOWN")
|
||||||
{ delay.minutes = 2; }
|
(sec 2)
|
||||||
{
|
(cmd "ENTER")
|
||||||
service = "media_player.select_source";
|
(sec 4)
|
||||||
data = {
|
(cmd "RIGHT")
|
||||||
entity_id = "media_player.firetv_stick";
|
(sec 2)
|
||||||
source = "com.amazon.bueller.music";
|
(cmd "RIGHT")
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -13,6 +13,7 @@ let
|
|||||||
zigbee = import ./multi/zigbee2mqtt.nix;
|
zigbee = import ./multi/zigbee2mqtt.nix;
|
||||||
#flurlicht = import ./multi/flurlicht.nix;
|
#flurlicht = import ./multi/flurlicht.nix;
|
||||||
kurzzeitwecker = import ./multi/kurzzeitwecker.nix;
|
kurzzeitwecker = import ./multi/kurzzeitwecker.nix;
|
||||||
|
firetv_restart = import ./multi/firetv_restart.nix;
|
||||||
# switch
|
# switch
|
||||||
# automation
|
# automation
|
||||||
# binary_sensor
|
# binary_sensor
|
||||||
@ -45,6 +46,9 @@ in {
|
|||||||
conversation = {};
|
conversation = {};
|
||||||
history = {};
|
history = {};
|
||||||
logbook = {};
|
logbook = {};
|
||||||
|
logger = {
|
||||||
|
default = "info";
|
||||||
|
};
|
||||||
tts = [
|
tts = [
|
||||||
{ platform = "google_translate";
|
{ platform = "google_translate";
|
||||||
language = "de";
|
language = "de";
|
||||||
@ -132,12 +136,14 @@ in {
|
|||||||
# light = flurlicht.light;
|
# light = flurlicht.light;
|
||||||
http = { };
|
http = { };
|
||||||
switch = [];
|
switch = [];
|
||||||
automation =
|
automation = []
|
||||||
(import ./automation/firetv_restart.nix)
|
++ (import ./automation/firetv_restart.nix)
|
||||||
kurzzeitwecker.automation
|
++ kurzzeitwecker.automation
|
||||||
#++ flurlicht.automation
|
#++ flurlicht.automation
|
||||||
++ zigbee.automation;
|
++ zigbee.automation;
|
||||||
script = kurzzeitwecker.script; # dict
|
script =
|
||||||
|
{ }
|
||||||
|
// kurzzeitwecker.script; # dict
|
||||||
};
|
};
|
||||||
enable = true;
|
enable = true;
|
||||||
configDir = hassdir;
|
configDir = hassdir;
|
||||||
|
Loading…
Reference in New Issue
Block a user