#```Logger: homeassistant.core

1 messages Β· Page 1 of 1 (latest)

prime frigate
#

let's not pollute the main thread

late shadow
#

got it πŸ™‚

prime frigate
#

there's nothing more than "error executing service"? some details or anything?

late shadow
#

so it already generated a mp3 response. i can play it fine in my browser as well.

#

The full log is this:

#
Source: core.py:2165
First occurred: 09:52:52 (1 occurrences)
Last logged: 09:52:52

Error executing service: <ServiceCall media_player.play_media (c:01HQT1200RP9HT7ADAHMRS166G): entity_id=[β€˜media_player.living_room’], extra=, media_type=audio/mpeg, media_id=http://192.168.1.184:8123/api/tts_proxy/dae2cdcb27a1d1c3b07ba2c7db91480f9d4bfd8f_en-us_c24b9e1de0_tts.piper.mp3>
Traceback (most recent call last):
File β€œ/usr/src/homeassistant/homeassistant/core.py”, line 2165, in _run_service_call_catch_exceptions
await coro_or_task
File β€œ/usr/src/homeassistant/homeassistant/core.py”, line 2186, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File β€œ/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 272, in handle_service
return await service.entity_service_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File β€œ/usr/src/homeassistant/homeassistant/helpers/service.py”, line 882, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File β€œ/usr/src/homeassistant/homeassistant/helpers/service.py”, line 952, in _handle_entity_call
result = await task
^^^^^^^^^^
File β€œ/config/custom_components/webrtc/media_player.py”, line 74, in async_play_media
assert r.ok
AssertionError```
#

but when i put the mp3 in a manual media player play command, it also gives the error.

#

The following automation yaml gives that error:

metadata:
  title: wolf-howl.mp3
  thumbnail: null
  media_class: music
  children_media_class: null
  navigateIds:
    - {}
    - media_content_type: app
      media_content_id: media-source://media_source
    - media_content_type: ""
      media_content_id: media-source://media_source/local/sounds
data:
  media_content_id: >-
    media_id=http://192.168.1.184:8123/api/tts_proxy/dae2cdcb27a1d1c3b07ba2c7db91480f9d4bfd8f_en-us_c24b9e1de0_tts.piper.mp3
  media_content_type: audio/mpeg
target:
  entity_id:
    - media_player.living_room```
#

where as a simple sound (like the assistant activation sound) works fine. i can also play it in mediaplayer fine.

#

so as example, the following works without a problem:

metadata:
title: wolf-howl.mp3
thumbnail: null
media_class: music
children_media_class: null
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://media_source
- media_content_type: β€œβ€
media_content_id: media-source://media_source/local/sounds
data:
media_content_id: media-source://media_source/local/sounds/argon.mp3
media_content_type: audio/mpeg
target:
entity_id:
- media_player.living_room```
prime frigate
#

what assistant activation sound?

#

please, please, please, fill this out: "I want to <goal>, so I've performed <setup> and tried <action>. I was expecting <expected result>, but instead got <actual result>"

late shadow
#

i am using stream assist for assistant. it has the option to play a sound when the wake word is detected.

prime frigate
#

yeah, but it's important that you mention everything, you know? πŸ™‚

#

how are you expecting anyone to guess?

late shadow
#

I want to hear a response from my assistant, so i've set up wyoming, piper, whisper, openwakeword and finally stream assist to do so. I expected the camera to play the TTS response, but it fails to do so.

prime frigate
#

have you tested piper individually?

late shadow
#

instead, i got a TTS response generated as can be seen in the logs, but it is not playing. a mediaplayer servicecall also does not work.

prime frigate
#

hold your horses and let me help, please

#

have you tested that piper works?

late shadow
#

piper was responsible for TTS right? text to speech.

prime frigate
#

yes

#

use a media_player that you know is working with anything else

late shadow
#

thats a good help resource. just tried, works.

prime frigate
#

ok, good. now... have you created a pipeline? i'm guessing yes

#

select your pipeline and click dotsvertical in the upper-right corner, then select Debug and Run text pipeline

#

if the option Run text pipeline does not appear at first, but only older conversation logs, click the voice icon in the top-right corner and click Run text pipeline

#

let me know when you hade done that

late shadow
prime frigate
#

that is a pipeline, yes

#

"an assistant" = "an assist pipeline"

#

run the text pipeline and input a sentence (in text mode)

late shadow
prime frigate
#

if it works there, it will work when you speak the sentence. if it doesn't, then you can mention lights and 50% all you want, it's still not going to work

prime frigate
late shadow
#

i see what youre trying to show me. i can use this for testing commands

prime frigate
#

no, what i'm doing is that i'm breaking down your mega-problem which you think is monolithic into smaller, manageable sub-problems which are solvable and debuggable

#

my point is: pick a sentence which works

#

and does what you expect it to do

#

if none works and you don't know why, follow the post i've given you (again). if you still don't understand why, report what you've tried

late shadow
#

i expected one of these to work, but il look into it, thanks πŸ˜„

prime frigate
#

neither of those will work. you're telling it to dim all the lights in your home to 50% and we haven't implemented that

#

try "set the brightness in the living room to 50%"

prime frigate
late shadow
#

ah. i added a light to the living-room group, and the camera is in living-room

prime frigate
#

the camera is not important

#

so you have an entity called light.something assigned to an area called living room?

late shadow
#

yep

prime frigate
#

and the entity supports brightness?

late shadow
#

yep, its a helper. light group.

prime frigate
#

and you've tried the sentence i've written earlier?

late shadow
#

yeah, it couldnt understand that, but it doesnt report a "no_intent_match"

#

probably linkage to living-room isnt working a 100%.

prime frigate
#

there's no such thing as partially working. either you have a living room area and a light assigned to that area or not

late shadow
#

haha, fair enough πŸ˜„

prime frigate
#

do you have an area called living room?

#

btw, what version of HA are you using?

#

we're at 25 minutes of free dedicated support here. i'd appreciate it if you'd be mindful of my time, since you've been so demanding after claiming that "it doesn't work" after apparently not reading the tutorials i've sent yesterday

late shadow
#

Sorry for taking so much of your time. I also have a baby that needs my careπŸ˜…πŸ˜„

#

2024.1.6

#

by the way im convinced it works and that its of course something on my end.

#

the problem that my camera doesnt play a response from the assistant is currently what i find weird and what is maybe a bug.

prime frigate
#

ok, cheers!

late shadow
#

i am not on 2024.2.5 because problems with telegram bot.

late shadow
prime frigate
#

dude, it takes you 6 minutes to NOT answer a simple question, asked at least 2-3 times: do you have an area called living room

#

i'm out, sorry

late shadow
#

i was working on answeringyour questions and comments as you've seen. maybe i should have responded in one larger message.