mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-07 10:18:44 +00:00
Add names in presence detection
This commit is contained in:
@@ -6,6 +6,7 @@ blueprint:
|
||||
domain: automation
|
||||
input:
|
||||
person:
|
||||
name:
|
||||
input_boolean:
|
||||
|
||||
trigger:
|
||||
@@ -18,17 +19,22 @@ condition:
|
||||
entity_id: !input input_boolean
|
||||
state: "off"
|
||||
|
||||
variables:
|
||||
name: !input name
|
||||
|
||||
action:
|
||||
- service: notify.telegram
|
||||
data:
|
||||
data_template:
|
||||
title: "🏠 *Presence Module · Arrival Detection*"
|
||||
message: "Device marked as home. Waiting for door to open!"
|
||||
message: >-
|
||||
{{ name + "\'s device marked as home. Waiting for door to open!" }}
|
||||
- wait_template: "{{ is_state('binary_sensor.front_door', 'on') }}"
|
||||
continue_on_timeout: false
|
||||
timeout: 00:15:00
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: !input input_boolean
|
||||
- service: notify.telegram
|
||||
data:
|
||||
data_template:
|
||||
title: "🏠 *Presence Module · Arrival Detection*"
|
||||
message: "✅ Hey, I've marked you as home now!"
|
||||
message: >-
|
||||
{{ "✅ Hey, I've marked " + name + " as home now!" }}
|
||||
|
||||
Reference in New Issue
Block a user