initial commit
This commit is contained in:
@@ -0,0 +1,190 @@
|
||||
# Unified Home Assistant-managed alarms for ESPHome voice satellites.
|
||||
# This keeps one consistent alarm UX across Jarvis and ReSpeaker devices.
|
||||
#
|
||||
# The assist_satellite entity IDs below are derived from the ESPHome device names:
|
||||
# - office-jarvis-satellite -> assist_satellite.office_jarvis_satellite_assist_satellite
|
||||
# - respeaker-satellite-fr -> assist_satellite.respeaker_satellite_fr_assist_satellite
|
||||
# - respeaker-satellite-lr -> assist_satellite.respeaker_satellite_lr_assist_satellite
|
||||
# - respeaker-satellite-mbr -> assist_satellite.respeaker_satellite_mbr_assist_satellite
|
||||
# If Home Assistant generated different entity IDs in your instance, adjust them here
|
||||
# and in dashboards/views/voice-alarms-dashboard.yaml.
|
||||
|
||||
input_boolean:
|
||||
voice_alarm_office_jarvis_enabled:
|
||||
name: Office Jarvis Alarm Enabled
|
||||
icon: mdi:alarm
|
||||
|
||||
voice_alarm_respeaker_family_room_enabled:
|
||||
name: ReSpeaker Family Room Alarm Enabled
|
||||
icon: mdi:alarm
|
||||
|
||||
voice_alarm_respeaker_living_room_enabled:
|
||||
name: ReSpeaker Living Room Alarm Enabled
|
||||
icon: mdi:alarm
|
||||
|
||||
voice_alarm_respeaker_master_bedroom_enabled:
|
||||
name: ReSpeaker Master Bedroom Alarm Enabled
|
||||
icon: mdi:alarm
|
||||
|
||||
input_datetime:
|
||||
voice_alarm_office_jarvis_time:
|
||||
name: Office Jarvis Alarm Time
|
||||
has_date: false
|
||||
has_time: true
|
||||
|
||||
voice_alarm_respeaker_family_room_time:
|
||||
name: ReSpeaker Family Room Alarm Time
|
||||
has_date: false
|
||||
has_time: true
|
||||
|
||||
voice_alarm_respeaker_living_room_time:
|
||||
name: ReSpeaker Living Room Alarm Time
|
||||
has_date: false
|
||||
has_time: true
|
||||
|
||||
voice_alarm_respeaker_master_bedroom_time:
|
||||
name: ReSpeaker Master Bedroom Alarm Time
|
||||
has_date: false
|
||||
has_time: true
|
||||
|
||||
script:
|
||||
voice_satellite_alarm_announce:
|
||||
alias: Voice Satellite Alarm Announce
|
||||
description: Repeat an alarm announcement on a specific Assist satellite.
|
||||
mode: parallel
|
||||
fields:
|
||||
satellite_entity:
|
||||
name: Assist satellite entity
|
||||
required: true
|
||||
selector:
|
||||
entity:
|
||||
filter:
|
||||
domain: assist_satellite
|
||||
device_name:
|
||||
name: Device name
|
||||
required: true
|
||||
selector:
|
||||
text:
|
||||
message:
|
||||
name: Message
|
||||
required: false
|
||||
selector:
|
||||
text:
|
||||
sequence:
|
||||
- repeat:
|
||||
count: 3
|
||||
sequence:
|
||||
- action: assist_satellite.announce
|
||||
target:
|
||||
entity_id: "{{ satellite_entity }}"
|
||||
data:
|
||||
message: >-
|
||||
{% set custom_message = message | default('', true) %}
|
||||
{{ custom_message if custom_message else 'Alarm. Attention in ' ~ device_name ~ '.' }}
|
||||
preannounce: true
|
||||
- delay: "00:00:08"
|
||||
|
||||
test_voice_alarm_office_jarvis:
|
||||
alias: Test Voice Alarm - Office Jarvis
|
||||
mode: single
|
||||
sequence:
|
||||
- action: script.voice_satellite_alarm_announce
|
||||
data:
|
||||
satellite_entity: assist_satellite.office_jarvis_satellite_assist_satellite
|
||||
device_name: Office Jarvis
|
||||
message: This is a test alarm for Office Jarvis.
|
||||
|
||||
test_voice_alarm_respeaker_family_room:
|
||||
alias: Test Voice Alarm - ReSpeaker Family Room
|
||||
mode: single
|
||||
sequence:
|
||||
- action: script.voice_satellite_alarm_announce
|
||||
data:
|
||||
satellite_entity: assist_satellite.respeaker_satellite_fr_assist_satellite
|
||||
device_name: ReSpeaker Family Room
|
||||
message: This is a test alarm for the ReSpeaker in the family room.
|
||||
|
||||
test_voice_alarm_respeaker_living_room:
|
||||
alias: Test Voice Alarm - ReSpeaker Living Room
|
||||
mode: single
|
||||
sequence:
|
||||
- action: script.voice_satellite_alarm_announce
|
||||
data:
|
||||
satellite_entity: assist_satellite.respeaker_satellite_lr_assist_satellite
|
||||
device_name: ReSpeaker Living Room
|
||||
message: This is a test alarm for the ReSpeaker in the living room.
|
||||
|
||||
test_voice_alarm_respeaker_master_bedroom:
|
||||
alias: Test Voice Alarm - ReSpeaker Master Bedroom
|
||||
mode: single
|
||||
sequence:
|
||||
- action: script.voice_satellite_alarm_announce
|
||||
data:
|
||||
satellite_entity: assist_satellite.respeaker_satellite_mbr_assist_satellite
|
||||
device_name: ReSpeaker Master Bedroom
|
||||
message: This is a test alarm for the ReSpeaker in the master bedroom.
|
||||
|
||||
automation:
|
||||
- id: voice_alarm_office_jarvis_daily
|
||||
alias: Voice Alarm - Office Jarvis
|
||||
triggers:
|
||||
- trigger: time
|
||||
at: input_datetime.voice_alarm_office_jarvis_time
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.voice_alarm_office_jarvis_enabled
|
||||
state: "on"
|
||||
actions:
|
||||
- action: script.voice_satellite_alarm_announce
|
||||
data:
|
||||
satellite_entity: assist_satellite.office_jarvis_satellite_assist_satellite
|
||||
device_name: Office Jarvis
|
||||
mode: single
|
||||
|
||||
- id: voice_alarm_respeaker_family_room_daily
|
||||
alias: Voice Alarm - ReSpeaker Family Room
|
||||
triggers:
|
||||
- trigger: time
|
||||
at: input_datetime.voice_alarm_respeaker_family_room_time
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.voice_alarm_respeaker_family_room_enabled
|
||||
state: "on"
|
||||
actions:
|
||||
- action: script.voice_satellite_alarm_announce
|
||||
data:
|
||||
satellite_entity: assist_satellite.respeaker_satellite_fr_assist_satellite
|
||||
device_name: ReSpeaker Family Room
|
||||
mode: single
|
||||
|
||||
- id: voice_alarm_respeaker_living_room_daily
|
||||
alias: Voice Alarm - ReSpeaker Living Room
|
||||
triggers:
|
||||
- trigger: time
|
||||
at: input_datetime.voice_alarm_respeaker_living_room_time
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.voice_alarm_respeaker_living_room_enabled
|
||||
state: "on"
|
||||
actions:
|
||||
- action: script.voice_satellite_alarm_announce
|
||||
data:
|
||||
satellite_entity: assist_satellite.respeaker_satellite_lr_assist_satellite
|
||||
device_name: ReSpeaker Living Room
|
||||
mode: single
|
||||
|
||||
- id: voice_alarm_respeaker_master_bedroom_daily
|
||||
alias: Voice Alarm - ReSpeaker Master Bedroom
|
||||
triggers:
|
||||
- trigger: time
|
||||
at: input_datetime.voice_alarm_respeaker_master_bedroom_time
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.voice_alarm_respeaker_master_bedroom_enabled
|
||||
state: "on"
|
||||
actions:
|
||||
- action: script.voice_satellite_alarm_announce
|
||||
data:
|
||||
satellite_entity: assist_satellite.respeaker_satellite_mbr_assist_satellite
|
||||
device_name: ReSpeaker Master Bedroom
|
||||
mode: single
|
||||
Reference in New Issue
Block a user