postlund / pyatv

A client library for Apple TV and AirPlay devices
https://pyatv.dev
MIT License
882 stars 97 forks source link

Power state is always on when audio output set to homepod #1667

Open Shkaufma opened 2 years ago

Shkaufma commented 2 years ago

Describe the bug

When setting the audio output of the Apple TV to a homepod (and not tv speakers), a query to get device power state is always Powerstate.On

when changing back to audio output to tv speakers then the state reports are accurate

Error log

No response

How to reproduce the bug?

Set audio output to homepod (I used mini) Try to get device state, it will show Powerstate.On Power AppleTv to standby mode Read the power state - it is still Powerstate.On

What is expected behavior?

When apple tv is off it is expected to report Powerstate.off

Operating System

TvOs 15.3

Python

3.7

pyatv

0.10.0

Device

Apple TV 4k 2nd gen

Additional context

None

postlund commented 2 years ago

Yep, this is a known problem and I don't have any ways to fix it unfortunately.

postlund commented 1 year ago

@Shkaufma Is this still the case in the latest HA release?

alkalixin commented 7 months ago

Same issue here. I'm using HA 2024.1.6