Presence notifications on telegram

This commit is contained in:
2022-05-31 11:16:46 +03:00
parent d8fc55e471
commit 3c37d77cc7
2 changed files with 11 additions and 1 deletions
+10
View File
@@ -118,9 +118,14 @@ automation:
entity_id: person.georgi
from: "home"
to: "not_home"
for: "00:01:00"
action:
- service: input_boolean.turn_off
entity_id: input_boolean.georgi_home
- service: notify.telegram
data:
title: "🏠 *Presence Module · Leaving Home*"
message: "I notice Georgi has left. Marking as away."
- alias: Presence · Player 2 leaving
trigger:
@@ -128,9 +133,14 @@ automation:
entity_id: person.player_2
from: "home"
to: "not_home"
for: "00:01:00"
action:
- service: input_boolean.turn_off
entity_id: input_boolean.player_2_home
- service: notify.telegram
data:
title: "🏠 *Presence Module · Leaving Home*"
message: "I notice Maya has left. Marking as away."
- alias: Presence · Leaving home
trigger:
+1 -1
View File
@@ -32,7 +32,7 @@ script:
- service: notify.telegram
data:
title: "🏠 *Presence Module · Leaving Home*"
message: "I see you're leaving. Goodbye!"
message: "I see no one is home. Entering away mode."
- service: switch.turn_on
entity_id: switch.tapo_bedroom