Help setting up alexa tts card

Any idea how can I move the script from Configuration.yaml and create the Script in Helpers directly?

Scripts can’t be created in Helpers… they can be set up using the Script editor… is that what you are asking or did you mean the Template sensor?

Yes, I apologize. I meant the Template Sensor.

Also, thank you very much for your guidance on this.

The first thing to do is to delete the sensor configuration from configuration.yaml, then restart HA.

In the Template Sensor Helper editor fill in the “Name*” field and paste the State template in the field marked “State template*”… leave all the other fields empty.

For sensor.alexa_selector it should look something like:

Trying everything, but still getting this error on commands:

Failed to perform the action script/send_alexa_command. not a valid value for dictionary value @ data[‘entity_id’]

And no sounds on announcements.

Is the sensor showing a state?

What does the script’s debug trace show?

Ok, I almost got it!

The issue was in the Sensor. It was showing media_player.media_player.“xxx”. Deleted the media_player. from the echo_select options and now I have sound.

Except - all it’s saying is “Unknown” on any text or command.

Is your missing Entity ID solution still the case if the sound coming out of the device selected is just saying “unknown” on requests?

Check the state of the input text.

How do I check that?

Find your input text entity, click it, and you should get a pop-up like:

image

The current state can be found in the box where the cursor is and it says “testing” in the example above.

Got it! I was missing the Input Text Integration. I had the HACS : Lovelace Text Input Row installed, but added the native one and updated the scripts and cards accordingly.

Works now! Thanks!