diff options
author | makefu <github@syntax-fehler.de> | 2019-07-04 11:23:41 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2019-07-04 11:23:41 +0200 |
commit | 158f65a97eaac7020d3020320687aaf84ae4f6de (patch) | |
tree | 533f7655c3e3d20a56e01ef7edddc46f3bea3857 /makefu/2configs/bureautomation | |
parent | 9d50bfa569e072001a97d22e6c4375b264e5cff7 (diff) |
ma bureautomation: remove buzzing
Diffstat (limited to 'makefu/2configs/bureautomation')
-rw-r--r-- | makefu/2configs/bureautomation/combination/10h_timers.nix | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/makefu/2configs/bureautomation/combination/10h_timers.nix b/makefu/2configs/bureautomation/combination/10h_timers.nix index 4bbae0dda..79a608cd7 100644 --- a/makefu/2configs/bureautomation/combination/10h_timers.nix +++ b/makefu/2configs/bureautomation/combination/10h_timers.nix @@ -57,42 +57,12 @@ let "Wer wohnt in der Ananas ganz tief im Meer? ${name} Schwammkopf!", "Arbeit ist Freizeit! Wachstum ist Fortschritt! Sicherheit ist Freiheit!", "Willkommen ${name}"] | random }}'' ; - patterns = [ - [1000 500 250] # TODO: maybe even play a short audio announcement? - [150 150 150] - [255 255] - [500 500 100] - [100 1000 100] - # [125 250 500] - ]; tmr_10h = name: { "${name}_10h" = { name = "${name} 10h Timer"; duration = "10:00:00"; }; }; - multi_flash = { entity, delays ? [ 500 ], alias ? "${entity}_multi_flash_${toString (lib.length delays)}" }: - { - inherit alias; - sequence = lib.flatten (builtins.map (delay: [ - { service = "homeassistant.turn_on"; - data.entity_id = entity; - } - { delay.milliseconds = delay; } - { service = "homeassistant.turn_off"; - data.entity_id = entity; - } - { delay.milliseconds = delay; } - ] - ) delays); - }; - - buzz_user = name: delays: { "buzz_${name}" = (multi_flash { - entity = "light.redbutton_buzzer"; - inherit delays; - alias = "Red Button Buzz ${name}"; - }); - }; zu_lange_user = name: { "zu_lange_${name}" = { @@ -210,7 +180,6 @@ in (map tmr_10h persons); automation = (lib.flatten (map automation_10h persons)); script = lib.fold lib.recursiveUpdate {} ( - (map (ab: buzz_user ab.fst ab.snd) (lib.zipLists persons patterns)) ++ (map (p: announce_user p) persons) ++ (map (p: zu_lange_user p) persons) ); |