Can't manage to call scripts from another script

Hi
I’m trying to call scripts from another script
I’m using the latest stable version of Hassbian.
I’m using the UI to define the script.

When I’m trying to call the super script i’ve got the following error:
2018-11-04 15:09:39 ERROR (MainThread) [homeassistant.core] Invalid service data for script.turn_on: Entity ID sonos_group_cuisine_sejour is an invalid entity id for dictionary value @ data['entity_id']. Got ['sonos_group_cuisine_sejour']

In my scripts.yml file I have:
‘1541342467246’:
alias: sonos_group_cuisine_sejour
sequence:
- data:
entity_id:
- media_player.sejour
master: media_player.cuisine
service: media_player.sonos_join
‘1541343091995’:
alias: Morning
sequence:
- data:
entity_id:
- script.sonos_group_cuisine_sejour
service: script.turn_on

I also tried to call sonos_group_cuisine_sejour but it’s not working anymore

Got any idea of the issue?

From what you’ve put there your scripts entity_id would be script.1541342467246

Oh thanks!
Cause alias is not working?

Indeed, it’s working using script.1541342467246
But what’s the purpose of “alias” ?

Alias for scripts is the name that appears on the UI

Ok got it ! Thanks you very much

1 Like