Apple TV Integration - tvOS 15 Beta

“No devices found on the network”

Which is odd, as it’s obviously connected to the network (with UTP cable, so not WiFi-related). I can also add other devices on my LAN (such as Sonos speakers) without any issues.

Is the device on the same network or another network (VLAN)? This sounds like a network problem to me. More specifically something related to zeroconf.

Yes, all my devices are on the 192.168.1.0/24 subnet. I’ll check it out later today, thanks for your input!

1 Like

He’s right. It’s the fact that the home assistant image is sitting on a docker network. I’m currently looking at mdns-repeater as an option to forward the packets between the docker network and my local one. Though from your post it sounds like it was working previously, so I might explore the discovery code as well.

Yes, was working without any issues before. And HA does not have any problems reaching other devices on the LAN.

I haven’t had the time to troubleshoot further, so I do not have a fix/workaround yet. Probably this weekend!

So I just redeployed my container to use the network host instead of bridge. Solved all of my discovery issues and immediately picked up the AppleTV.

Hmm, interesting. Would you mind sharing the relevant part of your docker-compose file?

I used portainer to set it up but apparently it’s just adding the command --net=host to the command.

Oh, right. Yeah I’m somewhat apprehensive about using net=host. Might mess up my HA/docker configuration.

It’s worth a shot though, thanks for the reply!

Is there no way to mute/unmute with this integration? I have a few automations that I’d like to mute the volume and then return it to the original volume afterwards but the only way I’ve managed it is to turn the volume down x3 and then back up x3 but this can be very unreliable (e.g. if the volume was already low or there are are any issues with triggering).

I even bought the new ATV remote with the hopes of programming my Broadlink wifi remote but this doesn’t work either (I assume because the remote uses wifi commands rather than IR/RF that the Broadlink can pick up?).

Any work around suggestions would be greatly appreciated!

There is no mute command in the protocols, so no. You would have to save the volume, set it to zero and restore it again.

Edit: the physical remote uses Bluetooth.

How about pause?

Maybe a stupid question, but how would I save that volume? I’ve recently started using Node Red and it only seems to be able to check the state (i.e. playing, paused, idle)… I imagine it’s my lack of understanding though because I’m a total beginner.

P.S. I was totally guessing about the remote being wifi but my point was that it’s not IR/RF… Now I am wondering if there are integrations to send bluetooth commands to it? I have zero understanding of bluetooth though.

I want to use it in an automation that I’ve made to lessen my annoyance at ads/commercials.

I’ve set up a mostly functional way of skipping YouTube ones where possible but would like to mute them as well (especially the unskippable ones), particularly considering how loud they seem to be.

Pause would just…. Pause them :upside_down_face:

That’s why it’s important to state the problem you’re trying to solve. Of course, pause won’t work, but that wasn’t clear with your previous post.

Well, Bluetooth is RF but it’s not a simple protocol. I don’t know if there are any open specifications for how that communication works.

How it’s implemented depends on your automation engine of choice I guess. You could use a helper, e.g. input_number, and save the volume there until you need to restore it. It’s a bit fragile as you might imagine, but would work in theory at least.

For YouTube in particular, you could also try this:

It’s supposed to skip ads automatically somehow. It is also built using pyatv, same as the integration in Home Assistant. I have not tried it myself, just wanted to mention it.

What is the process for app listing and launching? I’ve tried something like this from Developer Tools, but nothing seems to happen:

service: media_player.select_source
data:
  source: netflix
target:
  entity_id: media_player.apple_tv_bedroom

I’m only beginning to explore the media_player aspects of HA, so I may be missing something obvious.

Apologies if asked…Have this in place, off works but no on from HA, what am I doing wrong?

Thanks for the mention @postlund . I’m the project creator and while it’s still in development the core functionality is working.

2 Likes

You’re right of course. I just assumed that the function of mute and the function of pause were different enough that they wouldn’t be interchangeable and that if pause was an acceptable substitution, I’d have to be pretty silly to not have used that in the first place. I’m also always trying not to over explain because I worry that people wouldn’t be bothered to read super long explanations.

In future I shall try harder to strike that balance better though.