I have created an Athom App that makes use of node-sonos-http-api to send out speech from your flow. Setup up a node-sonos, install the app, point the settings to your node-sonos instans. Then you just add the Text to Speech in your flow and wola, your sonos will start talking.
Since the app needs you to install node-sonos on a separat instance the app will not be approved for the official app store (tried and got declined).
But for you who want, you can download it here and run it: Sonos-Say Github
Tried it yesterday. Works really nice. Donāt forget the ā/ā at the end: http://:5005/ .
Also have some suggestions:
Would be nice if you can configure the volume from the flowcard. Or maybe donāt set a specific volume from settings, but use the volume from the Sonos how its set.
Would be nice if if you can configure the roomname where to say something from the flowcard:
/[Room name]/say/[phrase][/[language_code]][/[announce volume]]
/sayall/[phrase][/[language_code]][/[announce volume]]
Hi, sorry for late reply. I just installed it on a Raspberry PI I have for Home assistant. Simple and clean. Will do some update in the week for the module to fix some stuff more like @roel_hendr wanted.
I tried that in the beginning but there was a lot of modules that could not run on the Homey hardware. So there would have to be so much work fixing it. So since this is mostly done for my own sake it works for me. Feels like any real haxxor has at least one PI to play around with.
Iāve allowed myself to upgrade your app a little and will create a pr later. Btw: Sonos S2 will most likely break the sonos http api so do better not upgrade!
I installed now to test it out. Nice work @MadMonkey
I however got the same issue as you @Martijn_Hoogenbosch
I then ran it development athom app run. It then worked. After that switched back to athom app install. Now it works :). Strange stuff. But maybe a nice workaround.
After my fix with install, run, install it works like it should. So cant reproduce it now. Feels like something is going wrong the first time around maybe that is cleared up with a reinstall. But any how it works now and it looks smashing
Iām going to try this later today, thanks! Hopefully it works for me too.
@MadMonkey is there anything you want me to test first? If it works iām not able to reproduce anymore. Recreating the flow or card doesnāt solve anything for me.
I tried the reinstall workaround and got the same error messages.
Please make sure that you filled out the field port in the settings of the app. It seems that the field port is already filled out with the default port 5005 in light grey. But nevertheless you have to fill out the field even with the default port. After that, restart the app.