Home-Assistant-custom-components-SmartThings-Soundbar icon indicating copy to clipboard operation
Home-Assistant-custom-components-SmartThings-Soundbar copied to clipboard

Samsung HW-Q990D not supported yet? :-)

Open LJ-Stevo opened this issue 1 year ago • 9 comments

Hi,

Just asking as a noob, is it possible to add support for the newest model HW-Q990D? At the moment I figured out to get the entity. Now I only have: On/Off Play/Pause Mute/Unmute Volume + / Volume - (with volume bar)

Thanks!

LJ-Stevo avatar Jul 25 '24 10:07 LJ-Stevo

Piotrze,

Jeżeli to możliwe z Twojej strony, dodaj proszę obsługę Q990D (2024).

        "ocf": {
            "ocfDeviceType": "oic.d.networkaudio",
            "name": "Q-Soundbar",
            "specVersion": "core.1.1.0",
            "verticalDomainSpecVersion": "res.1.1.0,sh.1.1.0",
            "manufacturerName": "Samsung Electronics",
            "modelNumber": "HW-Q990D",
            "platformVersion": "8.0",
            "platformOS": "Tizen",
            "hwVersion": "",
            "firmwareVersion": "SAT-MT8532D24WWC-1015.3",
            "vendorId": "VD-NetworkAudio-003S",
            "vendorResourceClientServerVersion": "3.2.41",
            "lastSignupTime": "2024-09-19T10:28:30.544902Z",
            "transferCandidate": false,
            "additionalAuthCodeRequired": false
        },

Z góry dziękuję za support :) pozdro.

Greg-or-y avatar Sep 20 '24 16:09 Greg-or-y

@LJ-Stevo @Greg-or-y

Can you show the state and attributes of entity that is created?

Open your Home Assistant instance and show your state developer tools.

PiotrMachowski avatar Sep 20 '24 16:09 PiotrMachowski

image

image

Greg-or-y avatar Sep 20 '24 17:09 Greg-or-y

Działa tylko głośniej/ciszej i mute. brak wyboru wejścia (na dole pierwszego screena)

Greg-or-y avatar Sep 20 '24 17:09 Greg-or-y

Nie widzę też wartości liczbowej określającej aktualny poziom głośności, co jest przydatne w automatyzacji.

Greg-or-y avatar Sep 20 '24 17:09 Greg-or-y

image

Greg-or-y avatar Sep 20 '24 17:09 Greg-or-y

coś w logach jest?

PiotrMachowski avatar Sep 20 '24 18:09 PiotrMachowski

image

Greg-or-y avatar Sep 20 '24 18:09 Greg-or-y

Do you have built-in Smartthings integration configured?

PiotrMachowski avatar Sep 20 '24 18:09 PiotrMachowski

Hey @PiotrMachowski,

I'm having similar trouble with a HW-Q930D (2024).

I get the same error as @Greg-or-y in the Home Assistant log.

Update for media_player.q_series_soundbar fails

Logger: homeassistant.helpers.entity Source: helpers/entity.py:942 First occurred: 20:52:39 (1 occurrences) Last logged: 20:52:39 Update for media_player.q_series_soundbar fails

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 942, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1302, in async_device_update
    await hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/smartthings_soundbar/media_player.py", line 68, in update
    SoundbarApi.device_update(self)
  File "/config/custom_components/smartthings_soundbar/api.py", line 39, in device_update
    playback_state = data['main']['playbackStatus']['value']
                     ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'playbackStatus'

Similar to @LJ-Stevo, I'm also only presented with power, play/pause, volume up/down, and no volume level.

State: media_player.q_series_soundbar

State: on

volume_level: 1
is_volume_muted: false
media_title: 
source: 
device_class: speaker
friendly_name: Q-Series Soundbar
supported_features: 85389

The built-in SmartThings integration (using a separate API key with identical permissions) is able to show the current input and volume level, in addition to emitting a power switch at switch.q_series_soundbar.

States: sensor.q_series_* image

I'm happy to provide any other details that could assist with debugging.

Thanks for your work on this integration :)

unlobito avatar Nov 03 '24 21:11 unlobito

Same error with HW-LS60D music frame.

mckochan avatar Nov 19 '24 19:11 mckochan

@PiotrMachowski below you can find how response looks like for a GET req to this endpoint: https://api.smartthings.com/v1/devices/dev_id/states (HW-Q990D) I think the problem is that they removed playbackStatus from main node.

