How can I integrate my Samsung Soundbar?

Is there any way to integrte a Samsung Soundbar without requiring Smartthings to get the Device ID?

I couldnt find a definitive answer if there is a way or not. Would be dying to know.

thank you

1 Like

hi I’ve installed this integration and entered the details in configuration.yaml but when I add the media player it displays for 10 seconds then shows unavailable for 50 seconds and this just repeats, soundbar is Q990D

1 Like

I tried this with a newly purchased Q990D. With the custom component, I cannot change volume/play/pause/mute. The volume slider is at 100%, which is not correct. Moving the slider has no effect. The soundbar only shows up as an entity.

However, the following API endpoint on the web browser returns the current volume.
https://api.smartthings.com/v1/devices/{DEVICE_ID}/states

This is what the log says:

File "/config/custom_components/smartthings_soundbar/api.py", line 34, in device_update
    data = resp.json()
  File "/usr/local/lib/python3.13/site-packages/requests/models.py", line 978, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

And this is the curl output:

 curl -X GET "https://api.smartthings.com/v1/devices/<DEVICE_ID>/states" -H "Authorization: Bearer <API_TOKEN>"
<html>
<head><title>401 Authorization Required</title></head>
<body>
<center><h1>401 Authorization Required</h1></center>
<hr><center>openresty</center>
</body>
</html>

The following page indicates that Samsung is blocking new installations:

Archived versions of this page (Wayback Machine) suggest that Samsung made this change very recently: SmartThings - Home Assistant

I only need to set up an automation to restrict the maximum volume to a safer level so that I don’t accidentally wake-up a tightly packed Dutch neighborhood during late hours. The automation intended is very simple: if volume > 20% then set volume = 10%.

I’m considering returning the product because its maximum volume can reach unsafe levels, and it is unclear whether Samsung Electronics is positively working with Home Assistant to resolve the issue.

I tried this with a newly purchased Q990D. With the custom component, I cannot change volume/play/pause/mute

I have success with a different integration:

I am able to control the volume, read the volume, switch the source.
Only problem is I have yet to find a way how to cast radio or other media to the soundbar, as the integrated google cast integration detects the soundbar, but says the entity is unavailable.

When did you generate your access token? Is it prior to or around December 2024?

is this still working for you?