Sennheiser AMBEO Soundbar support?

Nice work, I have the ambeo Max and I dig in the API in developer console mode

Poweron is this call replace {{$timestamp}} by timestamp in decimal mode (1707269493)

http://ambeo.ipaddress/api/setData?path=espresso%3AappRequestedOnline&role=value&value={“type”%3A"bool_“%2C"bool_”%3Atrue}&_nocache={{$timestamp}}

Power off (standby)
http://ambeo.ipaddress/api/setData?path=espresso%3AappRequestedStandby&role=value&value={"type"%3A"bool_"%2C"bool_"%3Atrue}&_nocache={{$timestamp}}

I did some replay with Postman to test it
The api also work without &_nocache={{$timestamp}}

Power off/on is the main feature I need from homeassistant with ambeo max I hope it will help you with the new ambeo max branch

Thank’s again for your work

Thanks for your inputs! I’ll work ojn it later this week.
What’s the most important feature you all need ?

1 Like

For me it would be:
-Power on/off
-Volume
-input select

1 Like

Reboot will be also useful when the tv input not working.

Let me know if you need debug output or more api call or api output

@faizpuru I put all API call list and some output here

ha-ambeo_soundbar/api url.txt at master · NicDesrochers/ha-ambeo_soundbar (github.com)

2 Likes

Is there a way to find the soundbar name ?
The list of sound presets ? The current input ? The current preset
What is the brightness scale of the ambeo logo (min/max)?

Ok just updated api_url.txt and add index.js if needed

Voici le le lien l’ancien semblait pointer sur un autre comit

Si jamais c’est requis

1 Like

I did a test with last ambeo max branch and sync your last comit
There is some error if it can help you dev

> 2024-02-09 08:36:53.189 ERROR (MainThread) [homeassistant.components.switch] Error while setting up ambeo_soundbar platform for switch
> Traceback (most recent call last):
>   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 344, in _async_setup_platform
>     await asyncio.shield(task)
>   File "/config/custom_components/ambeo_soundbar/switch.py", line 114, in async_setup_entry
>     if not ambeo_device.max_compat():
>            ^^^^^^^^^^^^^^^^^^^^^^^^^
> TypeError: 'bool' object is not callable
> 2024-02-09 08:36:53.195 ERROR (MainThread) [homeassistant.components.light] Error while setting up ambeo_soundbar platform for light
> Traceback (most recent call last):
>   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 344, in _async_setup_platform
>     await asyncio.shield(task)
>   File "/config/custom_components/ambeo_soundbar/light.py", line 195, in async_setup_entry
>     if not ambeo_device.max_compat():
>            ^^^^^^^^^^^^^^^^^^^^^^^^^
> TypeError: 'bool' object is not callable
> 2024-02-09 08:36:53.541 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up ambeo_soundbar platform for media_player
> Traceback (most recent call last):
>   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 344, in _async_setup_platform
>     await asyncio.shield(task)
>   File "/config/custom_components/ambeo_soundbar/media_player.py", line 209, in async_setup_entry
>     sources = await ambeo_api.get_all_sources()
>               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/config/custom_components/ambeo_soundbar/api.py", line 213, in get_all_sources
>     with_index = [{"title": element["title"], "index": index} for index, element in enumerate(data)]
>                             ~~~~~~~^^^^^^^^^
> TypeError: string indices must be integers, not 'str'

Updated !
But still not finished

3 Likes

I’d say its pretty much finished now :slight_smile:
Been using it through the iterations and its functioning as it should and I’m extremely happy with @faizpuru integration in combination with the unfolded remote by @marton
Thanks a ton for all your hard work :slight_smile:
Others should definitely check it out: GitHub - faizpuru/ha-ambeo_soundbar: Control ambeo soundbar from home assistant

1 Like

Hello,

Thanks for your work. I Need to Control the Night Mode too. So i can turn it on Night time and Turn it off day time. Could you implement it too ?

What version of soundbar do you have?
Normally, this is already implemented for max and plus.
I do not have access to the mini and therefore could not test on this device.

I think I had a different integration, not yours. sry for the interruption :slight_smile:

So, is it working now ?

2 Likes

Yes sir. phenomenal integration

1 Like

I managed to sign up to the forum with email notifications off (maybe the default) - I can’t say how exciting it is to log back in to the thread and find out the integration has been made. Thanks to everyone involved! Will check it out tonight.