Open Combie81 opened 4 years ago
Use 'announce' not TTS
Also, check your punctuation. E.G. This works:
"<amazon:effect name ='whispered'>this is a test</amazon:effect>"
Thanks for the incredibly quick replies :)
No joy - I get the following errors: "Incorrect type. Expected "object"." - line 1 "bad indentation of a mapping entry" - lines 18 & 20 "bad indentation of a sequence entry" - line 19 "end of the stream or a document seperator is expected" - lines 21-25 "unecpected end of the stream within a single quoted scalar" - line 26
tts_adults_light_off: alias: TTS Adults Light off sequence:
service: notify.alexa_media data_template: target:
"{{ states.sensor.last_alexa.state }}" data: type: announce message: '{{ [ "Turning off Adults light... ", "Adults Light off... ", "Adults Light powering down... ", "Shutting down Adults lighting... ", "Adults light is now off... ", ]|random +[
"
Oh hang a minute.... you're doing this with scripts and not Node-Red, right?
Hmmm, I could only get those "amazon emotions" working in Node-Red.
Lemme have a think about it and I'll get back to you
Yeah, I've not taken the plunge down that rabbit hole yet! I really should look into it but setup isn't really needing more complexity atm..... hopefully I'll get a bit of time to go through some of Drzzs tutorials on it :P
Just had a thought and am wondering if an escape char is required? like \ or ^ or whatever it uses?
Sorry for the slow replies, work has taken a step up lately and It's been hectic here.
I know the feeling! There's no rush - it's your free time so I'm glad of any help :)
Can you add emotions to the random selections? If so, how? I tried but it seems to read them out rather than convert and action them.