Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connected to temporary audio device --> power state incorrect #2331

Open
mufler opened this issue Jan 14, 2024 · 1 comment
Open

connected to temporary audio device --> power state incorrect #2331

mufler opened this issue Jan 14, 2024 · 1 comment
Labels

Comments

@mufler
Copy link

mufler commented Jan 14, 2024

Describe the bug

Upon connecting bluetooth headphones to AppleTV, the powerState reporting stops working. As a consequence my automations based on AppleTV state changes also stop working. If bluetooth headphones are disconnected from AppleTV, everything starts working again.

Error log

<place log here>

How to reproduce the bug?

Here I have used feedback from AppleTV Enhanced plugin logs:

  1. Turn on AppleTV and log shows: New Active State: on. As expected.
  2. Turn off AppleTV and log shows: New Active State: off. As expected.
  3. Turn on AppleTV again and log shows: New Active State: on. As expected.
  4. Connect Bluetooth headphones to AppleTV and log shows: event powerState: null. The problem?
  5. Turn off AppleTV with headphones still connected to AppleTV, cannot see New Active State: off (AppleTV turns off, but no automation is working.) Not as expected.
  6. Turn on AppleTV (with headphones still connected to AppleTV), cannot see New Active State: on (AppleTV turns on, but no automation is working.) Not as expected.
  7. Disconnect Bluetooth headphones from AppleTV and turn off AppleTV, the log shows New Active State: off Everything works again as expected.

What is expected behavior?

AppleTVs powerState reporting should continue to work even if bluetooth headphones are connected.

Operating System

Debian GNU/Linux Bookworm (12)

Python

Other

pyatv

0.14.5

Device

Apple TV 4k tvOS 17.2

Additional context

Python version 3.11.2

@postlund
Copy link
Owner

Sounds a lot like the issue when having a HomePod connected. Currently there's no solution to this unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants