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
data:
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:
apple_tv_sleep:
alias: "Make the Apple TV sleep"
sequence:
- service: remote.send_command
target:
entity_id: remote.lounge_appletv
data:
delay_secs: 1
command:
- home_hold
- select
- service: media_player.turn_off
target:
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.