2021-05-15 11:13:13 +00:00
|
|
|
let
|
|
|
|
notify_felix = message: {
|
|
|
|
service = "notify.signal_felix";
|
|
|
|
data.message = message;
|
|
|
|
};
|
|
|
|
notify_home = message: {
|
|
|
|
service = "notify.signal_home";
|
2021-06-05 10:47:16 +00:00
|
|
|
data.message_template = message;
|
2021-05-15 11:13:13 +00:00
|
|
|
};
|
|
|
|
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 = [
|
2021-06-05 10:47:16 +00:00
|
|
|
(notify_home
|
|
|
|
''Es ist Wochenende und die Pflanzen würden sich über ein bisschen Wasser freuen.
|
|
|
|
Die Wettervorhersage: {{sensor.dark_sky_summary}} mit einer Regenwahrscheinlichkeit von {{states.sensor.dark_sky_precip_probability.state}}%.
|
|
|
|
Aktuell sind es {{states.sensor.dark_sky_temperature.state}}°C bei {{states.sensor.dark_sky_humidity.state}}% Luftfeuchte'')
|
2021-05-15 11:13:13 +00:00
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|