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.36k stars 263 forks source link

Stereo Speaker Pair - incorrect volume_level #2265

Open nima-1102 opened 1 month ago

nima-1102 commented 1 month 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 2 days ago

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

image