Using Alexa TTS to Announce Opening of Alarm Zone

sigh didn’t realise we could use Reactor natively for TTS!

Thanks!

C

Any action declared and supported by any device.

1 Like

Nice catch, I didn’t notice in the service definition. I will add GroupDevices to a future release, because for VeraAlexa groups or devices are used in the same way.

Let me know if I can be of any help clarifying their usage/values. I also see you’ve added Repeat to the action, which is a great power-up, so I’ll carry that into Sonos when I get home.

1 Like

Thanks everyone who chimed in! I finally got it working, and have learnt a lot in the process. :slight_smile: Last question do expressions use more up more memory than a regular reactor activity? Noticed since I added the expressions ive been sitting at a lower ~130,000 KB

Temporary memory spikes during evaluation, but relatively small (a few K). The bigger hit is that LuaXP (the expression parser/evaluator) has to be loaded. If no expressions are used at all, no need. But one instance is shared among all ReactorSensors, so it’s unlikely to be consequential.

Also expressions vs activities is not a comparison… ecpressions vs conditions would be more correct.

By loaded Im assuming you mean clicking the ‘Results export to state variable’, in my case I had it clicked but from reading the docs id only need it if I was using the expression results outside the RS itself.

No, the existence of any expression requires the evaluator to be loaded. Export state does not matter. But don’t sweat it, it’s not large enough to worry about except maybe on an unreasonably-loaded Lite.

1 Like

Rigpapa,
I know I am asking alot here, but would it be possible to write a description of the steps to follow in order to get Alexa to speak based on my Vera Plus actions.
Everyone mentions writing ( Expression and Reactors ) where does one write the required information.
I would know where to start.
Thank You
Dom

I’ll get on it!

1 Like

So here is my setup, there may be a few issues with it but in my preliminary testing it works. The conditions only allow zone announcments when the house is night/away/vacation mode and the alarm is armed and any of my alarm zones are opened. (see screenshot)


The expressions I have shown are pretty cut and paste, for the ‘sensors’ expression all the numbers are the Device ID numbers of the zones that I want to be monitored for a state change. The ‘message’ expression is also cut and paste and you can add or remove other text in the same manner.

For the activities in my case im using the Alexa TTS plugin for my Sonos/echo devices. You can use any other TTS plugin, as long as your referencing the expression in curly brackets {} and adding nothing else in the text variable. To reference a result of an expression simply put the name of the expression, for my example ‘message’, in curly brackets: {message}

My setup can be altered to work at anytime during the day by simply removing the ‘Night/Away Mode or Armed’ condition and adding any other conditions as needed. Again I want to thank everyone who chipped in and helped me out, truly have opened many doors for more advanced automation.

Thanks Pabla, I was able to view some of the videos posted on You Tube, by rigpapa, they were great it gave me some insight on how to get started.

And now with your added input makes the whole process much more understandable.

Thankn You so much.

1 Like

Let me know if you have anymore questions!