PiotrMachowski / Home-Assistant-custom-components-SmartThings-Soundbar

Samsung Smarthings API for controlling Soundbar
MIT License
92 stars 24 forks source link

I couldn't choose the source and control in samsung Q70R #1

Closed tieppm closed 4 years ago

tieppm commented 4 years ago

I am using sony 55x8500G TV and Q70r soundbar I have followed your instructions and succeeded. But I couldn't choose the source and I cannot control anything Can you solve this problem?

Logger: homeassistant.helpers.entity
Source: custom_components/smartthings_soundbar/api.py:38
First occurred: 21:17:48 (317 occurrences)
Last logged: 22:15:08

Update for media_player.ss_q70r fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 476, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/smartthings_soundbar/media_player.py", line 77, in update
    SoundbarApi.device_update(self)
  File "/config/custom_components/smartthings_soundbar/api.py", line 38, in device_update
    data = resp.json()
  File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 898, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/simplejson/__init__.py", line 525, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Untitled

PiotrMachowski commented 4 years ago

Are you sure your config is correct?

tieppm commented 4 years ago

@PiotrMachowski my congifg 1

tieppm commented 4 years ago

thank you very much. I just checked it again and found out it was wrong at Device ID I have corrected and succeeded.

PiotrMachowski commented 4 years ago

That's great :) By the way, does samsung_multi_room work with your soundbar?

tieppm commented 4 years ago

@PiotrMachowski samsung_multi_room not work :( you can send media from hass to sounbar with WIFI?

PiotrMachowski commented 4 years ago

Unfortunately I am not able to do it :( Right now I have Chromecast Audio connected to it, so I send media to Chromecast

tieppm commented 4 years ago

you conect chromecast to soundbar and send media from hass to chromecast? Hope to have a solution soon

PiotrMachowski commented 4 years ago

Exactly

tieppm commented 4 years ago

Hi.

  1. I do not understand what this slider is for? Can it be used to control volume like the Google home mini?
  2. I do not see the HDMI ARC source IMG_20200404_094018 IMG_20200404_094029
PiotrMachowski commented 4 years ago
  1. Yes, that's volume slider
  2. There is no separate HDMI ARC source, there is a common one for optical input and HDMI ARC. It is called digital (at least in my case)
tieppm commented 4 years ago

The left volume bar is worth 0? The right is worth 100?

PiotrMachowski commented 4 years ago

Yes

tieppm commented 4 years ago

I update your component and it very good Thank U You can update worth in volume slide EX IMG_20200404_101302

PiotrMachowski commented 4 years ago

In current version you can scale volume in HA so that 100% in HA will match a desired volume on the soundbar (eg. 30%). I find it very useful as it gets loud very fast.

tieppm commented 4 years ago

@PiotrMachowski Thank U :D