diff options
author | lassulus <lassulus@lassul.us> | 2021-05-15 14:26:42 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-05-15 14:26:42 +0200 |
commit | 35aa5ac31dc35f2e14bfb3222ac33381a640ad89 (patch) | |
tree | 6a2babb27c771b7e16dca4c4a302fd6e10054e38 /makefu/2configs/home/ham/automation/pflanzen_giessen_erinnerung.nix | |
parent | 7e018afe85af22916f070a242d9d1667791e3457 (diff) | |
parent | 5bf33d683cbf6f43599ae97aa1c56b1fd0d7d3f3 (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/home/ham/automation/pflanzen_giessen_erinnerung.nix')
-rw-r--r-- | makefu/2configs/home/ham/automation/pflanzen_giessen_erinnerung.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/makefu/2configs/home/ham/automation/pflanzen_giessen_erinnerung.nix b/makefu/2configs/home/ham/automation/pflanzen_giessen_erinnerung.nix new file mode 100644 index 000000000..3aaa57bd6 --- /dev/null +++ b/makefu/2configs/home/ham/automation/pflanzen_giessen_erinnerung.nix @@ -0,0 +1,39 @@ +let + notify_felix = message: { + service = "notify.signal_felix"; + data.message = message; + }; + notify_home = message: { + service = "notify.signal_home"; + data.message = message; + }; +in +{ + services.home-assistant.config.automation = + [ + { + alias = "Pflanzen Giessen Erinnerung Daily"; + trigger = { + platform = "time"; + at = "12:15:00"; + }; + action = [ + (notify_felix "Es ist Mittagszeit und du kannst ruhig einmal alle Blumen im Zimmer giessen") + ]; + } + { + alias = "Pflanzen Giessen Erinnerung Weekly"; + trigger = { + platform = "time"; + at = "12:15:00"; + }; + condition = { + condition = "time"; + weekday = [ "sat" ]; + }; + action = [ + (notify_home "Es ist Wochenende und die Pflanzen würden sich über ein bisschen Wasser freuen.") + ]; + } + ]; +} |