mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
Updated media directory name
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user