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

about device id web address

Open shawnzhou1120 opened this issue 2 years ago • 3 comments

from ur instruction,the device ID is came from: graph-eu01-euwest1.api.smartthings.com/device https://graph-eu01-euwest1.api.smartthings.com/device/show/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX but i found my decice ID is come from graph-ap02-apnortheast2.api.smartthings.com/device/ look like this: https://graph-ap02-apnortheast2.api.smartthings.com/device/show/xxxx-xxx-xxx-xxx-xxxxx

the log in HA: Update for media_player.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'

shawnzhou1120 avatar Nov 19 '22 06:11 shawnzhou1120

only enter the part with xxxx-xxx-xxx-xxx-xxxxx as device ID

mimale avatar Nov 27 '22 21:11 mimale

but,looks,it is not work in my HA.

shawnzhou1120 avatar Nov 29 '22 13:11 shawnzhou1120

Did you enter the correct Token ID?

mimale avatar Nov 29 '22 20:11 mimale