mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-09 10:14:41 +00:00
Update coming/leaving routines
This commit is contained in:
@@ -3,28 +3,6 @@ layout: horizontal
|
||||
max_columns: 2
|
||||
cards:
|
||||
# Column 1
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
entity: input_select.light_color_mode
|
||||
name: PRESS ME
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: input_select.select_option
|
||||
service_data:
|
||||
entity_id: input_select.light_color_mode
|
||||
option: "blue"
|
||||
- type: custom:button-card
|
||||
name: back to normal pls
|
||||
entity: input_select.light_color_mode
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: input_select.select_option
|
||||
service_data:
|
||||
entity_id: input_select.light_color_mode
|
||||
option: "normal"
|
||||
|
||||
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
|
||||
@@ -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