Not sure if it is simply a limitation from Apples side. I haven’t been able to find it anywhere, and I do not have the competences to do it by my self apparently.
By supporting long press, we are able to put the Apple TV in sleep. I have tried through sequences, moving to settings and selecting sleep from there. Thats a nogo.
I got this working by just setting up a sequence of remote events that (usually) navigate to the settings menu and then click the “Sleep now” menu button. It’s a little clunky but it seems to work for me. The one caveat is that if the TV is off, it’ll turn it on. I got around that with the initial 10 second delay to give the TV time to turn on before I turn it off again. You’ll need to change the movement commands to navigate from the top left app icon to where you have your settings icon, but this works for me.
I should also note that that left command in there is to kill the screen saver, which starts if you run this when you’re already on the home screen top left icon.
sleep_apple_tv:
alias: Sleep Apple TV
sequence:
- service: remote.send_command
data:
entity_id: remote.living_room
command:
- top_menu
- delay: '00:00:10'
- service: remote.send_command
data:
entity_id: remote.living_room
command:
- menu
- delay: '00:00:01'
- service: remote.send_command
data:
entity_id: remote.living_room
command:
- left
- delay: '00:00:01'
- service: remote.send_command
data:
entity_id: remote.living_room
command:
- right
- right
- down
- select
- delay: '00:00:01'
- service: remote.send_command
data:
entity_id: remote.living_room
command:
- down
- down
- down
- down
- down
- down
- down
- down
- down
- down
- down
- select