summaryrefslogtreecommitdiffstats
path: root/makefu
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2021-02-12 13:08:45 +0100
committermakefu <github@syntax-fehler.de>2021-02-12 13:08:45 +0100
commitdc7dca887a082666b3e4c7592239131181bc42c1 (patch)
tree9e9be85e5e444febef13f9f6674083c9c897d852 /makefu
parent9478b71252bcd7378bffc4b5c1922c1e7a3e79bf (diff)
ma ham/moodlight: turn on cubes in blink mode
Diffstat (limited to 'makefu')
-rw-r--r--makefu/2configs/ham/automation/moodlight.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/makefu/2configs/ham/automation/moodlight.nix b/makefu/2configs/ham/automation/moodlight.nix
index df229f16b..d0e336851 100644
--- a/makefu/2configs/ham/automation/moodlight.nix
+++ b/makefu/2configs/ham/automation/moodlight.nix
@@ -5,14 +5,19 @@ let
arbeitszimmer = "light.box_led_status";
final_off = "01:00";
- turn_on = entity_id: at:
+ turn_on = entity_id: at: extra:
{ alias = "Turn on ${entity_id} at ${at}";
trigger = [
{ platform = "time"; inherit at; }
];
action =
[
- { service = "light.turn_on"; inherit entity_id; }
+ ({ service = "light.turn_on";
+ data = {
+ inherit entity_id;
+
+ } // extra;
+ })
];
};
in
@@ -21,8 +26,8 @@ in
{
automation =
[
- (turn_on wohnzimmer "17:30")
- (turn_on arbeitszimmer "9:00")
+ # (turn_on wohnzimmer "17:30")
+ (turn_on arbeitszimmer "9:00" { effect = "Slow Random Twinkle";})
{ alias = "Always turn off the lights at ${final_off}";
trigger = [