Sonos announcements


#1

Can someone help me add a Sonos announcement to this piston it would say shut the windows pleaae. For the life of me I cannot figure out how to get my Sonos to announce any speech did I put in to a piston.

//
/* Window Reminder */
/
/
/* Author : Bobby Wells /
/
Created : 2/2/2021, 2:02:55 PM /
/
Modified : 2/8/2021, 10:20:00 PM /
/
Build : 3 /
/
UI version : v0.3.113.20210203 */
/**************************************************************/

execute

every day, at 9:00:00 PM
do
if
Any of Office Window 1’s or Office Window 2’s contact is open
then
with
Bobby’s iPhone 12 and Dona Wells
do
Send SMS notification “Office Windows are open” to xxxxxxxxxx and store in Messages;
Send SMS notification “Office Windows are open” to xxxxxxxxxx and store in Messages;
end with;
with
Location
do
Set switch to on;
end with;
end if;
end every;
end execute;
Edit


#2

Unfortunately, this functionality has been removed from ST.

There are other solutions available, I use the jishi solution on a raspberry PI. There are a number of discussions on here about using it.


#3

Well thank you very much I haven’t been on a lot and did not see the threads about this topic. My workaround has been to use a virtual device to trigger a routine in Alexa and that works but I was hoping to contain it all in a piston.


#4

I’ve seen people using that solution, and think it works well if your text is fixed e.g “please shut the window” The PI solution allows you to send messages with variables in the URL from webcore, which gives more flexibility.

If you don’t have a PI, the jishi app will run on windows once you’ve installed node.js