I had a lot of fun setting messages to Alexa when things happen in Smartthings (arm, disarm, home, alarm off, weather warnings, etc). I followed great instructions from Justin to use Voice Monkey features in Sharptools rules.(https://www.youtube.com/channel/UCeOXEMLMJR9ZjpUVeoBDZAg).
But what if user like to max volume when alarm goes off?.
Also is not possible send a command to Alexa from Smartthings or Sharptools to launch a specific routine, the Alexa routines only can be triggered when a Smartthings sensor is closed/opened (contact or motion), but this is a walkaround for this restrictions.
Create 3 virtual contact sensors in Smartthings IDE (Simulated Contact Sensor): Echo Volume High, Echo Volume Med and Echo Volume Low.
Create a Sharptools variable $EchoVolume
Create a Sharptools rule in order to “open” the correspondent contact sensor depending of $EchoVolume variable value (H for high, M for medium, L for low), close other 2 contact sensors.
In your Sharptools rules set the $EchoVolume variable according of your need (H, M, L). Remember turn back to default volume you want after command finishes.
In Alexa app, create 3 routines: Volume High, Volume Medium, Volume Low, the trigger is the Smartthings contact sensor when it switches to open status, and the action is to adjust the device volume, for example High= Volume 7, Med= Volume 5, Low=Volume 3.
Use same logic to trigger any routine, for example when Smartthings Weather device is forecasting rain the virtual contact “Announce Weather” is opened, then an Alexa routine is triggered with weather announcement.
NOTE: Remember adjust your Smartthings STHM to discard your new virtual contact sensors, by default STHM can include them to trigger the alarm (happened to me )
I hope this help some of you.