summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home/ham/multi/kurzzeitwecker.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2021-05-15 13:13:13 +0200
committermakefu <github@syntax-fehler.de>2021-05-15 13:16:52 +0200
commit485807c22d20db9684612333cfda0b1fa63cf45a (patch)
treeba3870dcf3e1c4cfef7d6868683a459e6717dbe3 /makefu/2configs/home/ham/multi/kurzzeitwecker.nix
parent7f515fd150eb7672f272ee61f581ae7e0ff76e86 (diff)
ma home/ham: add signal-rest, update automations
Diffstat (limited to 'makefu/2configs/home/ham/multi/kurzzeitwecker.nix')
-rw-r--r--makefu/2configs/home/ham/multi/kurzzeitwecker.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/makefu/2configs/home/ham/multi/kurzzeitwecker.nix b/makefu/2configs/home/ham/multi/kurzzeitwecker.nix
index bd81465cb..a0748e205 100644
--- a/makefu/2configs/home/ham/multi/kurzzeitwecker.nix
+++ b/makefu/2configs/home/ham/multi/kurzzeitwecker.nix
@@ -5,9 +5,10 @@
# Needs:
# sensor.zigbee_btn1_click
-# notify.telegrambot
+# notify.signal_home
let
button = "sensor.zigbee_btn2_click";
+ notify = "notify.signal_home";
in
{
services.home-assistant.config = {
@@ -56,7 +57,7 @@ in
data.duration = "00:05:00";
}
{
- service = "notify.telegrambot";
+ service = notify;
data.message = "Timer gestartet {{state_attr('timer.kurzzeitwecker', 'remaining') }}, verbleibend ";
}
];
@@ -79,7 +80,7 @@ in
entity_id = "script.add_5_minutes_to_kurzzeitwecker";
}
{
- service = "notify.telegrambot";
+ service = notify;
data.message = ''Timer um 5 minuten verlängert, {{ state_attr('timer.kurzzeitwecker', 'remaining') | truncate(9,True," ") }} verbleibend '';
}
];
@@ -111,7 +112,7 @@ in
entity_id = "timer.kurzzeitwecker";
}
{
- service = "notify.telegrambot";
+ service = notify;
data.message = "Timer gestoppt, abgebrochen";
}
];
@@ -125,7 +126,7 @@ in
};
action = [
{
- service = "notify.telegrambot";
+ service = notify;
data.message = "Timer beendet";
}
];