home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.8k stars 30.06k forks source link

home_hold no longer working with Apple TV #106066

Open JeroenTuinstra opened 9 months ago

JeroenTuinstra commented 9 months ago

The problem

The command home_hold doesn't seem to work anymore with tvOS 17.1. It simply ignores the command. No errors anywhere. Would be great if we could just a on/off command for the power button on the remote. It seems as if the home_hold now works as the home button. The issue is that I would like to set the Apple TV in standby. I just to send the command home_hold and then select. Now when you press the home button on the remote it opens up a top menu and you have to click select twice to switch it off. Not sure how to now switch off apple tv with the remote integration.

What version of Home Assistant Core has the issue?

core-2023.12.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Apple TV

Link to integration documentation on our website

https://www.home-assistant.io/integrations/apple_tv

Diagnostics information

config_entry-fritz-e808f7ed2d0a6b7dc77f316f73672629.json.txt

Example YAML snippet

service: remote.send_command
target:
  entity_id: remote.apple_tv_living_room
data:
  command:
    - home_hold
    - select
    - select
  delay_secs: 1
  hold_secs: 2

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 9 months ago

Hey there @postlund, mind taking a look at this issue as it has been labeled with an integration (apple_tv) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `apple_tv` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign apple_tv` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


apple_tv documentation apple_tv source (message by IssueLinks)

JeroenTuinstra commented 9 months ago

So the home_hold still does not work, but the command suspend will switch off the Apple TV. I don't know if home_hold is usefull for anything else, so I'll keep it open as that command doesn't seem to do anything.

jianyu-li commented 9 months ago

Came here to post the same thing, home_hold no longer works. I use it in my automation to open the menu and get to my cameras

vturekhanov commented 9 months ago

So the home_hold still does not work, but the command suspend will switch off the Apple TV. I don't know if home_hold is usefull for anything else, so I'll keep it open as that command doesn't seem to do anything.

home_hold command is useful for access to homekit cameras. At the moment I have no idea how to do that without home_hold.

I used the following sequence:

- home_hold
- left
- down
postlund commented 9 months ago

home_hold and shall not be used and will be replaced by passing a hold delay to home instead, one this PR is merged:

https://github.com/home-assistant/core/pull/105764

JeroenTuinstra commented 9 months ago

So do I understand correctly that home_hold is removed before the solution is implemented? I did see the hold so many seconds option, but it didn’t do anything. And also it seems applied to all the commands. So in a sequence that would mean all the buttons in the sequence are held those seconds. That could create perhaps some problems.

So did anyone get the home button working with the new delay setting resulting in a home_hold?

postlund commented 9 months ago

The PR is not merged not available in any release yet. Once it is, home_hold will be part of a breaking change. That particular command was added before input actions were added to pyatv and really a mistake. So this will fix that.

JeroenTuinstra commented 9 months ago

But just for anyone following this threat, home_hold no longer works and there is not replacement command yet. Just to be clear.

philtarry commented 6 months ago

Has this issue been resolved yet?

LOTRtelcontar commented 6 months ago

I’m hoping to get this working again as well! I used to have an automation where I could press and button and a specific HomeKit camera would pull up on the Apple TV, but without home_hold I can’t find a way to make it work. Is there any temporary code I can add to my config to get it working? Need anyone to test something?

sayam93 commented 6 months ago

home_hold and shall not be used and will be replaced by passing a hold delay to home instead, one this PR is merged:

105764

Have they merged the PR yet?

Liu55i commented 3 months ago

Just started to control my Apple TV (17.5.1) with Home Assistant. Had a similar problem with "home" and "hold_secs" - it just didn't hold the home button. With the latest Update of HA (2024.6.3) i can hold the home button with node red/call service:

{"entity_id":"remote.yourappletv","command":"home","delay_secs":1,"hold_secs":1}
issue-triage-workflows[bot] commented 1 week ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

LOTRtelcontar commented 1 week ago

Using “home” with a hold sec of 1 works for me.