summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/glados/multi/rollos.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-12-01 23:20:31 +0100
committermakefu <github@syntax-fehler.de>2020-12-01 23:20:31 +0100
commitc370c87da36bc256cfbc59bb2b0b9ffa1d457168 (patch)
tree43b5ef43963f9cedcb7273d7fb1c4dc01afffb62 /krebs/2configs/shack/glados/multi/rollos.nix
parent9f2c161de0f7e807e66dd114f913db6acecd666b (diff)
shack/glados: utilize mergeable home-assistant config
Diffstat (limited to 'krebs/2configs/shack/glados/multi/rollos.nix')
-rw-r--r--krebs/2configs/shack/glados/multi/rollos.nix77
1 files changed, 40 insertions, 37 deletions
diff --git a/krebs/2configs/shack/glados/multi/rollos.nix b/krebs/2configs/shack/glados/multi/rollos.nix
index 4e6494936..29525ad82 100644
--- a/krebs/2configs/shack/glados/multi/rollos.nix
+++ b/krebs/2configs/shack/glados/multi/rollos.nix
@@ -11,46 +11,49 @@ let
];
in
{
- automation =
- [
- { alias = "Rollos fahren Runter";
- trigger = [
- {
- platform = "numeric_state";
- entity_id = tempsensor;
- above = 25;
- for = "00:30:00";
- }
- ];
- condition =
- [
+ services.home-assistant.config =
+ {
+ automation =
+ [
+ { alias = "Rollos fahren Runter";
+ trigger = [
{
- condition = "state";
- entity_id = "sun.sun";
- state = "above_horizon";
- }
- ];
- action =
- [
- { service = "cover.close_cover";
- entity_id = all_covers;
+ platform = "numeric_state";
+ entity_id = tempsensor;
+ above = 25;
+ for = "00:30:00";
}
];
- }
- { alias = "Rollos fahren Hoch";
- trigger = [
- {
- platform = "sun";
- event = "sunset";
- }
- ];
- condition = [ ];
- action =
- [
- { service = "cover.open_cover";
- entity_id = all_covers;
+ condition =
+ [
+ {
+ condition = "state";
+ entity_id = "sun.sun";
+ state = "above_horizon";
+ }
+ ];
+ action =
+ [
+ { service = "cover.close_cover";
+ entity_id = all_covers;
+ }
+ ];
+ }
+ { alias = "Rollos fahren Hoch";
+ trigger = [
+ {
+ platform = "sun";
+ event = "sunset";
}
];
- }
- ];
+ condition = [ ];
+ action =
+ [
+ { service = "cover.open_cover";
+ entity_id = all_covers;
+ }
+ ];
+ }
+ ];
+ };
}