I use the Apple TV integration to control iTunes on my hardwired mac desktop. The WiFi interface on the box is often active as well, but I use that to connect to secondary networks - setting up a new WiFi router, for example, or testing my guest network. The Apple TV integration, however, seems to frequently “pick up” the IP from my WiFi and start trying to access the computer via that address - which invariably fails, as it is not on the same network.
Is there any way to “lock” the integration to the correct IP address, or at least make it use the Ethernet IP address rather than WiFi?
I’m hoping someone who knows more about the guts of the Apple TV integration can chime in, but, in the meanwhile, can you say more about how you’re controlling iTunes on the Mac via the Apple TV?
Without more information, the behavior you’re describing feels to me like something that the Apple TV is doing, rather than the HA integration. If that’s the case, it’s probably something you’d need to try to configure on the Apple TV. (And, to be honest, it feels spot-on like one of those things that Apple would never in a million years include as a configuration option.)
What is happening? Are you getting an Apple TV integration notification with it appearing on your devices and services page? Or is it just a warning and/or error you’re seeing in your logs?
If the first question is what’s happening - have you tried deleting the integration and manually setting it up? If you add the Apple TV integration manually, you can specifically define the IP address you want it to connect to.
If the second question is what’s happening - I don’t have a solution, but a suggestion. As long as it’s not actually effecting your current setup in a negative way, you can use the “logger:” integration to filter out the warnings and/or errors if it’s just an annoyance for you.
You need to remove the binding from HA to the WiFi card, so the mDNS can not detect the interface and announce it.
If it is running in a VM, then it should be easy to remove the WiFi interface.
Oh, Wow, I forgot I had posted this, and didn’t get any notifications of responses! To respond to the posts:
There is no Apple TV involved. The Apple TV integration detects the Apple Music.app running on my desktop machine and sets it up in Home Assistant as a media player, allowing me to start/stop music.app via Home Assistant (and, by extension, via voice control)
What is happening is that when the WiFi IP address on my desktop machine changes - for instance, when I connect my WiFi to a test network - the integration on home assistant changes from using my Wired IP (which never changes) to using that new WiFi IP - which it can’t access.
Deleting the integration and manually setting it up again works - until the next time my WiFi IP address changes.
The WiFi is ONLY on my desktop running the apple music.app. There is only one interface on the HA box (which is in a VM, for what that’s worth), and that works fine.
Essentially, it seems like the automation is trying to be “smart”, and seeing that I have a new IP, it updates itself to use that new IP - but this breaks things.
Actually, maybe the solution is even simpler - just set it up using a domain name, rather than an IP? Though that still won’t help if it tries to auto-update itself…
Anyway, thanks for the suggestions. Hopefully I can figure out why the forum isn’t notifying me of responses.
It’s my least favorite thing about the forum. It’s possible to respond to a topic, or to a post, and by default I think notifications only happen when someone responses to one of your posts.
On a new topic, both buttons are very close to one another, and the option to respond to the “post” is visually more prominent to me, so I often end up hitting that button.
At the bottom, there is a “Tracking” button and you can up the level so that it notifies you of every new reply, instead of just replies to your posts.