mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-09-13 23:35:40 +00:00
Twweaking audible notifications for video coming out on 6-26-21
This commit is contained in:
@@ -131,6 +131,32 @@ automation:
|
||||
attribute: last_called
|
||||
to: True
|
||||
action:
|
||||
- service: input_text.set_value
|
||||
data_template:
|
||||
entity_id: input_text.room_presence
|
||||
value: >
|
||||
{% set room = trigger.to_state.attributes.friendly_name %}
|
||||
{% if room == 'Kitchen Echo' %}
|
||||
kitchen
|
||||
{% elif room == 'Living Room Echo' %}
|
||||
main
|
||||
{% elif room == 'Skylar\'s Bedroom' %}
|
||||
skylar_bedroom
|
||||
{%- elif is_state('media_player.theater_tv', 'on') %}
|
||||
theater
|
||||
{% elif room == 'Kitchen Motion occupancy' or room == 'Back Door Motion'%}
|
||||
kitchen
|
||||
{% elif room == 'Master Bedroom Motion occupancy' %}
|
||||
master_bedroom
|
||||
{% elif room == 'Living Room Motion occupancy' or room == 'Living Room Echo' %}
|
||||
main
|
||||
{% elif room == 'Croft Occupancy' %}
|
||||
croft
|
||||
{% elif room == 'Skylar Bedroom Motion occupancy' or room == 'Skylar\'s Bedroom' %}
|
||||
skylar_bedroom
|
||||
{% else %}
|
||||
main
|
||||
{% endif %}
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: house/presence/current_room
|
||||
|
@@ -149,51 +149,6 @@ notify:
|
||||
access_token_secret: !secret twitter3_access_secret
|
||||
- platform: alexa_media
|
||||
name: alexa_media
|
||||
|
||||
|
||||
# automation:
|
||||
|
||||
# - id: audio_isssue
|
||||
# alias: Audio Issue
|
||||
# initial_state: true
|
||||
# trigger:
|
||||
# - platform: state
|
||||
# entity_id: media_player.ha_speaker
|
||||
# to: 'unavailable'
|
||||
# condition:
|
||||
# - condition: state
|
||||
# entity_id: binary_sensor.day
|
||||
# state: 'on'
|
||||
# action:
|
||||
# - service: input_boolean.turn_off
|
||||
# entity_id: input_boolean.audible_notifications
|
||||
# - service: script.text_notify
|
||||
# data_template:
|
||||
# who: "jeff"
|
||||
# title: "Audio Issue"
|
||||
# message: "HA Audible Notifications turning off due to Chromecast Issue"
|
||||
|
||||
# - id: audio_isssue_cleared
|
||||
# alias: Audio Issue Cleared
|
||||
# initial_state: true
|
||||
# trigger:
|
||||
# - platform: state
|
||||
# entity_id: media_player.ha_speaker
|
||||
# from: 'unavailable'
|
||||
# to: 'off'
|
||||
# condition:
|
||||
# - condition: state
|
||||
# entity_id: binary_sensor.day
|
||||
# state: 'on'
|
||||
# action:
|
||||
# - service: script.text_notify
|
||||
# data_template:
|
||||
# who: "jeff"
|
||||
# title: "Audio Issue Cleared"
|
||||
# message: "Main hromecast is back on"
|
||||
# - service: script.turn_on_ha_speaker
|
||||
|
||||
|
||||
|
||||
script:
|
||||
|
||||
@@ -381,7 +336,7 @@ script:
|
||||
entity_id: >
|
||||
{% if who == 'kitchen' %}
|
||||
media_player.kitchen_display
|
||||
{% elif who == 'croft' %}
|
||||
{% elif who == 'theater' %}
|
||||
media_player.upstairs_speaker
|
||||
{% elif who == 'master_bedroom' %}
|
||||
media_player.master_bedroom_speaker
|
||||
@@ -403,7 +358,7 @@ script:
|
||||
entity_id: >
|
||||
{% if who == 'kitchen' %}
|
||||
media_player.kitchen_display
|
||||
{% elif who == 'croft' %}
|
||||
{% elif who == 'theater' %}
|
||||
media_player.upstairs_speaker
|
||||
{% elif who == 'master_bedroom' %}
|
||||
media_player.master_bedroom_speaker
|
||||
@@ -626,11 +581,11 @@ script:
|
||||
entity_id: >
|
||||
{% if who == 'kitchen' %}
|
||||
media_player.kitchen_display
|
||||
{% elif who == 'croft' %}
|
||||
{% elif who == 'theater' %}
|
||||
media_player.upstairs_speaker
|
||||
{% elif who == 'master_bedroom' %}
|
||||
media_player.master_bedroom_speaker
|
||||
{% elif who == 'theater' %}
|
||||
{% elif who == 'studio' %}
|
||||
media_player.theater
|
||||
{% elif who == 'all_google' %}
|
||||
media_player.house
|
||||
@@ -648,11 +603,11 @@ script:
|
||||
entity_id: >
|
||||
{% if who == 'kitchen' %}
|
||||
media_player.kitchen_display
|
||||
{% elif who == 'croft' %}
|
||||
{% elif who == 'theater' %}
|
||||
media_player.upstairs_speaker
|
||||
{% elif who == 'master_bedroom' %}
|
||||
media_player.master_bedroom_speaker
|
||||
{% elif who == 'theater' %}
|
||||
{% elif who == 'studio' %}
|
||||
media_player.theater
|
||||
{% elif who == 'all_google' %}
|
||||
media_player.house
|
||||
@@ -680,11 +635,11 @@ script:
|
||||
entity_id: >
|
||||
{% if who == 'kitchen' %}
|
||||
media_player.kitchen_display
|
||||
{% elif who == 'croft' %}
|
||||
{% elif who == 'theater' %}
|
||||
media_player.upstairs_speaker
|
||||
{% elif who == 'master_bedroom' %}
|
||||
media_player.master_bedroom_speaker
|
||||
{% elif who == 'theater' %}
|
||||
{% elif who == 'studio' %}
|
||||
media_player.theater
|
||||
{% elif who == 'all_google' %}
|
||||
media_player.house
|
||||
@@ -711,11 +666,11 @@ script:
|
||||
entity_id: >
|
||||
{% if who == 'kitchen' %}
|
||||
media_player.kitchen_display
|
||||
{% elif who == 'croft' %}
|
||||
{% elif who == 'theater' %}
|
||||
media_player.upstairs_speaker
|
||||
{% elif who == 'master_bedroom' %}
|
||||
media_player.master_bedroom_speaker
|
||||
{% elif who == 'theater' %}
|
||||
{% elif who == 'studio' %}
|
||||
media_player.theater
|
||||
{% elif who == 'all_google' %}
|
||||
media_player.house
|
||||
@@ -733,11 +688,11 @@ script:
|
||||
entity_id: >
|
||||
{% if who == 'kitchen' %}
|
||||
media_player.kitchen_display
|
||||
{% elif who == 'croft' %}
|
||||
{% elif who == 'theater' %}
|
||||
media_player.upstairs_speaker
|
||||
{% elif who == 'master_bedroom' %}
|
||||
media_player.master_bedroom_speaker
|
||||
{% elif who == 'theater' %}
|
||||
{% elif who == 'studio' %}
|
||||
media_player.theater
|
||||
{% elif who == 'all_google' %}
|
||||
media_player.house
|
||||
@@ -761,11 +716,11 @@ script:
|
||||
entity_id: >
|
||||
{% if who == 'kitchen' %}
|
||||
media_player.kitchen_display
|
||||
{% elif who == 'croft' %}
|
||||
{% elif who == 'theater' %}
|
||||
media_player.upstairs_speaker
|
||||
{% elif who == 'master_bedroom' %}
|
||||
media_player.master_bedroom_speaker
|
||||
{% elif who == 'theater' %}
|
||||
{% elif who == 'studio' %}
|
||||
media_player.theater
|
||||
{% elif who == 'all_google' %}
|
||||
media_player.house
|
||||
|
Reference in New Issue
Block a user