{
    "main": {
        "logType": {
            "value": "[\"errCode\",\"dump\"]"
        },
        "mndt": {
            "value": "2024-01-01"
        },
        "mnfv": {
            "value": "SAT-MT8532D24WWC-1016.0"
        },
        "role": {
            "value": null
        },
        "mnhw": {
            "value": ""
        },
        "detailName": {
            "value": "External Device"
        },
        "data": {
            "value": null
        },
        "di": {
            "value": "xxx-xxx-xxx-xxx"
        },
        "supportedInputSources": {
            "value": "[\"digital\",\"HDMI1\",\"bluetooth\",\"wifi\",\"HDMI2\"]"
        },
        "supportedWiFiFreq": {
            "value": "[\"2.4G\",\"5G\"]"
        },
        "mnsl": {
            "value": ""
        },
        "dmv": {
            "value": "res.1.1.0,sh.1.1.0"
        },
        "tsId": {
            "value": "VD02"
        },
        "switch": {
            "value": "off"
        },
        "dumpType": {
            "value": "file"
        },
        "mode": {
            "value": "10"
        },
        "vid": {
            "value": "VD-NetworkAudio-003S"
        },
        "endpoint": {
            "value": "PIPER"
        },
        "mnpv": {
            "value": "8.0"
        },
        "icv": {
            "value": "core.1.1.0"
        },
        "mediaOutputSupported": {
            "value": null
        },
        "autoReconnection": {
            "value": "true"
        },
        "st": {
            "value": "1970-01-01T00:00:44Z"
        },
        "updatedTime": {
            "value": "1732343424"
        },
        "minVersion": {
            "value": "3.0"
        },
        "wifiUpdateSupport": {
            "value": "true"
        },
        "executableServiceList": {
            "value": null
        },
        "setupId": {
            "value": "301"
        },
        "supportedAuthType": {
            "value": "[\"OPEN\",\"WEP\",\"WPA-PSK\",\"WPA2-PSK\",\"EAP\",\"SAE\",\"OWE\",\"FT-PSK\"]"
        },
        "mobileCamSupported": {
            "value": null
        },
        "mute": {
            "value": "unmuted"
        },
        "protocolType": {
            "value": "ble_ocf"
        },
        "n": {
            "value": "Q-Series Soundbar"
        },
        "mnId": {
            "value": "0AJK"
        },
        "volume": {
            "value": "15",
            "unit": "%"
        },
        "mnmo": {
            "value": "HW-Q990D"
        },
        "mnmn": {
            "value": "Samsung Electronics"
        },
        "imeAdvSupported": {
            "value": null
        },
        "mnml": {
            "value": ""
        },
        "mnos": {
            "value": "Tizen"
        },
        "signinPermission": {
            "value": null
        },
        "pi": {
            "value": "xxxx-xxxx-xxxx"
        },
        "inputSource": {
            "value": "digital"
        },
        "status": {
            "value": "Idle"
        }
    }
}

BTW, status has a value Idle, no matter what. It seems to be a constant 0.o. Checked with playing music via bluetooth and playing a sound via HDMI ARC.

MarekMarcinski avatar Nov 23 '24 06:11 MarekMarcinski

Same as https://github.com/PiotrMachowski/Home-Assistant-custom-components-SmartThings-Soundbar/issues/71#issuecomment-2453575704 Soundbar HW-Q930D. Should I open another issue?

TTLucian avatar Dec 23 '24 14:12 TTLucian

Should be fixed in v1.0.5

PiotrMachowski avatar Dec 30 '24 06:12 PiotrMachowski

@PiotrMachowski can confirm this fixes things on my end- thanks for your work on this! 🚀

unlobito avatar Dec 31 '24 00:12 unlobito

It's also kinda working for me on Q930D but changing source does nothing and it's missing TV/ARC source.

TTLucian avatar Dec 31 '24 03:12 TTLucian

@TTLucian is that a downgrade compared to previous version?

PiotrMachowski avatar Dec 31 '24 03:12 PiotrMachowski

Nope. Previous version was not working at all. Not even the volume nor on/off as I remember... This version works except source selection. Correction, play/pause also not working.

TTLucian avatar Dec 31 '24 04:12 TTLucian

Can you show state and attributes of soundbar entity from dev tools and check HA logs?

PiotrMachowski avatar Dec 31 '24 04:12 PiotrMachowski

source_list:
  - D.IN
  - HDMI1
  - BT
  - WIFI
volume_level: 0.1
is_volume_muted: false
source: D.IN
device_class: speaker
friendly_name: Soundbar
supported_features: 85389

The current source is TV/ARC but it's missing. I can't find anything in HA logs. Not even with debug log enabled.

TTLucian avatar Dec 31 '24 04:12 TTLucian

Cześć Piotrze,

Przepraszam zniknąłem na jakiś czas. Dziś podniosłem integrację do 1.0.5 , mam listę wejść ale wybieranie z niej czegokolwiek po prostu nie przełącza wejść / nie działa.

Czy mogę coś zrobic (diagnostyka z mojej strony) aby pomóc rozwiązać problem ?

Pozdrawiam

Greg-or-y avatar Jan 01 '25 09:01 Greg-or-y

Dodam tylko, że gdy przełączam źródło z pilota to na liście źródeł w Twojej integracji źródło aktualizuje się prawidłowo, natomiast jak wybieram inne z drop listy w integracji to nie przełącza wejść w soundbarze.

Greg-or-y avatar Jan 01 '25 09:01 Greg-or-y

I also looked into this. I own a Q930D. The new version shows the input alright (but sometimes the API does not specify the input). Selecting the input via the API doesn't work either... You can test it yourself at https://my.smartthings.com/advanced/devices/<your_device_id> (after you logged on, see instructions for receiving token) Both samsungvd.audioSoundFrom/setSoundFrom (403 - so need other token) and samsungvd.soundFrom/setSoundFrom (COMPLETED) won't trigger anything. Values possible: 1 / D.IN, 3 / HDMI1, 4 / BT, 25 (TV eARC), 26 / WIFI, 30 / Chromecast built-in. And no, the API also doesn't show eARC in supportedInputSources, so this plugin can't either based on that.

lemval avatar Jan 01 '25 13:01 lemval

Sometimes it helps to remove the soundbar from SmartThings and add it again... 😒

PiotrMachowski avatar Jan 02 '25 03:01 PiotrMachowski