Failed to call service script/script_name

Hello all,

Since i updated my Home assistance to core_2021.7.4, i got this error :
Failed to call service script/script_name
on all script with : media_player.Google_home

here is an exemple of my script :

alias: Petit Curieux
sequence:
  - service: media_player.play_media
    data:
      media_content_id: /media/local/Petit Curieux - Chose à savoir/{{range(1,289)|random}}.mp3
      media_content_type: audio/mp3
    entity_id: media_player.mini_nour
mode: single

Any idea ?

Thnaks

media_player.Google_home isn’t a valid entity.

That said, your script doesn’t reference that…

media_player.Google_home it worked before the upgrade !

Entities with capital letters have never been valid.

1 Like

sorry, it was just an exemple: here is my full script, this one worked before

alias: Petit Curieux
sequence:
  - service: media_player.play_media
    data:
      media_content_id: /media/local/Petit Curieux - Chose à savoir/{{range(1,289)|random}}.mp3
      media_content_type: audio/mp3
    entity_id: media_player.mini_nour
mode: single

Made up examples don’t help us help you

Does the script exist in Developer tools → States?

If so can you call it from Developer tools → Services?

Hello,

it’s seems related to internal and external URL :

2021-07-25 18:11:10 ERROR (Thread-10) [homeassistant.components.cast.media_player] Failed to cast media http://MY_PRIVATE_URL/media/local/mp3/1.mp3. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address

Put the URL in your web browser, does it work?

From experience if you’re using DNS that DNS has to be globally resolvable (that is, private DNS won’t work). A local IP is fine.

Hello,

Issue resolved by adding internal and external URL in configuration.yaml file

Thanks for the tip

Hello!
I have the same problem. This error appears both with internal and external url.

Internal one: http://192.168.1.108:8123
External: https://*.dataplicity.io

Both urls are reachable from browser.

I doubt you have the exact same problem, and your post doesn’t give any details of exactly what your problem is.

With zero context, I’d guess your solution is … checks 8-ball … to try turning the power to the house off and then on.

Sorry. The error is:

Failed to cast media http://192.168.1.108:8123/api/tts_proxy/768688326452736e111c5f9a17a7f6adbe39c73a_ru-ru_-_yandextts.lpcm from tts.base_url (http://192.168.1.108:8123). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address

UPD: i solve this problem by change codec from lpcm to oggopus. It looks like Google stopped to understand lpcm or integration broken.