mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-20 20:16:52 +00:00
Created new Locator automation to trigger 'where is everyone automation'. #1472
This commit is contained in:
25
config/automation/Speech/locator.yaml
Executable file
25
config/automation/Speech/locator.yaml
Executable 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
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user