diff --git a/source/_integrations/apple_tv.markdown b/source/_integrations/apple_tv.markdown index 2d8a9fc65c7..406a388f334 100644 --- a/source/_integrations/apple_tv.markdown +++ b/source/_integrations/apple_tv.markdown @@ -91,7 +91,6 @@ The following commands are currently available: - `wakeup` - `suspend` - `home` -- `home_hold` - `top_menu` - `menu` - `select` @@ -112,12 +111,13 @@ The following commands are currently available: ### Service `send_command` -| Service data
attribute | Optional | Description | -| ------------------------- | -------- | ---------------------------------------------------------------------------------------------- | -| `entity_id` | no | `entity_id` of the Apple TV | -| `command` | no | Command, or list of commands to be sent | -| `num_repeats` | yes | Number of times to repeat the commands | -| `delay_secs` | yes | Interval in seconds between one send and another
This is a `float` value e.g. 1, 1.2 etc. | +| Service data
attribute | Optional | Description | +| ------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `entity_id` | no | `entity_id` of the Apple TV | +| `command` | no | Command, or list of commands to be sent | +| `num_repeats` | yes | Number of times to repeat the commands | +| `delay_secs` | yes | Interval in seconds between one send and another
This is a `float` value e.g. 1, 1.2 etc. | +| `hold_secs` | yes | Number of seconds to hold the button.
This is a `float` value but please use 0 for not hold and 1 for holding the button | ### Examples @@ -140,20 +140,27 @@ lounge_appletv_netflix: - select ``` -Script using the `home_hold` command to send your Apple TV to sleep and turn off +Script using the quick action menu to send your Apple TV to sleep and turn off the Media Player: ```yaml apple_tv_sleep: alias: "Make the Apple TV sleep" sequence: + - service: remote.send_command + target: + entity_id: remote.lounge_appletv + data: + hold_secs: 1 + delay_secs: 1 + command: + - home - service: remote.send_command target: entity_id: remote.lounge_appletv data: delay_secs: 1 command: - - home_hold - select - service: media_player.turn_off target: @@ -178,7 +185,7 @@ data: ### My Apple TV does not turn on/off when I press on/off in the frontend That is correct; it only toggles the power state in Home Assistant. See the -example above to use the `home_hold` command. This can be used on Apple TVs +example above to use the quick action menu. This can be used on Apple TVs running tvOS 14.0 or later. ### Is it possible to see if a device is on without interacting with it