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

Error #33

Open
mellowism opened this issue Nov 1, 2022 · 1 comment
Open

Error #33

mellowism opened this issue Nov 1, 2022 · 1 comment

Comments

@mellowism
Copy link

mellowism commented Nov 1, 2022

Hi, I get an error in logs:

This error originated from a custom integration.

Logger: homeassistant.helpers.entity
Source: custom_components/smartthings_soundbar/api.py:35
Integration: smartthings_soundbar (documentation, issues)
First occurred: 19:21:56 (43 occurrences)
Last logged: 19:28:56

Update for media_player.stue_soundbar fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 515, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 710, 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 35, in device_update
    device_volume = data['main']['volume']['value']
KeyError: 'main'

Config:

- platform: smartthings_soundbar
  name: Stue Soundbar
  api_key: "ladida etc"
  device_id: "xx:xx: etc"
@mimale
Copy link

mimale commented Nov 27, 2022

I had similar issue. my problem was the Device ID was not correct. Check the DEvice ID (only use the xxx part, without the part before/) and check the Token

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

2 participants