Created new Locator automation to trigger 'where is everyone automation'. #1472

This commit is contained in:
CCOSTAN
2025-05-26 21:09:46 +00:00
parent 9b1b76e877
commit 4776b9ddf3
13 changed files with 169 additions and 91 deletions

View File

@@ -0,0 +1,25 @@
#-------------------------------------------
# Locator Automation
# Description: Announces the location of all family members when triggered
#
# Features:
# - Triggered by input_boolean.locator (for Alexa integration)
# - Uses speech_engine script to announce where everyone is
# - Designed for use with Alexa ("Alexa, turn on locator")
#
# Follow me on https://www.vcloudinfo.com/click-here
#-------------------------------------------
- alias: 'Locator'
id: locator-announcement-001
mode: single
trigger:
- platform: state
entity_id: input_boolean.locator
to: 'on'
action:
- service: script.speech_engine
data:
call_no_announcement: 1
- service: input_boolean.turn_off
data:
entity_id: input_boolean.locator

View File

@@ -35,7 +35,15 @@
- wait_template: >-
{{ states.sun.sun.state == 'above_horizon' }}
- service: homeassistant.turn_on
entity_id: switch.alarm_panel_1_motion_detection
entity_id:
- switch.alarm_panel_1_motion_detection
- switch.office_lamp_switch_socket
- service: number.set_value
target:
entity_id: number.alarm_panel_1_screen_brightness
data:
value: 100
- service: button.press
entity_id: button.alarm_panel_1_restart_browser
- service: homeassistant.turn_off

View File

@@ -42,3 +42,31 @@
- service: switch.turn_off
data:
entity_id: "{{ trigger.entity_id }}"
- alias: 'Bedroom Screensaver Watchdog'
id: Bedroom-Screensaver-Watchdog-automation
trigger:
- platform: state
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
to: 'on'
- platform: state
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
to: 'on'
- platform: state
entity_id: switch.alarm_panel_1_screensaver
to: 'off'
condition:
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
state: 'on'
- condition: state
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
state: 'on'
action:
- service: switch.turn_on
entity_id: switch.alarm_panel_1_screensaver

View File

@@ -26,4 +26,9 @@
- switch.lr_amp
- light.kitchen_lights
- switch.alarm_panel_1_motion_detection
- service: number.set_value
target:
entity_id: number.alarm_panel_1_screen_brightness
data:
value: 100

View File

@@ -12,6 +12,16 @@
- platform: state
entity_id: group.family
to: 'not_home'
- platform: sun
event: sunrise
offset: '-02:00:00'
- platform: sun
event: sunset
offset: '+00:30:00'
- platform: time
at:
- '03:00:00'
- '12:00:00'
condition:
- condition: state

View File

@@ -53,6 +53,11 @@
- group.master_bathroom_accents
- switch.alarm_panel_1_motion_detection
- service: script.interior_off
- service: number.set_value
target:
entity_id: number.alarm_panel_1_screen_brightness
data:
value: 0
- alias: 'Bed Presence AMP Trigger'
@@ -86,6 +91,11 @@
- group.master_bathroom_accents
- group.landscaping
- switch.alarm_panel_1_motion_detection
- service: number.set_value
target:
entity_id: number.alarm_panel_1_screen_brightness
data:
value: 0
default:
- service: homeassistant.turn_on
target: