tetele/onju-voice-satellite

Ability to change volume in Home Assistant

Closed this issue · 10 comments

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

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

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.

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.

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).

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.

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.

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.

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

Fixed in ESPHome 2024.6 esphome/esphome#6859