mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-06 18:08:45 +00:00
Update coming/leaving routines
This commit is contained in:
@@ -3,28 +3,6 @@ layout: horizontal
|
|||||||
max_columns: 2
|
max_columns: 2
|
||||||
cards:
|
cards:
|
||||||
# Column 1
|
# 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
|
- type: vertical-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
|
|||||||
@@ -20,3 +20,25 @@ automation:
|
|||||||
entity_id: input_select.hallway_dashboard_mode
|
entity_id: input_select.hallway_dashboard_mode
|
||||||
data:
|
data:
|
||||||
option: "Home"
|
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,7 +92,7 @@ automation:
|
|||||||
# When my state changes to "home", wait for 15 minutes for the door to be opened, and then mark me as home
|
# 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
|
- alias: Presence · Arrival detection
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
- platform: state
|
||||||
entity_id: person.georgi
|
entity_id: person.georgi
|
||||||
to: "home"
|
to: "home"
|
||||||
condition:
|
condition:
|
||||||
@@ -116,16 +116,15 @@ automation:
|
|||||||
|
|
||||||
- alias: Presence · Leaving home
|
- alias: Presence · Leaving home
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
- platform: state
|
||||||
entity_id: person.georgi
|
entity_id: person.georgi
|
||||||
from: "home"
|
from: "home"
|
||||||
to: "not_home"
|
to: "not_home"
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_boolean.georgi_home
|
||||||
|
to: "off"
|
||||||
action:
|
action:
|
||||||
- service: script.routine_leaving_home
|
- 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
|
- alias: Presence · Coming home
|
||||||
trigger:
|
trigger:
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ script:
|
|||||||
- light.browser_kitchen
|
- light.browser_kitchen
|
||||||
- light.browser_hallway
|
- light.browser_hallway
|
||||||
- light.living_room_ambient
|
- light.living_room_ambient
|
||||||
|
- light.bedside
|
||||||
data:
|
data:
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
- service: script.bed_led_on
|
- service: script.bed_led_on
|
||||||
|
|||||||
@@ -22,3 +22,8 @@ script:
|
|||||||
entity_id: input_select.hallway_dashboard_mode
|
entity_id: input_select.hallway_dashboard_mode
|
||||||
data:
|
data:
|
||||||
option: "Coming Home"
|
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