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

Ability to change volume in Home Assistant #11

Closed
VivantSenior opened this issue Mar 15, 2024 · 10 comments
Closed

Ability to change volume in Home Assistant #11

VivantSenior opened this issue Mar 15, 2024 · 10 comments
Labels
esphome ESPHome issue that needs to be addressed upstream feature-request

Comments

@VivantSenior
Copy link

Hi,

I'm missing a possibility to change volume of the speaker in HA (with and without wake word). Would it be possible to expose it to HA?

Best,
Viv

@fantnhu
Copy link

fantnhu commented Mar 16, 2024

I have a similar problem. If I change the volume on the device, it is out of sync with the volume of the HomeAssistant media player entity and vice versa

@tetele
Copy link
Owner

tetele commented Mar 16, 2024

For the microWakeWord config with speaker, volume control is not yet supported in ESPHome, nothing i can do about that.

For openWakeWord, it should work out of the box. If it doesn't, please reply with the ESPHome error log.

@fantnhu
Copy link

fantnhu commented Mar 16, 2024

Az openWakeWord esetében a dobozból kiindulva működnie kell. Ha nem, kérjük, válaszoljon az ESPHome hibanaplóval.

Thank you for your quick reply. I use OpenWakeWord on 4 devices. Unfortunately, none of them have the volume in sync.
I can adjust the volume on the box, it works up and down.
However, when I want to adjust the volume of the media player under HA, the volume changes under HA, but not on the box.

@tetele
Copy link
Owner

tetele commented Mar 16, 2024

That might be qn ESPHome bug (again, out of my control). Try adjusting the volume in HA during the time when the media_player is playing something (like a response).

@VivantSenior
Copy link
Author

For the microWakeWord config with speaker, volume control is not yet supported in ESPHome, nothing i can do about that.

For openWakeWord, it should work out of the box. If it doesn't, please reply with the ESPHome error log.

Thank you. I created #12 feature request and found #2619 which #12 is depended upon.

@jherby2k
Copy link

jherby2k commented Apr 11, 2024

From what i can tell, the issue with the openWakeWord config is that the Home Assistant UI always shows 100% volume. i can drag the volume slider to 80% and the speaker does indeed get set to 80%, but if i refresh the page in HA, the slider is back at 100% again. So the volume just isn't being reflected back to HA.

Also the volume up / volume down and Mute buttons don't seem to work at all.

I'd love to fix this for you but i'm still trying to understand how this all ties together TBH. Please just let me know if this is an ESPHome bug and i'll open it there.

@tetele
Copy link
Owner

tetele commented Apr 12, 2024

I'd love to fix this for you but i'm still trying to understand how this all ties together TBH. Please just let me know if this is an ESPHome bug and i'll open it there.

As far as I remember, that was an ESPHome bug. You can set the volume of the media_player from HA, but only while it's playing back a response.

@tetele
Copy link
Owner

tetele commented Jun 3, 2024

Root cause: esphome/issues#5877

@tetele
Copy link
Owner

tetele commented Jun 4, 2024

Can you try adding this to the config and checking if it solves the issue?

external_components:
  - source: github://pr#6859
    components: i2s_audio
    refresh: 0s

@tetele tetele added feature-request esphome ESPHome issue that needs to be addressed upstream labels Jun 6, 2024
@tetele tetele changed the title [Feature request] Ability to change volume in Home Assistant Ability to change volume in Home Assistant Jun 14, 2024
@tetele
Copy link
Owner

tetele commented Jun 21, 2024

Fixed in ESPHome 2024.6 esphome/esphome#6859

@tetele tetele closed this as completed Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
esphome ESPHome issue that needs to be addressed upstream feature-request
Projects
None yet
Development

No branches or pull requests

4 participants