Deprecated Apple TV Commands

I spotted this change a few weeks ago that shows a mapping from old to new commands. I then also discovered there are some deprecated commands. I then hauled over to the integration’s docs to check the list of commands, but didn’t spot any changes there. For good measure, I also checked pyatv’s changelog.

What I want to know is: Should I update my scripts and automations to use new commands, or can I just rely on the mapping to handle it for me?

For example, I have this in a script:

      - service: remote.send_command
          entity_id: remote.living_room
          command: suspend

Should I keep using the suspend command?

Whether I should or shouldn’t, what would be the new command to use? Some power.turn_off command?

The current docs still state this method using multiple commands:

  alias: "Make the Apple TV sleep"
    - service: remote.send_command
        entity_id: remote.lounge_appletv
        delay_secs: 1
          - home_hold
          - select
    - service: media_player.turn_off
        entity_id: media_player.lounge_appletv

PS: I can’t remember which way around it was, but there once was a note to say that one should or shouldn’t use the suspend command.

It is only merged into the devevloper branch and it might never reach the stable branch, so don’t do anything until you see the notice in the release notes of the stable branch.

1 Like

Thanks Wally. I missed that part.