mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-09 23:02:59 +00:00
Update coming/leaving routines
This commit is contained in:
@@ -20,3 +20,25 @@ automation:
|
||||
entity_id: input_select.hallway_dashboard_mode
|
||||
data:
|
||||
option: "Home"
|
||||
|
||||
- alias: Hallway tablet · Leaving · Goodbye after door opened
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_select.hallway_dashboard_mode
|
||||
to: "Leaving"
|
||||
action:
|
||||
- service: script.say
|
||||
data:
|
||||
message: "Waiting for front door to open. Have a great time!"
|
||||
- wait_for_trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.front_door
|
||||
to: "on"
|
||||
timeout:
|
||||
minutes: 5
|
||||
continue_on_timeout: false
|
||||
- service: script.say
|
||||
data:
|
||||
message: "Goodbye!"
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.georgi_home
|
||||
|
||||
@@ -92,9 +92,9 @@ automation:
|
||||
# When my state changes to "home", wait for 15 minutes for the door to be opened, and then mark me as home
|
||||
- alias: Presence · Arrival detection
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: person.georgi
|
||||
to: "home"
|
||||
- platform: state
|
||||
entity_id: person.georgi
|
||||
to: "home"
|
||||
condition:
|
||||
condition: state
|
||||
entity_id: input_boolean.georgi_home
|
||||
@@ -116,16 +116,15 @@ automation:
|
||||
|
||||
- alias: Presence · Leaving home
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: person.georgi
|
||||
from: "home"
|
||||
to: "not_home"
|
||||
- platform: state
|
||||
entity_id: person.georgi
|
||||
from: "home"
|
||||
to: "not_home"
|
||||
- platform: state
|
||||
entity_id: input_boolean.georgi_home
|
||||
to: "off"
|
||||
action:
|
||||
- service: script.routine_leaving_home
|
||||
- service: notify.telegram
|
||||
data:
|
||||
title: "🏠 *Presence Module · Leaving Home*"
|
||||
message: "I see you're leaving. Goodbye!"
|
||||
|
||||
- alias: Presence · Coming home
|
||||
trigger:
|
||||
|
||||
@@ -14,6 +14,7 @@ script:
|
||||
- light.browser_kitchen
|
||||
- light.browser_hallway
|
||||
- light.living_room_ambient
|
||||
- light.bedside
|
||||
data:
|
||||
brightness_pct: 100
|
||||
- service: script.bed_led_on
|
||||
|
||||
@@ -22,3 +22,8 @@ script:
|
||||
entity_id: input_select.hallway_dashboard_mode
|
||||
data:
|
||||
option: "Coming Home"
|
||||
|
||||
- service: notify.telegram
|
||||
data:
|
||||
title: "🏠 *Presence Module · Leaving Home*"
|
||||
message: "I see you're leaving. Goodbye!"
|
||||
|
||||
Reference in New Issue
Block a user