Did you go into your Apple TV setup and get the correct 6 digit code to enter? I had this problem yesterday and my TV keep displaying a 4 digit code for Airplay. Evidently, it’s looking for the 6 digit code that relates to your device.
Hello @maoravni, thanks for the details! Is this issue something recent or have you always needed a new passcode to use the AppleTV? Does this issue persist if you used a different remote to enter the passcode?