I created a custom script, and want to call it within another script. From programming point of view: call a private function from another function inside the same class.
I though it would be as easy as follows, but it does not work:
scripts.yaml:
alexa_setvolume:
sequence:
- service: media_player.volume_set
data_template:
entity_id: media_player.my_echo_dot
volume_level: "{{ alexa_volume }}"
alexa_announce:
sequence:
- service: alexa_setvolume
data:
alexa_volume: 0.6
...
Result:
Invalid config for [script]: Service alexa_setvolume does not match format <domain>.<name> for dictionary value
Why?