Skip to content

Samsung MS750 #37

Open
Open
@znanywawa

Description

@znanywawa

Hi Piotr,

I have a problem with Samsung MS750.
I did installed Your integration via HACS, also I have created completely fresh API token at SmartThings (same API token is used by TIZEN integration for TV and works with no issues) and I have checked does control via mobile app works (and it works).

But still I have an error at HA:

Update for media_player.living_room_soundbar_ms750 fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 527, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 722, in async_device_update
    raise exc
  File "/usr/local/lib/python3.10/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 76, in update
    SoundbarApi.device_update(self)
  File "/config/custom_components/smartthings_soundbar/api.py", line 39, in device_update
    device_source = data['main']['inputSource']['value']
KeyError: 'inputSource'

My config is as below:

- platform: smartthings_soundbar
  name: "Living Room Soundbar MS750"
  api_key: "XXX-YYY-DDD-AAA-BBB"
  device_id: "YYY-XXX-AAA-DDD-BBB"
  max_volume: 100

Both (API key and device ID) are correct and device have ONLINE status at SmartThings:
image

Any idea?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions