Apple TV Integration not Working

This is my first post so sorry if anything is wrong.

Current config:

tvOS 17.4
HA installed on Synology NAS
HASS just downloaded so current
Apple TV Model: A1842 (64 GB)
Unifi Router but ATV is on same network no VPN or segregation, Apple Homekit works fine
Ethernet connection, all 3 ATV’s and Synology NAS. Same switch.
Airplay: On
Room: Office
Name: Office TV

I an not sure why I cannot add this ATV or any other in my home. I try to add the integration Apple > Apple TV and get the prompted by HA for the device. I have tried the Room, the Name, the IP address and still HA cannot find the ATV. Please help this is a big reason I wanted HA is to know when ATV is playing/paused so I can automate lights and other things depending on the status of the ATV. I have been searching and testing for over a week, so its not like I did not try but searches seem to say the same thing which I already tried.

I need some assistance please!

I always connect via the IP. Make sure the AppleTV is on first so it can be seen.

I tried that turning on the ATV and then adding the integration using the Room, Name, and IP. Still no luck. I really appreciate the assistance.

Thanks

Have you had it integrated before (I ask because if that is do you need to edit a hidden file and remove the ‘old’ entry). Will show you how if this is the case.

HA is new to me and I have never set it up or ever had it integrated before. Thanks!

Which version of Home-assistant did you install (HA OS, Container, Core or Supervised)? …I;m nit sure what the method is for a Synology NAS.

HA in a container on a Synology NAS, searched and found “homeassistant/home-assistant” in the registry. Out of curiosity do you have a HA Green or Yellow? I was looking at them tonight.

I am running HA container on a R-Pi 4 2Gb and it works just fine (not processing video though).

Both the green or yellow should also be fine.

OK, so when running HA container, the HA docker container needs to run network_mode: host in order to resolve mDNS queries used by HomeKit and I suspect this is your issue. The solution is to either use an mdns-repeater (which I gave up trying to do) or run the container on a R-Pi (which I do) or a Yellow, Green etc.

I tried running in in a container and selecting host and it did not work. Its probably me. HAHA. I ordered a Yellow and will wait for that and see if I can connect things. Thanks for your assistance.

No, it’s not you. That was my point. I don’t think you can run it on your NAS, but you can on a Pi.

Well I ordered a Yellow PI but not sure how long it will take to get it. I will find out. Thanks for all your help.

1 Like

I am having the same issue, what is this hidden file that needs editing?

Thanks in advance.

One item I found poking around is that one of my Sonos speakers thinks it’s and Apple_tv device. When I try to set up the Living Room apple_tv this shows up as the living room device?
Found this entry in core.device_registry:

{"area_id":"a8bd5fb1db67f7582b5dbfdded1061ad","config_entries":["ec81a1b355c755f30fd6a79d2305bbf3"],"configuration_url":"http://192.168.1.212:1400/support/review","connections":[["upnp","uuid:RINCON_B8E93748A4D801400"],["mac","b8:e9:37:48:a4:d8"]],"disabled_by":null,"entry_type":null,"hw_version":null,"id":"39522d51c00184d36e5772243f6efe4f","identifiers":[["sonos","RINCON_B8E93748A4D801400"],["apple_tv","B8:E9:37:48:A4:D8"]],"labels":[],"manufacturer":"Sonos","model":"Playbase","name_by_user":"Living room  Sonos","name":"Living Room","serial_number":null,"sw_version":"16.1.1","via_device_id":null},

Hi, I’m currently away from my PC so will answer this early next week.

OK, look here: homeassistant/.storage/core.config_entries for something like the below (and remove it - there may be more than one if you have tried to add it multiple times before):

  • Back up and shut down HA first!
  • restart HA after removal.
      {
        "entry_id": "fe679ae5ce7733acf05849b52beb8aad",
        "version": 1,
        "minor_version": 1,
        "domain": "apple_tv",
        "title": "Living Room (2) (Apple TV 4)",
        "data": {
          "name": "Living Room (2)",
          "credentials": {
            "3": "356b2e00da8af96b18d906cb1cc9c819c20e437e52d0455769390a9db51ea18f:4bc92ec006b3037c7176fe4422854d33c65c42bc8ecacc7457079a69fb27b55e:35373431454642312d393645412d343839372d424237312d373534423833443138453832:31623332656238322d613735332d343465652d396363652d333136653061323231633330",
            "4": "356b2e00da8af96b18d906cb1cc9c819c20e437e52d0455769390a9db51ea18f:aa68167d77f30e9e20eaad759877982e212629d773879de77e1837eae47b2ed0:35373431454642312d393645412d343839372d424237312d373534423833443138453832:64303861633239392d623365622d343335372d393930312d646535333534383731373162",
            "5": "356b2e00da8af96b18d906cb1cc9c819c20e437e52d0455769390a9db51ea18f:49d3010dded0db247d54b04c4dce10a9238947260b9ec72edde4dd5c09d14f27:35373431454642312d393645412d343839372d424237312d373534423833443138453832:33653939333034312d306435372d343266332d386230632d316562653563303337623364"
          },
          "address": "192.168.1.43",
          "identifiers": [
            "AC:BC:32:68:6F:86",
            "5741EFB1-96EA-4897-BB71-754B83D18E82",
            "AC9E4ABD-4225-4157-BABE-7D97F8246708",
            "ACBC32686F86"
          ]
        },
        "options": {},
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "ignore",
        "unique_id": "AC9E4ABD-4225-4157-BABE-7D97F8246708",
        "disabled_by": null
      },
      {
        "entry_id": "5469f01e13cb2114381d536d3f6c9cad",
        "version": 1,
        "minor_version": 1,
        "domain": "apple_tv",
        "title": "Living Room (HomePod Mini)",
        "data": {
          "address": "192.168.1.150",
          "identifiers": [
            "E0:2B:96:B5:F5:A2",
            "E02B96B5F5A2"
          ]
        },
        "options": {},
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "ignore",
        "unique_id": "E0:2B:96:B5:F5:A2",
        "disabled_by": null
      },

Finally found the time to do this, thank you for the information, 1 issue though, I am running HA on a Dell 3050 and when I shut down HA I have no access to the file to edit it and save it back because the machine powers down.So the shut down HA first is not possible.

Can’t I edit the file and save it then reboot?

Did a “core stop” from the command line and was able to stay connected to edit the file.
All is well now, setting up the Apple TV right now.

Thanks Again.

Thanks