alandtse / alexa_media_player

This is a custom component to allow control of Amazon Alexa devices in Home Assistant using the unofficial Alexa API.
Apache License 2.0
1.57k stars 295 forks source link

Stereo Speaker Pair - incorrect volume_level #2265

Closed nima-1102 closed 4 months ago

nima-1102 commented 7 months ago

Describe the bug

When using Alexa Stereo Speaker Pair (Not multiroom, important), the volume_level reported is incorrect. While it is possible to control the volume, initially it shows the correct volume level for both members of the pair. However, after a few seconds, it changes to 0.5. Additionally, the Speaker Pair entity, which consolidates the two members, consistently report a volume_level of 0.5 without any changes.

To Reproduce

  1. Set up an Alexa Stereo Speaker Pair. (In iOS app: Devices -> Add -> Combine speakers -> Stereo pair)
  2. Attempt to adjust the volume for the Speaker Pair Entity in HA.
  3. Observe the initial correct volume level reported for both members.
  4. After a few seconds, notice the volume level report change to 0.5. (Only the reported value changes, the volume itself does not.)
  5. Check the Speaker Pair entity, which consistently shows a volume level of 0.5.

Expected behavior

The reported "volume_level" should accurately reflect the adjusted volume level of the stereo speaker pair.

System details

Logs home-assistant_alexa_media_2024-05-14T21-25-12.405Z.log

Additional context

Created Stereo Speaker Pair (media_player.alexa_pool) - Member Devices:

danielbrunt57 commented 5 months ago

I have several speaker pairs and I do not see a volume level for the pair, only the individual speakers...

image

nima-1102 commented 4 months ago

I have several speaker pairs and I do not see a volume level for the pair, only the individual speakers...

image

You have to play music as an example, only then there is a "volume_level" attribute for the speaker pair entity.

danielbrunt57 commented 4 months ago

Okay, so I started playing music on my Office pair and the entity in HA updated with volume_level: 0.5 even though each member of the pair is currently 0.13: image

Expected behavior

The reported "volume_level" should accurately reflect the adjusted volume level of the stereo speaker pair.

This is not generated by HA, it is pushed from Amazon to HA and we have no control over what Amazon pushes to us. Your issue is with Amazon, not this integration.

danielbrunt57 commented 4 months ago

@alandtse Please close this as an Amazon issue, thanks.