Updated media directory name

This commit is contained in:
CeeWeasel
2025-07-26 21:35:14 -04:00
parent 1987e51be2
commit 2de52ba298
24 changed files with 178 additions and 222 deletions
+1
View File
@@ -18,6 +18,7 @@ backup_config.yaml
.cloud/ .cloud/
.automatic/ .automatic/
.tts.token* .tts.token*
*.tts.token
customize.yaml customize.yaml
image/ image/
open-zwave/ open-zwave/
@@ -8,6 +8,7 @@ trigger:
# Bridget moved # Bridget moved
- platform: state - platform: state
entity_id: entity_id:
- input_select.weaver_kids
- input_select.bridget_status_dropdown - input_select.bridget_status_dropdown
- input_boolean.bridget_home - input_boolean.bridget_home
# Clint moved # Clint moved
@@ -23,5 +24,5 @@ condition:
value_template: "{{ trigger.from_state.state != trigger.to_state.state }}" value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
action: action:
- service: script.turn_on - action: script.turn_on
entity_id: script.bridget_travel_sensor entity_id: script.bridget_travel_sensor
@@ -2,10 +2,11 @@ alias: Emmett Location Update
id: automation_emmett_location_update id: automation_emmett_location_update
mode: restart mode: restart
trigger: triggers:
# Emmett moved # Emmett moved
- platform: state - trigger: state
entity_id: entity_id:
- input_select.weaver_kids
- input_select.emmett_status_dropdown - input_select.emmett_status_dropdown
- input_boolean.emmett_home - input_boolean.emmett_home
# Clint moved # Clint moved
@@ -20,6 +21,6 @@ condition:
- condition: template - condition: template
value_template: "{{ trigger.from_state.state != trigger.to_state.state }}" value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
action: actions:
- service: script.turn_on - action: script.turn_on
entity_id: script.emmett_travel_sensor entity_id: script.emmett_travel_sensor
+2 -2
View File
@@ -37,13 +37,13 @@ action:
- media_player.bathroom_mini - media_player.bathroom_mini
- media_player.kitchen - media_player.kitchen
- media_player.great_room - media_player.great_room
media_content_id: media-source://media_source/local/Sounds/tts/almost_bedtime.mp3 media_content_id: media-source://media_source/local/sounds/tts/almost_bedtime.mp3
volume: 0.7 volume: 0.7
default: default:
- service: script.make_clever_announcement - service: script.make_clever_announcement
data: data:
entity_id: media_player.announcements entity_id: media_player.announcements
media_content_id: media-source://media_source/local/Sounds/tts/almost_bedtime.mp3 media_content_id: media-source://media_source/local/sounds/tts/almost_bedtime.mp3
volume: 0.7 volume: 0.7
# Because of how we're calling the script, the automation won't continue until the script is done, so we don't need a delay here # Because of how we're calling the script, the automation won't continue until the script is done, so we don't need a delay here
+6 -4
View File
@@ -20,7 +20,7 @@ condition:
entity_id: input_boolean.ebin_home entity_id: input_boolean.ebin_home
state: 'on' state: 'on'
action: action:
- service: media_player.volume_set - action: media_player.volume_set
data_template: data_template:
entity_id: entity_id:
- media_player.bathroom_mini - media_player.bathroom_mini
@@ -31,9 +31,11 @@ action:
- media_player.master_bedroom_clock - media_player.master_bedroom_clock
volume_level: 0.7 volume_level: 0.7
- delay: '00:00:03' - delay: '00:00:03'
- service: tts.google_translate_say - action: tts.speak
entity_id: media_player.all_speakers target:
data_template: entity_id: tts.google_translate_en_com
data:
media_player_entity_id: media_player.all_speakers
message: Alright kids. Its almost bedtime. You've got 5 minutes. message: Alright kids. Its almost bedtime. You've got 5 minutes.
- delay: '00:00:10' - delay: '00:00:10'
- service: media_player.turn_off - service: media_player.turn_off
@@ -28,9 +28,11 @@ action:
data_template: data_template:
volume_level: 0.30 volume_level: 0.30
entity_id: media_player.master_bedroom_clock entity_id: media_player.master_bedroom_clock
- service: tts.google_translate_say - action: tts.speak
data_template: target:
entity_id: media_player.master_bedroom_clock entity_id: tts.google_translate_en_com
data:
media_player_entity_id: media_player.master_bedroom_clock
message: >- message: >-
The following are open: The following are open:
{{ dict((states|selectattr('entity_id', 'in', state_attr('group.my_exterior_windows', 'entity_id') + state_attr('group.my_exterior_doors', 'entity_id'))|list)|groupby('state'))['on']|map(attribute='name')|list|join(', ') }} {{ dict((states|selectattr('entity_id', 'in', state_attr('group.my_exterior_windows', 'entity_id') + state_attr('group.my_exterior_doors', 'entity_id'))|list)|groupby('state'))['on']|map(attribute='name')|list|join(', ') }}
+14 -14
View File
@@ -40,23 +40,23 @@ action:
{% if is_state('input_boolean.emmett_home', 'on') %} {% if is_state('input_boolean.emmett_home', 'on') %}
{% if is_state('input_boolean.bridget_home', 'on') %} {% if is_state('input_boolean.bridget_home', 'on') %}
{% if is_state('input_boolean.ebin_home', 'on') %} {% if is_state('input_boolean.ebin_home', 'on') %}
media-source://media_source/local/Sounds/tts/goodnight_emmett_bridget_ebin.mp3 media-source://media_source/local/sounds/tts/goodnight_emmett_bridget_ebin.mp3
{% else %} {% else %}
media-source://media_source/local/Sounds/tts/goodnight_emmett_bridget.mp3 media-source://media_source/local/sounds/tts/goodnight_emmett_bridget.mp3
{% endif %} {% endif %}
{% elif is_state('input_boolean.ebin_home','on') %} {% elif is_state('input_boolean.ebin_home','on') %}
media-source://media_source/local/Sounds/tts/goodnight_emmett_ebin.mp3 media-source://media_source/local/sounds/tts/goodnight_emmett_ebin.mp3
{% else %} {% else %}
media-source://media_source/local/Sounds/tts/goodnight_emmett.mp3 media-source://media_source/local/sounds/tts/goodnight_emmett.mp3
{% endif %} {% endif %}
{% elif is_state('input_boolean.bridget_home', 'on') %} {% elif is_state('input_boolean.bridget_home', 'on') %}
{% if is_state('input_boolean.ebin_home', 'on') %} {% if is_state('input_boolean.ebin_home', 'on') %}
media-source://media_source/local/Sounds/tts/goodnight_bridget_ebin.mp3 media-source://media_source/local/sounds/tts/goodnight_bridget_ebin.mp3
{% else %} {% else %}
media-source://media_source/local/Sounds/tts/goodnight_bridget.mp3 media-source://media_source/local/sounds/tts/goodnight_bridget.mp3
{% endif %} {% endif %}
{% elif is_state('input_boolean.ebin_home', 'on') %} {% elif is_state('input_boolean.ebin_home', 'on') %}
media-source://media_source/local/Sounds/tts/goodnight_ebin.mp3 media-source://media_source/local/sounds/tts/goodnight_ebin.mp3
{% endif %} {% endif %}
volume: 0.7 volume: 0.7
default: default:
@@ -67,23 +67,23 @@ action:
{% if is_state('input_boolean.emmett_home', 'on') %} {% if is_state('input_boolean.emmett_home', 'on') %}
{% if is_state('input_boolean.bridget_home', 'on') %} {% if is_state('input_boolean.bridget_home', 'on') %}
{% if is_state('input_boolean.ebin_home', 'on') %} {% if is_state('input_boolean.ebin_home', 'on') %}
media-source://media_source/local/Sounds/tts/goodnight_emmett_bridget_ebin.mp3 media-source://media_source/local/sounds/tts/goodnight_emmett_bridget_ebin.mp3
{% else %} {% else %}
media-source://media_source/local/Sounds/tts/goodnight_emmett_bridget.mp3 media-source://media_source/local/sounds/tts/goodnight_emmett_bridget.mp3
{% endif %} {% endif %}
{% elif is_state('input_boolean.ebin_home','on') %} {% elif is_state('input_boolean.ebin_home','on') %}
media-source://media_source/local/Sounds/tts/goodnight_emmett_ebin.mp3 media-source://media_source/local/sounds/tts/goodnight_emmett_ebin.mp3
{% else %} {% else %}
media-source://media_source/local/Sounds/tts/goodnight_emmett.mp3 media-source://media_source/local/sounds/tts/goodnight_emmett.mp3
{% endif %} {% endif %}
{% elif is_state('input_boolean.bridget_home', 'on') %} {% elif is_state('input_boolean.bridget_home', 'on') %}
{% if is_state('input_boolean.ebin_home', 'on') %} {% if is_state('input_boolean.ebin_home', 'on') %}
media-source://media_source/local/Sounds/tts/goodnight_bridget_ebin.mp3 media-source://media_source/local/sounds/tts/goodnight_bridget_ebin.mp3
{% else %} {% else %}
media-source://media_source/local/Sounds/tts/goodnight_bridget.mp3 media-source://media_source/local/sounds/tts/goodnight_bridget.mp3
{% endif %} {% endif %}
{% elif is_state('input_boolean.ebin_home', 'on') %} {% elif is_state('input_boolean.ebin_home', 'on') %}
media-source://media_source/local/Sounds/tts/goodnight_ebin.mp3 media-source://media_source/local/sounds/tts/goodnight_ebin.mp3
{% endif %} {% endif %}
volume: 0.7 volume: 0.7
@@ -8,9 +8,11 @@ trigger:
for: "00:00:10" for: "00:00:10"
action: action:
- service: tts.google_translate_say - action: tts.speak
entity_id: media_player.front_room_hub, media_player.bathroom_mini, media_player.kitchen, media_player.master_bedroom_clock target:
entity_id: tts.google_translate_en_com
data: data:
media_player_entity_id: media_player.front_room_hub, media_player.bathroom_mini, media_player.kitchen, media_player.master_bedroom_clock
message: Attention! A water leak has been detected on the furnace room floor! message: Attention! A water leak has been detected on the furnace room floor!
- service: notify.mobile_app_pixel_7 - service: notify.mobile_app_pixel_7
@@ -5,20 +5,17 @@ mode: single
max_exceeded: silent max_exceeded: silent
trigger: trigger:
- platform: template - trigger: state
value_template: "{% if is_state('binary_sensor.nursery_door_person_occupancy','on') and is_state('binary_sensor.nursery_door','off')%}true{%endif%}"
- platform: state
entity_id: binary_sensor.black_bed_occupied entity_id: binary_sensor.black_bed_occupied
from: "on" from: "on"
to: "off" to: "off"
for: "00:00:05" for: "00:00:05"
- platform: state - trigger: state
entity_id: input_boolean.white_bed_occupied entity_id: input_boolean.white_bed_occupied
from: "on" from: "on"
to: "off" to: "off"
for: "00:00:05" for: "00:00:05"
- platform: state - trigger: state
entity_id: binary_sensor.nursery_door entity_id: binary_sensor.nursery_door
from: "off" from: "off"
to: "on" to: "on"
@@ -95,7 +92,7 @@ action:
entity_id: binary_sensor.garage_occupied entity_id: binary_sensor.garage_occupied
state: "on" state: "on"
sequence: sequence:
- service: script.blink_garage_lights - action: script.blink_garage_lights
- choose: - choose:
- conditions: - conditions:
@@ -103,7 +100,7 @@ action:
entity_id: binary_sensor.computer_area_occupied entity_id: binary_sensor.computer_area_occupied
state: "on" state: "on"
sequence: sequence:
- service: webrtc.dash_cast - action: webrtc.dash_cast
data: data:
entity_id: media_player.computer_area_hub entity_id: media_player.computer_area_hub
url: rtsp_cam08_sub url: rtsp_cam08_sub
@@ -117,7 +114,7 @@ action:
entity_id: binary_sensor.front_room_occupied entity_id: binary_sensor.front_room_occupied
state: "on" state: "on"
sequence: sequence:
- service: webrtc.dash_cast - action: webrtc.dash_cast
data: data:
entity_id: media_player.front_room_hub entity_id: media_player.front_room_hub
url: rtsp_cam08_sub url: rtsp_cam08_sub
@@ -127,7 +124,7 @@ action:
- delay: "00:10:00" - delay: "00:10:00"
- service: media_player.turn_off - action: media_player.turn_off
entity_id: media_player.front_room_hub, media_player.computer_area_hub entity_id: media_player.front_room_hub, media_player.computer_area_hub
# - alias: "Flash some lights" # - alias: "Flash some lights"
@@ -8,21 +8,20 @@ trigger:
action: action:
- choose: - choose:
- conditions: - conditions:
- condition: state - condition: state
entity_id: media_player.ma_nursery_hub
state: "playing"
sequence:
- service: media_player.media_stop
target:
entity_id: media_player.ma_nursery_hub entity_id: media_player.ma_nursery_hub
state: "playing"
sequence:
- service: media_player.media_stop
target:
entity_id: media_player.ma_nursery_hub
#- service: input_select.select_option #- service: input_select.select_option
# data: # data:
# entity_id: input_select.nursery_mode # entity_id: input_select.nursery_mode
# option: 'Off' # option: 'Off'
# The kids can turn on their own sounds. Just stop the music # The kids can turn on their own sounds. Just stop the music
# - service: media_player.volume_set # - service: media_player.volume_set
# data: # data:
@@ -34,7 +33,5 @@ action:
# target: # target:
# entity_id: media_player.nursery_hub # entity_id: media_player.nursery_hub
# data: # data:
# media_content_id: media-source://media_source/local/Sounds/relaxing/thunderstorm/thunderstorm.mp3 # media_content_id: media-source://media_source/local/sounds/relaxing/thunderstorm/thunderstorm.mp3
# media_content_type: audio/mpeg # media_content_type: audio/mpeg
+1 -2
View File
@@ -54,5 +54,4 @@ action:
- alias: "Announce that the coffee is ready" - alias: "Announce that the coffee is ready"
service: script.make_clever_announcement service: script.make_clever_announcement
data: data:
media_content_id: media-source://media_source/local/Sounds/tts/coffee_ready.mp3 media_content_id: media-source://media_source/local/sounds/tts/coffee_ready.mp3
+1 -1
View File
@@ -46,7 +46,7 @@ action:
sequence: sequence:
- service: script.make_clever_announcement - service: script.make_clever_announcement
data: data:
media_content_id: media-source://media_source/local/Sounds/tts/kitchen_fridge_open_too_long.mp3 media_content_id: media-source://media_source/local/sounds/tts/kitchen_fridge_open_too_long.mp3
- choose: - choose:
- conditions: - conditions:
+28 -28
View File
@@ -119,37 +119,37 @@ script:
{% elif is_state("input_select.google_home", "Everywhere") %} media_player.all_speakers {% elif is_state("input_select.google_home", "Everywhere") %} media_player.all_speakers
{% endif %} {% endif %}
media_content_id: > media_content_id: >
{% if is_state("input_select.ambient_sound", "Babbling Brook") %} media-source://media_source/local/Sounds/relaxing/babbling_brook.mp3 {% if is_state("input_select.ambient_sound", "Babbling Brook") %} media-source://media_source/local/sounds/relaxing/babbling_brook.mp3
{% elif is_state("input_select.ambient_sound", "Female Baby Shusher") %} media-source://media_source/local/Sounds/relaxing/baby_shusher_hol.mp3 {% elif is_state("input_select.ambient_sound", "Female Baby Shusher") %} media-source://media_source/local/sounds/relaxing/baby_shusher_hol.mp3
{% elif is_state("input_select.ambient_sound", "Male Baby Shusher") %} media-source://media_source/local/Sounds/relaxing/baby_shusher_jmp.mp3 {% elif is_state("input_select.ambient_sound", "Male Baby Shusher") %} media-source://media_source/local/sounds/relaxing/baby_shusher_jmp.mp3
{% elif is_state("input_select.ambient_sound", "Country Night") %} media-source://media_source/local/Sounds/relaxing/country_night.mp3 {% elif is_state("input_select.ambient_sound", "Country Night") %} media-source://media_source/local/sounds/relaxing/country_night.mp3
{% elif is_state("input_select.ambient_sound", "Fireplace") %} media-source://media_source/local/Sounds/relaxing/fireplace.mp3 {% elif is_state("input_select.ambient_sound", "Fireplace") %} media-source://media_source/local/sounds/relaxing/fireplace.mp3
{% elif is_state("input_select.ambient_sound", "Forest") %} media-source://media_source/local/Sounds/relaxing/forest.mp3 {% elif is_state("input_select.ambient_sound", "Forest") %} media-source://media_source/local/sounds/relaxing/forest.mp3
{% elif is_state("input_select.ambient_sound", "Female Lullaby") %} media-source://media_source/local/Sounds/relaxing/luh_lullaby_hol.mp3 {% elif is_state("input_select.ambient_sound", "Female Lullaby") %} media-source://media_source/local/sounds/relaxing/luh_lullaby_hol.mp3
{% elif is_state("input_select.ambient_sound", "Male Lullaby") %} media-source://media_source/local/Sounds/relaxing/luh_lullaby_jmp.mp3 {% elif is_state("input_select.ambient_sound", "Male Lullaby") %} media-source://media_source/local/sounds/relaxing/luh_lullaby_jmp.mp3
{% elif is_state("input_select.ambient_sound", "Ocean") %} media-source://media_source/local/Sounds/relaxing/ocean.mp3 {% elif is_state("input_select.ambient_sound", "Ocean") %} media-source://media_source/local/sounds/relaxing/ocean.mp3
{% elif is_state("input_select.ambient_sound", "Oscillating Fan") %} media-source://media_source/local/Sounds/relaxing/oscillating_fan.mp3 {% elif is_state("input_select.ambient_sound", "Oscillating Fan") %} media-source://media_source/local/sounds/relaxing/oscillating_fan.mp3
{% elif is_state("input_select.ambient_sound", "Pink Noise") %} media-source://media_source/local/Sounds/relaxing/pink_noise.mp3 {% elif is_state("input_select.ambient_sound", "Pink Noise") %} media-source://media_source/local/sounds/relaxing/pink_noise.mp3
{% elif is_state("input_select.ambient_sound", "Rain") %} media-source://media_source/local/Sounds/relaxing/rain.mp3 {% elif is_state("input_select.ambient_sound", "Rain") %} media-source://media_source/local/sounds/relaxing/rain.mp3
{% elif is_state("input_select.ambient_sound", "River") %} media-source://media_source/local/Sounds/relaxing/river.mp3 {% elif is_state("input_select.ambient_sound", "River") %} media-source://media_source/local/sounds/relaxing/river.mp3
{% elif is_state("input_select.ambient_sound", "Female Rock-a-bye Baby") %} media-source://media_source/local/Sounds/relaxing/rock_a_bye_baby_hol.mp3 {% elif is_state("input_select.ambient_sound", "Female Rock-a-bye Baby") %} media-source://media_source/local/sounds/relaxing/rock_a_bye_baby_hol.mp3
{% elif is_state("input_select.ambient_sound", "Male Rock-a-bye Baby") %} media-source://media_source/local/Sounds/relaxing/rock_a_bye_baby_jmp.mp3 {% elif is_state("input_select.ambient_sound", "Male Rock-a-bye Baby") %} media-source://media_source/local/sounds/relaxing/rock_a_bye_baby_jmp.mp3
{% elif is_state("input_select.ambient_sound", "Thunderstorm") %} media-source://media_source/local/Sounds/relaxing/thunderstorm.mp3 {% elif is_state("input_select.ambient_sound", "Thunderstorm") %} media-source://media_source/local/sounds/relaxing/thunderstorm.mp3
{% elif is_state("input_select.ambient_sound", "Female Twinkle Twinkle") %} media-source://media_source/local/Sounds/relaxing/twinkle_twinkle_hol.mp3 {% elif is_state("input_select.ambient_sound", "Female Twinkle Twinkle") %} media-source://media_source/local/sounds/relaxing/twinkle_twinkle_hol.mp3
{% elif is_state("input_select.ambient_sound", "Male Twinkle Twinkle") %} media-source://media_source/local/Sounds/relaxing/twinkle_twinkle_jmp.mp3 {% elif is_state("input_select.ambient_sound", "Male Twinkle Twinkle") %} media-source://media_source/local/sounds/relaxing/twinkle_twinkle_jmp.mp3
{% elif is_state("input_select.ambient_sound", "White Noise") %} media-source://media_source/local/Sounds/relaxing/white_noise.mp3 {% elif is_state("input_select.ambient_sound", "White Noise") %} media-source://media_source/local/sounds/relaxing/white_noise.mp3
{% elif is_state("input_select.ambient_sound", "Random White Noise") %} {% elif is_state("input_select.ambient_sound", "Random White Noise") %}
{% set noises = ['media-source://media_source/local/Sounds/relaxing/babbling_brook.mp3', {% set noises = ['media-source://media_source/local/sounds/relaxing/babbling_brook.mp3',
'media-source://media_source/local/Sounds/relaxing/country_night.mp3', 'media-source://media_source/local/sounds/relaxing/country_night.mp3',
'media-source://media_source/local/Sounds/relaxing/oscillating_fan.mp3', 'media-source://media_source/local/sounds/relaxing/oscillating_fan.mp3',
'media-source://media_source/local/Sounds/relaxing/rain.mp3', 'media-source://media_source/local/sounds/relaxing/rain.mp3',
'media-source://media_source/local/Sounds/relaxing/river.mp3', 'media-source://media_source/local/sounds/relaxing/river.mp3',
'media-source://media_source/local/Sounds/relaxing/thunderstorm.mp3'] %} 'media-source://media_source/local/sounds/relaxing/thunderstorm.mp3'] %}
{{ noises|random }} {{ noises|random }}
{% elif is_state("input_select.ambient_sound", "Random Kids Noise") %} {% elif is_state("input_select.ambient_sound", "Random Kids Noise") %}
{% set noises = ['media-source://media_source/local/Sounds/relaxing/baby_shusher_hol.mp3', {% set noises = ['media-source://media_source/local/sounds/relaxing/baby_shusher_hol.mp3',
'media-source://media_source/local/Sounds/relaxing/luh_lullaby_hol.mp3', 'media-source://media_source/local/sounds/relaxing/luh_lullaby_hol.mp3',
'media-source://media_source/local/Sounds/relaxing/twinkle_twinkle_hol.mp3'] %} 'media-source://media_source/local/sounds/relaxing/twinkle_twinkle_hol.mp3'] %}
{{ noises|random }} {{ noises|random }}
{% endif %} {% endif %}
media_content_type: "audio/mp4" media_content_type: "audio/mp4"
@@ -15,7 +15,7 @@ script:
media_content_id: media_content_id:
description: "Media Content ID to announce" description: "Media Content ID to announce"
example: media-source://media_source/local/Sounds/tts/welcome_to_daddys_house.mp3 example: media-source://media_source/local/sounds/tts/welcome_to_daddys_house.mp3
selector: selector:
text: text:
@@ -42,7 +42,7 @@ script:
# If YTube Music Player is not in use, play the announcement over the media_player.announcements speaker group # If YTube Music Player is not in use, play the announcement over the media_player.announcements speaker group
media_player: '{{ iif(entity_id is defined, entity_id, iif(is_state("media_player.ytube_music_player","playing") or is_state("media_player.ytube_music_player","idle") or is_state("media_player.ytube_music_player","paused"),state_attr("media_player.ytube_music_player","remote_player_id"),"media_player.announcements")) }}' media_player: '{{ iif(entity_id is defined, entity_id, iif(is_state("media_player.ytube_music_player","playing") or is_state("media_player.ytube_music_player","idle") or is_state("media_player.ytube_music_player","paused"),state_attr("media_player.ytube_music_player","remote_player_id"),"media_player.announcements")) }}'
remote_player: '{{ state_attr("media_player.ytube_music_player","remote_player_id") }}' remote_player: '{{ state_attr("media_player.ytube_music_player","remote_player_id") }}'
content_id: '{{ iif(media_content_id is defined,media_content_id,"media-source://media_source/local/Sounds/tts/welcome_to_daddys_house.mp3") }}' content_id: '{{ iif(media_content_id is defined,media_content_id,"media-source://media_source/local/sounds/tts/welcome_to_daddys_house.mp3") }}'
content_type: '{{ iif(media_content_type is defined,media_content_type,"audio/mpeg") }}' content_type: '{{ iif(media_content_type is defined,media_content_type,"audio/mpeg") }}'
volume: "{{ iif(volume is defined,volume,0.6) }}" volume: "{{ iif(volume is defined,volume,0.6) }}"
original_volume: '{{ iif(is_state("media_player.ytube_music_player","off"),0.0,state_attr(state_attr("media_player.ytube_music_player","remote_player_id"), "volume_level")) }}' original_volume: '{{ iif(is_state("media_player.ytube_music_player","off"),0.0,state_attr(state_attr("media_player.ytube_music_player","remote_player_id"), "volume_level")) }}'
+2 -2
View File
@@ -20,7 +20,7 @@ homeassistant:
tts: /config/www/audio/tts tts: /config/www/audio/tts
#local: /media/ #local: /media/
#mnt: /mnt #mnt: /mnt
#audio: /config/www/audio/ #audio: /config/www/audio/
#snapshots: /config/snapshots/ #snapshots: /config/snapshots/
allowlist_external_dirs: allowlist_external_dirs:
@@ -29,7 +29,7 @@ homeassistant:
- /config/tmp/snapshots/ - /config/tmp/snapshots/
- /config/custom_logs/ - /config/custom_logs/
#- /config/www/audio/ #- /config/www/audio/
#- /config/image/ #- /config/image/
customize: !include_dir_merge_named customizations/entities customize: !include_dir_merge_named customizations/entities
packages: !include_dir_named components/packages packages: !include_dir_named components/packages
+1 -20
View File
@@ -97,16 +97,6 @@ card:
top: 95% top: 95%
left: 92% left: 92%
- type: conditional
conditions:
- entity: binary_sensor.black_bed_person_occupancy
state: "on"
elements:
- type: state-icon
entity: binary_sensor.black_bed_person_occupancy
style:
top: 30%
left: 23%
- type: conditional - type: conditional
conditions: conditions:
- entity: binary_sensor.black_bed_occupied - entity: binary_sensor.black_bed_occupied
@@ -117,16 +107,7 @@ card:
style: style:
top: 30% top: 30%
left: 18% left: 18%
- type: conditional
conditions:
- entity: binary_sensor.white_bed_person_occupancy
state: "on"
elements:
- type: state-icon
entity: binary_sensor.white_bed_person_occupancy
style:
top: 65%
left: 85%
- type: conditional - type: conditional
conditions: conditions:
- entity: input_boolean.white_bed_occupied - entity: input_boolean.white_bed_occupied
-56
View File
@@ -153,20 +153,6 @@ cards:
card: card:
type: horizontal-stack type: horizontal-stack
cards: cards:
- type: entity-filter
entities:
- binary_sensor.master_bed_person_occupancy
show_empty: false
state_filter:
- 'on'
card:
type: picture-glance
title: Master Bed
camera_view: auto
entities: []
image_entity: image.frigate_cam06_person
entity: binary_sensor.master_bed_person_occupancy
- type: entity-filter - type: entity-filter
entities: entities:
- binary_sensor.master_bedroom_person_occupancy - binary_sensor.master_bedroom_person_occupancy
@@ -190,20 +176,6 @@ cards:
card: card:
type: horizontal-stack type: horizontal-stack
cards: cards:
- type: entity-filter
entities:
- binary_sensor.master_bed_person_occupancy
show_empty: false
state_filter:
- 'on'
card:
type: picture-glance
title: Master Bed
camera_view: auto
entities: []
image_entity: image.frigate_cam07_person
entity: binary_sensor.master_bed_person_occupancy
- type: entity-filter - type: entity-filter
entities: entities:
- binary_sensor.master_bedroom_person_occupancy - binary_sensor.master_bedroom_person_occupancy
@@ -227,34 +199,6 @@ cards:
card: card:
type: horizontal-stack type: horizontal-stack
cards: cards:
- type: entity-filter
entities:
- binary_sensor.black_bed_person_occupancy
show_empty: false
state_filter:
- 'on'
card:
type: picture-glance
title: Black Bed
camera_view: auto
entities: []
image_entity: image.frigate_cam08_person
entity: binary_sensor.black_bed_person_occupancy
- type: entity-filter
entities:
- binary_sensor.white_bed_person_occupancy
show_empty: false
state_filter:
- 'on'
card:
type: picture-glance
title: White Bed
camera_view: auto
entities: []
image_entity: image.frigate_cam08_person
entity: binary_sensor.white_bed_person_occupancy
- type: entity-filter - type: entity-filter
entities: entities:
- binary_sensor.nursery_person_occupancy - binary_sensor.nursery_person_occupancy
+60 -35
View File
@@ -1,40 +1,65 @@
title: Watchman title: Watchman
path: watchman path: watchman
icon: mdi:sunglasses icon: mdi:eye-check
type: sections
max_columns: 4
visible: visible:
- user: 24a4bd075e7f41a497dd0390a1dd4a9f - user: 24a4bd075e7f41a497dd0390a1dd4a9f
cards: sections:
- type: vertical-stack - type: grid
cards: cards:
- type: custom:mushroom-chips-card - type: markdown
chips: content: >-
- type: back <h2>Missing Entities: {{ states.sensor.watchman_missing_entities.state }}</h2>
- type: button {%- for item in state_attr("sensor.watchman_missing_entities","entities") %}
entity: sensor.watchman_last_updated <hr> <table><tr> <td> <ha-icon icon='mdi: {%- if item.state=="missing"-%}cloud-alert' {%- elif item.state=="unavail"
name: Update -%}cloud-off-outline' {%- else-%}cloud-question' {%- endif -%} ></ha-icon> {{
show_name: true item.id }} [{{item.state}}] <a title="{{item.occurrences}}">
show_icon: true {{item.occurrences.split('/')[-1].split(':')[0]}}</a> </td></tr></table>
tap_action: {%- endfor %}
action: call-service - type: grid
service: watchman.report cards:
service_data: - type: markdown
parse_config: true content: >-
target: {} <h2> Missing Services: {{ states.sensor.watchman_missing_services.state }}</h2>
{%- for item in state_attr("sensor.watchman_missing_services","entities") %}
<hr><table><tr><td><ha-icon icon='mdi:cloud-alert'></ha-icon> {{item.id }}
- type: markdown <a title="{{item.occurrences}}">{{item.occurrences.split('/')[-1].split(':')[0]}}
content: >- </a></td></tr></table>
<h2> <ha-icon icon='mdi:shield-half-full'></ha-icon> Watchman Report<h2> {%- endfor %}
<h3>Missing Entities: {{ states.sensor.watchman_missing_entities.state }}</h3> header:
{%- for item in state_attr("sensor.watchman_missing_entities","entities") %} card:
<hr> <table><tr> <td> <ha-icon icon='mdi: {%- if item.state=="missing"-%}cloud-alert' {%- elif item.state=="unavail" type: markdown
-%}cloud-off-outline' {%- else-%}cloud-question' {%- endif -%} ></ha-icon> {{ content: |
item.id }} [{{item.state}}] <a title="{{item.occurrences}}"> # Watchman Report
{{item.occurrences.split('/')[-1].split(':')[0]}}</a> </td></tr></table> text_only: true
{%- endfor %} badges:
<h3> Missing Services: {{ states.sensor.watchman_missing_services.state }}</h3> - type: entity
{%- for item in state_attr("sensor.watchman_missing_services", "entities") %} show_name: true
<hr><table><tr><td><ha-icon icon='mdi:cloud-alert'></ha-icon> {{ item.id }} <a show_state: true
title="{{item.occurrences}}">{{item.occurrences.split('/')[-1].split(':')[0]}} show_icon: true
</a></td></tr></table> entity: sensor.watchman_last_updated
{%- endfor %} name: Last Updated
tap_action:
action: perform-action
perform_action: watchman.report
target: {}
data:
parse_config: false
create_file: true
- type: entity
show_name: true
show_state: true
show_icon: true
entity: sensor.watchman_missing_entities
name: Missing Entities
tap_action:
action: none
- type: entity
show_name: true
show_state: true
show_icon: true
entity: sensor.watchman_missing_services
name: Missing Services
tap_action:
action: none
+7 -7
View File
@@ -908,13 +908,13 @@ badges:
navigation_path: /ai-yml/ai-cam04 navigation_path: /ai-yml/ai-cam04
hold_action: hold_action:
action: more-info action: more-info
- entity: binary_sensor.back_yard_person_occupancy # - entity: binary_sensor.back_yard_person_occupancy
name: Yard # name: Yard
tap_action: # tap_action:
action: navigate # action: navigate
navigation_path: /ai-yml/ai-cam14 # navigation_path: /ai-yml/ai-cam14
hold_action: # hold_action:
action: more-info # action: more-info
- entity: binary_sensor.front_yard_person_occupancy - entity: binary_sensor.front_yard_person_occupancy
name: Front name: Front
tap_action: tap_action:
+5 -3
View File
@@ -18,9 +18,11 @@ sequence:
timeout: '00:00:06' timeout: '00:00:06'
continue_on_timeout: 'true' continue_on_timeout: 'true'
# Send an audio alert # Send an audio alert
- service: tts.google_translate_say - action: tts.speak
data_template: target:
entity_id: media_player.master_bedroom_clock entity_id: tts.google_translate_en_com
data:
media_player_entity_id: media_player.master_bedroom_clock
message: >- message: >-
The following are open: {{ dict((states|selectattr('entity_id', 'in', state_attr('group.my_exterior_doors', 'entity_id'))|list)|groupby('state'))['on']|map(attribute='name')|list|join(', ') }} The following are open: {{ dict((states|selectattr('entity_id', 'in', state_attr('group.my_exterior_doors', 'entity_id'))|list)|groupby('state'))['on']|map(attribute='name')|list|join(', ') }}
- delay: '00:00:02' - delay: '00:00:02'
@@ -25,7 +25,7 @@ sequence:
- action: media_player.play_media - action: media_player.play_media
data: data:
media_content_id: media-source://media_source/local/Sounds/alarms/Alarm_Clock.mp3 media_content_id: media-source://media_source/local/sounds/alarms/Alarm_Clock.mp3
media_content_type: music media_content_type: music
target: target:
entity_id: media_player.master_bedroom_clock entity_id: media_player.master_bedroom_clock
@@ -36,9 +36,11 @@ sequence:
seconds: 12 seconds: 12
milliseconds: 0 milliseconds: 0
- action: tts.google_translate_say - action: tts.speak
target:
entity_id: tts.google_translate_en_com
data: data:
entity_id: media_player.master_bedroom_clock media_player_entity_id: media_player.master_bedroom_clock
message: "{{ response.text }}" message: "{{ response.text }}"
# - action: tts.speak # - action: tts.speak
@@ -13,8 +13,8 @@ sequence:
{% else %} {% else %}
{{ states("input_select.bridget_status_dropdown") }} {{ states("input_select.bridget_status_dropdown") }}
{% endif %} {% endif %}
{% elif is_state('binary_sensor.have_custody', 'off') %} {% elif is_state('binary_sensor.have_custody', 'off') or is_state('input_select.weaver_kids', 'Away') %}
Off week With Sarah
{% elif is_state('input_boolean.clint_work_from_home', 'on') %} {% elif is_state('input_boolean.clint_work_from_home', 'on') %}
At Childcare At Childcare
{% else %} {% else %}
+3 -3
View File
@@ -17,7 +17,7 @@ sequence:
entity_id: entity_id:
- media_player.bathroom_mini - media_player.bathroom_mini
data: data:
media_content_id: media-source://media_source/local/Sounds/tts/taking_morning_meds.mp3 media_content_id: media-source://media_source/local/sounds/tts/taking_morning_meds.mp3
media_content_type: "audio/mpeg" media_content_type: "audio/mpeg"
- conditions: - conditions:
- alias: "Afternoon meds needed" - alias: "Afternoon meds needed"
@@ -34,7 +34,7 @@ sequence:
entity_id: entity_id:
- media_player.bathroom_mini - media_player.bathroom_mini
data: data:
media_content_id: media-source://media_source/local/Sounds/tts/taking_afternoon_meds.mp3 media_content_id: media-source://media_source/local/sounds/tts/taking_afternoon_meds.mp3
media_content_type: "audio/mpeg" media_content_type: "audio/mpeg"
default: default:
- service: media_player.play_media - service: media_player.play_media
@@ -42,5 +42,5 @@ sequence:
entity_id: entity_id:
- media_player.bathroom_mini - media_player.bathroom_mini
data: data:
media_content_id: media-source://media_source/local/Sounds/tts/meds_not_needed.mp3 media_content_id: media-source://media_source/local/sounds/tts/meds_not_needed.mp3
media_content_type: "audio/mpeg" media_content_type: "audio/mpeg"
@@ -5,18 +5,18 @@ sequence:
data_template: data_template:
entity_id: input_text.person_emmett entity_id: input_text.person_emmett
value: >- value: >-
{% if is_state('input_boolean.emmett_home', 'on') %} {% if is_state('input_boolean.bridget_home', 'on') %}
{% if is_state('input_boolean.emmett_is_awake','off') %} {% if is_state('input_boolean.bridget_is_awake','off') %}
Sleeping Sleeping
{% elif is_state('input_boolean.emmett_in_bed','on') %} {% elif is_state('input_boolean.bridget_in_bed','on') %}
In bed In bed
{% else %} {% else %}
{{ states("input_select.emmett_status_dropdown") }} {{ states("input_select.bridget_status_dropdown") }}
{% endif %} {% endif %}
{% elif is_state('binary_sensor.have_custody', 'off') %} {% elif is_state('binary_sensor.have_custody', 'off') or is_state('input_select.weaver_kids', 'Away') %}
Off week With Sarah
{% elif is_state('input_boolean.clint_work_from_home', 'on') %} {% elif is_state('input_boolean.clint_work_from_home', 'on') %}
At Childcare At Childcare
{% else %} {% else %}
Somewhere Somewhere
{% endif %} {% endif %}