Hello,
I’m opening this feature request for support of Apple’s HomePod speakers to stream audio, like the Sonos integration that’s already in place for Gladys ![]()
Thank you
Hello,
I’m opening this feature request for support of Apple’s HomePod speakers to stream audio, like the Sonos integration that’s already in place for Gladys ![]()
Thank you
@prohand This isn’t perfect, but a temporary workaround for the TTS part is to go through the « Shortcuts/Raccourci » app and use the « Intercom » feature (https://www.reddit.com/r/HomeKit/comments/114y2gj/in_ios_164_beta_you_can_intercom_to_your_homepods/)
You create a virtual device in Gladys (like a plug or a door opening), and you create an automation in HomeKit:
Which allows you to make Gladys speak on the HomePod ![]()
Thanks
I’ll try it when I get the chance ![]()
Hello, I started a PR to make Gladys speak on AirPlay speakers (so HomePods too).
There is still a bit of work to fix MP3 file decoding but I can send them from Gladys to a Mac in AirPlay receiver mode and we can hear it well.
A test image is available bertrandda/gladys:airplay for those who want to try it. Tests still need to be added and a better way to manage the AirPlay connection library needs to be found, but functionally everything is there.
Thank you very much ![]()
I’ll try to test it this week ![]()
@bertrandda I tried to test at my place, I don’t have a HomePod but my Mac is detected as an AirPlay device:
Then in the scenes I do:
But I don’t get any specific sound output — and since it’s a Mac, I’m not sure it will work.
Normally it works on Mac too. However, there are some additional security measures: you need to allow AirPlay connections from devices on the network (by default it’s only connections from the same account) and make sure there isn’t a password set. Also, a notification appears in the top right when Gladys wants to broadcast to the speakers — you have to accept it manually.
Note that on HomePod not all of these security measures are present
Indeed, that was it — if I switch to « everyone on the same network », it works fine! Great job!
I’m still up for a proper test on HomePod before merging
@prohand keep us posted when you’ve tested it
Yes, no worries ![]()
Quite busy this week, but I should be able to test tomorrow evening ![]()
I just tested and it’s ok for me on my HomePods ![]()
I had to do the same procedure as on the Mac but in the Home settings
:
Tested on each HomePod when they’re unpaired
Tested as well on each HomePod when they’re paired
Just one thing about the volume that can’t be adjusted, but maybe I’m doing it wrong ^^
I tried to adjust the volume via my iPhone but it always resets the volume bar to the middle, so you don’t necessarily hear it well, unless you’re right next to it
Awesome! Thanks for testing ![]()
@bertrandda Can you prepare a PR for the documentation mentioning how to do it? Otherwise we’ll definitely get the request all the time
For the volume, it seems like the library allows adjusting the volume:
The documentation PR
I made the change to set it to 70% — it already seems very loud when I test, but we can increase it further if necessary. Ideally we should be able to customize it, I think, for each speaker (if you have a small room you don’t need it as loud as in a large living room), we should add in the component Parler sur une enceinte a percentage widget, I think, to set the volume at that level.
The new image should be available soon
Just for info the Airplay protocol is really little known, it’s very well implemented in Python via pyatv but in nodejs I only found a fork of a fork of a project that wasn’t even on npm
. So I forked it myself to publish it on npm, but the docs you see aren’t necessarily up to date (the volume configuration works fine)
Great, thanks ![]()
Could you just add a small note about Macs in the documentation?
There you go, it’s done
Thanks, I’ll look at all of that on Friday ![]()
That’s perfect for me, it’s merged into Gladys! It will be included in the next Gladys release ![]()
Available in Gladys Assistant 4.50:
I’m closing this thread to free up the votes!