mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
Updated media directory name
This commit is contained in:
@@ -8,6 +8,7 @@ trigger:
|
||||
# Bridget moved
|
||||
- platform: state
|
||||
entity_id:
|
||||
- input_select.weaver_kids
|
||||
- input_select.bridget_status_dropdown
|
||||
- input_boolean.bridget_home
|
||||
# Clint moved
|
||||
@@ -23,5 +24,5 @@ condition:
|
||||
value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
|
||||
|
||||
action:
|
||||
- service: script.turn_on
|
||||
- action: script.turn_on
|
||||
entity_id: script.bridget_travel_sensor
|
||||
@@ -2,10 +2,11 @@ alias: Emmett Location Update
|
||||
id: automation_emmett_location_update
|
||||
mode: restart
|
||||
|
||||
trigger:
|
||||
triggers:
|
||||
# Emmett moved
|
||||
- platform: state
|
||||
- trigger: state
|
||||
entity_id:
|
||||
- input_select.weaver_kids
|
||||
- input_select.emmett_status_dropdown
|
||||
- input_boolean.emmett_home
|
||||
# Clint moved
|
||||
@@ -20,6 +21,6 @@ condition:
|
||||
- condition: template
|
||||
value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
|
||||
|
||||
action:
|
||||
- service: script.turn_on
|
||||
actions:
|
||||
- action: script.turn_on
|
||||
entity_id: script.emmett_travel_sensor
|
||||
|
||||
@@ -37,13 +37,13 @@ action:
|
||||
- media_player.bathroom_mini
|
||||
- media_player.kitchen
|
||||
- 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
|
||||
default:
|
||||
- service: script.make_clever_announcement
|
||||
data:
|
||||
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
|
||||
|
||||
# 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
|
||||
|
||||
@@ -20,7 +20,7 @@ condition:
|
||||
entity_id: input_boolean.ebin_home
|
||||
state: 'on'
|
||||
action:
|
||||
- service: media_player.volume_set
|
||||
- action: media_player.volume_set
|
||||
data_template:
|
||||
entity_id:
|
||||
- media_player.bathroom_mini
|
||||
@@ -31,9 +31,11 @@ action:
|
||||
- media_player.master_bedroom_clock
|
||||
volume_level: 0.7
|
||||
- delay: '00:00:03'
|
||||
- service: tts.google_translate_say
|
||||
entity_id: media_player.all_speakers
|
||||
data_template:
|
||||
- action: tts.speak
|
||||
target:
|
||||
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.
|
||||
- delay: '00:00:10'
|
||||
- service: media_player.turn_off
|
||||
|
||||
@@ -28,9 +28,11 @@ action:
|
||||
data_template:
|
||||
volume_level: 0.30
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
- service: tts.google_translate_say
|
||||
data_template:
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
- action: tts.speak
|
||||
target:
|
||||
entity_id: tts.google_translate_en_com
|
||||
data:
|
||||
media_player_entity_id: media_player.master_bedroom_clock
|
||||
message: >-
|
||||
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(', ') }}
|
||||
|
||||
@@ -40,23 +40,23 @@ action:
|
||||
{% if is_state('input_boolean.emmett_home', 'on') %}
|
||||
{% if is_state('input_boolean.bridget_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 %}
|
||||
media-source://media_source/local/Sounds/tts/goodnight_emmett_bridget.mp3
|
||||
media-source://media_source/local/sounds/tts/goodnight_emmett_bridget.mp3
|
||||
{% endif %}
|
||||
{% 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 %}
|
||||
media-source://media_source/local/Sounds/tts/goodnight_emmett.mp3
|
||||
media-source://media_source/local/sounds/tts/goodnight_emmett.mp3
|
||||
{% endif %}
|
||||
{% elif is_state('input_boolean.bridget_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 %}
|
||||
media-source://media_source/local/Sounds/tts/goodnight_bridget.mp3
|
||||
media-source://media_source/local/sounds/tts/goodnight_bridget.mp3
|
||||
{% endif %}
|
||||
{% 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 %}
|
||||
volume: 0.7
|
||||
default:
|
||||
@@ -67,23 +67,23 @@ action:
|
||||
{% if is_state('input_boolean.emmett_home', 'on') %}
|
||||
{% if is_state('input_boolean.bridget_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 %}
|
||||
media-source://media_source/local/Sounds/tts/goodnight_emmett_bridget.mp3
|
||||
media-source://media_source/local/sounds/tts/goodnight_emmett_bridget.mp3
|
||||
{% endif %}
|
||||
{% 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 %}
|
||||
media-source://media_source/local/Sounds/tts/goodnight_emmett.mp3
|
||||
media-source://media_source/local/sounds/tts/goodnight_emmett.mp3
|
||||
{% endif %}
|
||||
{% elif is_state('input_boolean.bridget_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 %}
|
||||
media-source://media_source/local/Sounds/tts/goodnight_bridget.mp3
|
||||
media-source://media_source/local/sounds/tts/goodnight_bridget.mp3
|
||||
{% endif %}
|
||||
{% 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 %}
|
||||
volume: 0.7
|
||||
|
||||
|
||||
@@ -8,9 +8,11 @@ trigger:
|
||||
for: "00:00:10"
|
||||
|
||||
action:
|
||||
- service: tts.google_translate_say
|
||||
entity_id: media_player.front_room_hub, media_player.bathroom_mini, media_player.kitchen, media_player.master_bedroom_clock
|
||||
- action: tts.speak
|
||||
target:
|
||||
entity_id: tts.google_translate_en_com
|
||||
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!
|
||||
|
||||
- service: notify.mobile_app_pixel_7
|
||||
|
||||
@@ -5,20 +5,17 @@ mode: single
|
||||
max_exceeded: silent
|
||||
|
||||
trigger:
|
||||
- platform: template
|
||||
value_template: "{% if is_state('binary_sensor.nursery_door_person_occupancy','on') and is_state('binary_sensor.nursery_door','off')%}true{%endif%}"
|
||||
|
||||
- platform: state
|
||||
- trigger: state
|
||||
entity_id: binary_sensor.black_bed_occupied
|
||||
from: "on"
|
||||
to: "off"
|
||||
for: "00:00:05"
|
||||
- platform: state
|
||||
- trigger: state
|
||||
entity_id: input_boolean.white_bed_occupied
|
||||
from: "on"
|
||||
to: "off"
|
||||
for: "00:00:05"
|
||||
- platform: state
|
||||
- trigger: state
|
||||
entity_id: binary_sensor.nursery_door
|
||||
from: "off"
|
||||
to: "on"
|
||||
@@ -95,7 +92,7 @@ action:
|
||||
entity_id: binary_sensor.garage_occupied
|
||||
state: "on"
|
||||
sequence:
|
||||
- service: script.blink_garage_lights
|
||||
- action: script.blink_garage_lights
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
@@ -103,7 +100,7 @@ action:
|
||||
entity_id: binary_sensor.computer_area_occupied
|
||||
state: "on"
|
||||
sequence:
|
||||
- service: webrtc.dash_cast
|
||||
- action: webrtc.dash_cast
|
||||
data:
|
||||
entity_id: media_player.computer_area_hub
|
||||
url: rtsp_cam08_sub
|
||||
@@ -117,7 +114,7 @@ action:
|
||||
entity_id: binary_sensor.front_room_occupied
|
||||
state: "on"
|
||||
sequence:
|
||||
- service: webrtc.dash_cast
|
||||
- action: webrtc.dash_cast
|
||||
data:
|
||||
entity_id: media_player.front_room_hub
|
||||
url: rtsp_cam08_sub
|
||||
@@ -127,7 +124,7 @@ action:
|
||||
|
||||
- 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
|
||||
|
||||
# - alias: "Flash some lights"
|
||||
|
||||
@@ -8,21 +8,20 @@ trigger:
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: media_player.ma_nursery_hub
|
||||
state: "playing"
|
||||
sequence:
|
||||
- service: media_player.media_stop
|
||||
target:
|
||||
- conditions:
|
||||
- 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
|
||||
|
||||
#- service: input_select.select_option
|
||||
# data:
|
||||
# entity_id: input_select.nursery_mode
|
||||
# option: 'Off'
|
||||
|
||||
|
||||
# The kids can turn on their own sounds. Just stop the music
|
||||
# - service: media_player.volume_set
|
||||
# data:
|
||||
@@ -34,7 +33,5 @@ action:
|
||||
# target:
|
||||
# entity_id: media_player.nursery_hub
|
||||
# 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
|
||||
|
||||
|
||||
|
||||
@@ -54,5 +54,4 @@ action:
|
||||
- alias: "Announce that the coffee is ready"
|
||||
service: script.make_clever_announcement
|
||||
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
|
||||
|
||||
@@ -46,7 +46,7 @@ action:
|
||||
sequence:
|
||||
- service: script.make_clever_announcement
|
||||
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:
|
||||
- conditions:
|
||||
|
||||
Reference in New Issue
Block a user