Cannot obtain Apple TV credentials

Upon configurating my Apple TV and entering the 4-digit code as displayed on the screen (using the general steps found here: https://github.com/DickSwart/SwartNinjaSmartHome/wiki/Add-Apple-TV), the state card shows the following after displaying “Configured” for less than a second:

As such, I am unable to control my apple tv. Thoughts? Thanks!

What does your config code look like? What flavor of HA are you running?

The AppleTV Component page has everything you should need.

The goal is a config that has the following three parts in under apple_tv:

apple_tv:
  - host: 10.0.0.20
    login_id: 00000000-1234-5678-9012-345678901234
    credentials: 1B8C387DDB59BDF6:CF5ABB6A2C070688F5926ADB7C010F6DF847252C15F9BDB6DA3E09D6591E90E5

You should know your AppleTV IP already, so drop that in the config and next get the login_id by scanning for devices. Then the credentials by setting up device authentication.

Dump all that into your configuration.yaml, restart HA and you should be good to go.