[APP][Pro] Apple TV & HomePod

I’ve read somewhere while googling the remedy for my problem that an airplay connection could suddenly jump(over) to another speaker/homepod when both devices are quite near to eachother (and are set to airplay). Since I have about 1meter away an Yamaha MusicCast Wifi speaker that I use to listen to audio books via airplay (mostly when going to bed). Could somehow your app benefit or be a catalysator to this kind of airplay jumping/switching ??

Diagnostic report:

ab62c620-9477-49ee-a3fe-762ba6c43039

My “HomePod Mini SpaceGrey Woonkamer HP2023” has again suddenly started to play something from My apple Music collection/library.

Yes!

As someone else mentioned. If I delete it I can see both. When I add one the other disappears.

both apple tvs are working correctly.

@DoctorBazinga Hmm, weird, I cannot find it. There is another Apple TV app that is not in the Homey store, did you perhaps install that one?

If you’re sure that you’ve installed Apple TV & HomePod | Homey , please share the installed version.

@Marcus_Fasth Which version are you running? And what are your Apple TV’s called?

I have installed 1.2.2 version yesterday to test it if it was maybe the remedy.

my devices are :

“Apple TV 2015-1_64” don’t bother the red triangle :red_triangle_pointed_up: (its out of power through a shelly plug)

“AppleTV4K_64-Livingroom”

“HomePod Mini Midnight Foyer HP2023“

“HomePod Mini SpaceGrey Slaapkamer HP2023“

&

“HomePod Mini SpaceGrey Woonkamer HP2023“

Mostly the last 2 Homepod Mini’s are the ones having the issues of sudden playback.

And I use them not very much at all.

I use your app mostly for the AppleTV’s to determine id they are on/off and if they are playing so my tv’s and HomeCinema and hue sync box is set right etc. (And my Shelly plugs are on or off (to kill unused standby power usage)

Never heard of that other Apple TV app. And yours I have installed if I remember right just before or around Christmas when I found it through a coincidence in the Homey App Store.

Something else : any chance you could somehow make it possible available to play any url on a homepod (mini).

Basically I would like to combine the “google services” Homey app and its tts possibility to play any tekst to speech through the HomePods. In Home Assistant its already possible for a long time.(Maybe you’ll find an “inspiration “ in the GitHub fir the apple integration for HA.)

Trying to use a temporary URL to play from google tts/translate.

@DoctorBazinga Hmm, I’ll do some more research then. Never experienced my HomePods playing out of nowhere.

Regarding the play from url request, not anytime soon, I’ve explained why here: Support for custom audio sources (URL/m4a) via FlowCard · Issue #11 · basmilius/homey-apple · GitHub

My thoughts is that its maybe a combination of the Airplay bug and your app keeping a constant airplay connection to the HomePods and so keeping them alive and not going to standby when not playing/connected fir a longer time.

As already mentioned: I read somewhere while searching for a solution for this that it was known that sometimes the airplay jumps to other devices when they are close to eachother or close to the source (=iphone) (while playing).

My HomePods mini mostly starts suddenly playing in the living room when I’m near to it (in front of my tv and about 60-50 cm away with my iPhone).

And my Homepod mini in my sleeping room when I play some audiobooks through airplay to a Yamaha musiccast speaker while going to sleep in my bed. both speakers are about 70 cm away from eachother and about 1.8- 2.5 m meter away from my IPhone at my bed. The Ubiquiti acces point fir Wifi in my bedroom is about inbetween them hanging from the ceiling.

Could it be that the constant airplay connection by your app is beneficial to this buggy airplay jumping/hopping “bug”. ?

Wgen your app is off/diabler the HomePods are used maybe once in a week for some minutes

Jusr more information and my two cents.

@DoctorBazinga It’s very weird, I’ve tried so create a somewhat similar setup here, but no “luck” yet. Can you share some of your online findings with me? I wonder if there’s a bit more to discover :slight_smile:

Little sneak peak of what I’m working on alongside stabilizing the companion link protocol. I have a working proof of concept of the Homey app itself, no promises yet, but we’re getting there!

2 Likes

Apple TV & HomePod v1.3.0 [TEST]

This update introduces audio streaming to HomePod and HomePod Mini. Apple TV doesn’t support the same protocol, so that needs more research. Audio streaming is highly experimental and should be used with caution. It currently uses a lot of memory (and the app uses a lot already).

  • New Play URL card for HomePod and HomePod Mini.
  • New Play URL at volume card for HomePod and HomePod Mini.

The app size became bigger, well more than doubled to be honest. It was originally 2.01 MB and now 5.02 MB. EDIT: In v1.3.1 this was reduced to 1.92MB.

Don’t put streaming urls in there, I mean it.

Some background information: The app has a few built-in decoders (ogg, mp3 and wav), because the devices expect it as PCM or ALAC, I went with the former. The decoding process is done before the actual streaming part (duh) and depending on your file, could take some time. The flow cards resolve when the decoding part is done, they don’t wait for the streaming to be done. For audio streaming, an additional 2 connections are opened between Homey and the device and closed when streaming is done. And for the nerds… This is AirPlay V1 RAOP in action.

2 Likes

This app is eating my memory to breakfast:(

@Daniel_Fille Yep, I’m aware. How many devices do you have paired? Each device has multiple connections it has to make before the app receives any data, and all those connections eat memory. One of the next steps for my apple protocols library is to see if there is anything I can do from the library to reduce it.

Audio streaming also eats a lot of memory because of decoding, but that wears of after a bit.

I have 2 TV and one HomePod paired, is not that bad with the memory​:man_tipping_hand:t2:

1 Like

Thanks for the explanation, I have 3 HomePods and 1 Apple TV at the moment, planning to pair 2 more Apple TV. After a restart off the app it is normal memory consumption I think, around 58mb at the moment.

@Daniel_Fille Did you use audio streaming perhaps? Because that currently uses a lot of memory due to audio decoding…

Hi

No I did not, it have gone to 112mb over night now.

Any chance to see a widget on what is currently being played on apple tv soon?