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

Samsung HW-Q990D not supported yet? :-) #71

Closed
LJ-Stevo opened this issue Jul 25, 2024 · 24 comments
Closed

Samsung HW-Q990D not supported yet? :-) #71

LJ-Stevo opened this issue Jul 25, 2024 · 24 comments

Comments

@LJ-Stevo
Copy link

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!

@Greg-or-y
Copy link

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.

@PiotrMachowski
Copy link
Owner

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

@Greg-or-y
Copy link

image

image

@Greg-or-y
Copy link

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

@Greg-or-y
Copy link

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

@Greg-or-y
Copy link

image

@PiotrMachowski
Copy link
Owner

coś w logach jest?

@Greg-or-y
Copy link

image

@PiotrMachowski
Copy link
Owner

Do you have built-in Smartthings integration configured?

@unlobito
Copy link

unlobito commented Nov 3, 2024

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

@mckochan
Copy link

mckochan commented Nov 19, 2024

Same error with HW-LS60D music frame.

@MarekMarcinski
Copy link

MarekMarcinski commented Nov 23, 2024

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

@TTLucian
Copy link

Same as #71 (comment)
Soundbar HW-Q930D. Should I open another issue?

@PiotrMachowski
Copy link
Owner

Should be fixed in v1.0.5

@unlobito
Copy link

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

@TTLucian
Copy link

TTLucian commented Dec 31, 2024

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

@PiotrMachowski
Copy link
Owner

@TTLucian is that a downgrade compared to previous version?

@TTLucian
Copy link

TTLucian commented Dec 31, 2024

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.

@PiotrMachowski
Copy link
Owner

PiotrMachowski commented Dec 31, 2024

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

@TTLucian
Copy link

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.

@Greg-or-y
Copy link

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
Copy link

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.

@lemval
Copy link

lemval commented Jan 1, 2025

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.

@PiotrMachowski
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants