OK.. as the Sonos integration has been released it's time for an app
As I've only had a short time to test this since the integration was released, I'm calling this a BETA
Hopefully, when a few more people test it, if everything is ok then I'll mark it as a release.
PLEASE if you find any bugs or find it doesn't work for you let me know.. I can't fix what I don't know about
This will allow you to play any mp3 hosted on a website, either locally or on the internet, as a reaction to an event.
(It's fairly basic but seems to work well for me)
Events you can use to play an mp3:
- Appliance Power Monitor - Great for laundry notifications.
- Contact Open/Closed
- Carbon Monoxide Detected
- Presence - Arrival/Departure
- Leak Detected
- Mode Change
- Motion Active
- Smoke Detected
- Switch - ON/OFF
- Time - Schedule a reminder
This is a Parent/Child app setup so you need to install both bits of code for this to work.
I suggest you install both parts and then 'Load New app' (for just the parent) then save it before creating any new events (which will use the child to create new apps within the parent)
OK... Here is the code.. hopefully someone will find it useful
I have been using Amazon Polly to create and download a number of MP3s for my events
(Until we get TTS - Then I can do a lot more)
You will need to create a free account to use Polly
Then you can just host them somewhere and use the event player.
For testing purposes…
I have uploaded a test file to one of my websites to confirm everything is working ok.
If you configure an event (e.g. virtual switch to ON) you can use this test file to confirm everything is ok with your Sonos setup…
I forgot to mention… ALL URI and filenames are case sensitive…