Apple TV 4k not found

Hi,

I’m a excited new home assistant user and currently trying to install my Apple TV (4k) in home assistant.

I followed the instructions, home sharing is enabled (I followed the instructions for iOS here). However, HA does not find my Apple TV. I then tried atvremote: installation with pip worked find on my linux machine. But I get a “command not found” error when I try to run atvremote.

Any advice what I could try to set the Apple TV up?

I can only add mine, by setting the Appletv component in the configuration.yaml, and there define the host: ip

Hm, if I just enter the IP, I get the following error message:
Failed config apple_tv: - Invalid config for [apple_tv]: required key not provided @ data[‘apple_tv’][0][‘login_id’]. Got None.

You are absolutely right. That’s my bad. Thought I could remember everything in my head. Last time I readded my Apple TV I just entered its new up in my secrets.yaml and forgot that the login id was set in configutation.yaml.

I got my if a year ago, through the method you mention, but I also cannot rewoke it with the atvremote

Thanks for trying to help. Adding the Apple TV would really be an awesome feature. I hope someone else has an idea what I can try.

Figured it out! atvremote didn’t work, as the binary is in ~/.local/bin, which was not in the path => added it.

atvremote scan found the ATV, but reported home sharing was off. I turned it on and off a couple of times, restartet the ATV. Now it seems to work…

Did you do anything special to get the scan to work? Mine seems broken. It used to work but now just provides an error.

No, I added “apple_tv:” to the config and went back and forth to activate home sharing (I think what worked: deactivate home sharing, restart Apple TV, activate home sharing).