Output speech to Alexa based on state

Cover

Garage%20-%20switch

This is in the data because it was cut off in the picture

{"message":"Garage Door Is Opening","data":{"type":"announce"}}
2 Likes

give this error
msg : string[73]

“Call-service API error. Error Message: extra keys not allowed @ data[‘0’]”
i don’t know why

https://pastebin.com/bAbdwbi5

Try to delete double quotations “ and retype double quote " again.

JSON

3 Likes

Just add a switch node before.
Set it to delete the msg.payload

Is this possible using node-red automatons?

I don’t see why not, but I don’t use node-red… yet. I’m considering doing so, so if you experiment and it does work, please report back. :slight_smile:

Thanks Dixey, trying it now.

@Dixey are you in the US?
I’ve got something that says it has been called, but my echo isnt speaking, so i’m trying to figure out if it location restricted.
just need someone to test to see it it works.

My call service node looks like this, and i’ve just used an inject timestamp node (changed to on) to activate. I can see the service has been called, but get no sound. If i change it announce she speaks but just says what is in the brackets (as expected)

On the Alexa.Traffic.Play sequence, make sure you have already plugged into your Amazon Alexa account; Settings, Traffic, your home and your destination addresses.

yup. already have that I ask alexa about weather and traffic all the time. I’ve tried alex.joke.play, alexa.weather.play and alexa.funfact.play but still she says nothing. lol

I’ve tried to call a tunein station via media play, but getting an API error:

These work for me:
AlexJoke

and
AlexRadio

literally just figured this out just before checking back on this page.

thanks @Patrick123

2 Likes

Hallo,
With the info above i’m able to call the service with no errors… however echo is silent
Any hint?

I’m trying to have Alexa reading a Test message

Thanks

Matteo

Edit: I solved by myself, i was connected to the wrong amazon domain (amazon.com instead of amazon.it)

This got me running, thanks!

Thank you! I’ve had the wrong url all this time.

Thank you!! this helped me

Anyone managed to output TTS via Alexa? I tried both Node-Red and via Automation but nothing works…

Yes. It’s possible. Check out the Alexa Media integration.

I recommend using HACS to load it.

1 Like

I got it to work thanks!
On another note, installed HACS but couldn’t figure out where it was located :slight_smile:

Here’s a couple of tutorials I’ve made that may help someone:

“HomeAssistant Alexa: How to make TTS Better - Using Scripts”

And the Node-Red Version:

“HomeAssistant #Alexa: How to make TTS Better - Using #NodeRed

4 Likes