DrNik
February 20, 2025, 6:36pm
1
Dear community,
So the Unifi Protect integration adds a Media Player entity for each camera, but I’ve been completely unable the get any sounds out of them (TTS, wav file, Music Assistant, …).
My cameras are AI Pro, some with Vision Enhancer. Speakers works fine when sending audio through mic.
Does anyone have this working and can share tips? Thanks!!
DrNik
February 21, 2025, 9:32am
3
There’s nothing showing in my logs (core or audio logs)… speaker just stays silent. Would you have any other troubleshooting tips?
Thanks!
Not sure how you are trying to do it but this works for me to play an mp3 when the G4 doorbell is pushed
alias: Notify if Front Doorbell pushed Halloween
description: ""
triggers:
- entity_id:
- binary_sensor.doorbell_doorbell
from: "off"
to: "on"
trigger: state
conditions: []
actions:
- action: media_player.play_media
data:
media_content_type: music
media_content_id: http://192.168.1.40:8123/local/sounds/halloween_doorbell_sound2.mp3
target:
entity_id:
- media_player.doorbell_speaker
and this script for TTS
sequence:
- data:
entity_id: media_player.doorbell_speaker
message: Hello
action: tts.cloud_say
alias: Doorbell Say Hello
mode: single
1 Like
DrNik
February 21, 2025, 1:37pm
5
Thanks; I’ve tried wrapping it into an automation, with this action:
action: media_player.play_media
metadata:
title: 9000g.wav
thumbnail: null
media_class: music
children_media_class: null
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://media_source
data:
media_content_id: media-source://media_source/local/9000g.wav
media_content_type: audio/x-wav
target:
entity_id: media_player.ai_pro_speaker
but to no avail… silence throughout
nickrout
(Nick Rout)
February 21, 2025, 7:13pm
6
The automation will have trace data after it has been triggered. That may give some clues.