From 485807c22d20db9684612333cfda0b1fa63cf45a Mon Sep 17 00:00:00 2001 From: makefu Date: Sat, 15 May 2021 13:13:13 +0200 Subject: ma home/ham: add signal-rest, update automations --- .../ham/automation/pflanzen_giessen_erinnerung.nix | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 makefu/2configs/home/ham/automation/pflanzen_giessen_erinnerung.nix (limited to 'makefu/2configs/home/ham/automation/pflanzen_giessen_erinnerung.nix') 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 00000000..3aaa57bd --- /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.") + ]; + } + ]; +} -- cgit v1.2.3