mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-15 17:12:59 +00:00
Player 2 presence
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
# When someone's state changesd to "home", wait for 15 minutes for the door to be opened,
|
||||
# and then mark me as home
|
||||
|
||||
blueprint:
|
||||
name: Person arrival detection
|
||||
domain: automation
|
||||
input:
|
||||
person:
|
||||
input_boolean:
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: !input person
|
||||
to: "home"
|
||||
|
||||
condition:
|
||||
condition: state
|
||||
entity_id: !input input_boolean
|
||||
state: "off"
|
||||
|
||||
action:
|
||||
- service: notify.telegram
|
||||
data:
|
||||
title: "🏠 *Presence Module · Arrival Detection*"
|
||||
message: "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:
|
||||
title: "🏠 *Presence Module · Arrival Detection*"
|
||||
message: "✅ Hey, I've marked you as home now!"
|
||||
Reference in New Issue
Block a user