Closed elgeniskogen closed 2 years ago
Are you sure there is absolutely nothing in logs? It might be just after HA start
The only mention of the integation in the log is:
2022-01-21 15:30:30 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration smartthings_soundbar which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
I have checked the code and there should be an entity even when communication with SmartThings fails... Can you check your config again?
By the way, this integration is really poorly implemented, I have also a fork of built-in SmartThings integration that adds support for media players, but it is not up to date with the latest HA version. I will try to add it officially to HA (hopefully soon)
Thanks for following up!
There's is absolutely no entity for the sounder :-) I have tried a gazillion times and checked.
I tried the exact same config on another instance for HA (both with 2021.12.10) and the it works perfectly! I have also tried the script and it output:
CAPABILITIES
['ocf', 'execute', 'refresh', 'switch', 'audioVolume', 'audioMute', 'audioTrackData', 'mediaInputSource', 'mediaPlayback', 'audioNotification', 'samsungvd.soundFrom', 'samsungvd.groupInfo']
ATTRIBUTES
defaultdict(<function DeviceStatusBase.__init__.<locals>.<lambda> at 0x7f6c5749cd30>, {'supportedPlaybackCommands': status(value=['play', 'pause', 'stop'], unit=None, data=None), 'playbackStatus': status(value='stopped', unit=None, data=None), 'role': status(value=None, unit=None, data=None), 'masterName': status(value=None, unit=None, data=None), 'status': status(value=None, unit=None, data=None), 'mode': status(value=3, unit=None, data=None), 'detailName': status(value='External Device', unit=None, data=None), 'volume': status(value=20, unit='%', data=None), 'st': status(value='1970-01-01T00:00:31Z', unit=None, data=None), 'mndt': status(value='2021-01-01', unit=None, data=None), 'mnfv': status(value='HW-Q960AWWB-1010.1', unit=None, data=None), 'mnhw': status(value='', unit=None, data=None), 'di': status(value='DEVICE_ID', unit=None, data=None), 'mnsl': status(value='', unit=None, data=None), 'dmv': status(value='res.1.1.0,sh.1.1.0', unit=None, data=None), 'n': status(value='Samsung Soundbar Q960A', unit=None, data=None), 'mnmo': status(value='HW-Q960A', unit=None, data=None), 'vid': status(value='VD-NetworkAudio-002S', unit=None, data=None), 'mnmn': status(value='Samsung Electronics', unit=None, data=None), 'mnml': status(value='', unit=None, data=None), 'mnpv': status(value='5.5', unit=None, data=None), 'mnos': status(value='Tizen', unit=None, data=None), 'pi': status(value='DEVICE_ID', unit=None, data=None), 'icv': status(value='core.1.1.0', unit=None, data=None), 'supportedInputSources': status(value=['digital', 'HDMI1', 'bluetooth', 'HDMI2', 'wifi'], unit=None, data=None), 'inputSource': status(value='HDMI1', unit=None, data=None), 'mute': status(value='muted', unit=None, data=None), 'data': status(value=None, unit=None, data=None), 'switch': status(value='off', unit=None, data=None), 'totalTime': status(value=0, unit=None, data=None), 'audioTrackData': status(value={'title': 'NRK P1 Oslo og Akershus', 'artist': '', 'album': ''}, unit=None, data=None), 'elapsedTime': status(value=0, unit=None, data=None)})
STATUS
{'main': {'mndt': {'value': '2021-01-01'}, 'mnfv': {'value': 'HW-Q960AWWB-1010.1'}, 'role': {'value': None}, 'mnhw': {'value': ''}, 'detailName': {'value': 'External Device'}, 'data': {'value': None}, 'di': {'value': 'DEVICE_ID'}, 'supportedPlaybackCommands': {'value': '["play","pause","stop"]'}, 'supportedInputSources': {'value': '["digital","HDMI1","bluetooth","HDMI2","wifi"]'}, 'mnsl': {'value': ''}, 'dmv': {'value': 'res.1.1.0,sh.1.1.0'}, 'switch': {'value': 'off'}, 'mode': {'value': '3'}, 'vid': {'value': 'VD-NetworkAudio-002S'}, 'mnpv': {'value': '5.5'}, 'icv': {'value': 'core.1.1.0'}, 'st': {'value': '1970-01-01T00:00:31Z'}, 'totalTime': {'value': '0'}, 'playbackStatus': {'value': 'stopped'}, 'mute': {'value': 'muted'}, 'n': {'value': 'Samsung Soundbar Q960A'}, 'volume': {'value': '20', 'unit': '%'}, 'mnmo': {'value': 'HW-Q960A'}, 'mnmn': {'value': 'Samsung Electronics'}, 'mnml': {'value': ''}, 'mnos': {'value': 'Tizen'}, 'pi': {'value': 'DEVICE_ID'}, 'inputSource': {'value': 'HDMI1'}, 'masterName': {'value': None}, 'status': {'value': None}, 'audioTrackData': {'value': '{"title":"NRK P1 Oslo og Akershus","artist":"","album":""}'}, 'elapsedTime': {'value': '0'}}}
I am lost in what could be wrong with the main instance of HA. All other HACS components etc work fine. Any idea what it can be or where I could search/test?
Would be FANTASTIC of the built in integration could have media player added :-)
Thanks again for your support!! :-)
@PiotrMachowski I have updated my previous comment to reflect the fact the the second HA instance also work with 2021.12.10. No I am lost on where to move next......
@elgeniskogen Maybe there is a problem in configuration file that results in ignoring this media_player entry?
@elgeniskogen Have you found the root of your problem?
I will close this issue now, as it doesn't seem to be caused by the integration itself.
Now it is working :-) My bad, as I had two media_player keys in the config :-( Sorry!!
Hi,
Thanks for doing this great work and for sharing! I hope you enjoyed the coffee and are able to help me.
I have a Samsung HW-Q960A (think same as 950 in US) installed and running fine in SmartThings app. I am able to use the SmartThings integration and access all my devices in SmartThings. For the Soundbar I can only see status and turn on/Off, so I installed your component with HACS. I have booted HA after install in HACS and after config, but the media_player don´t show up among the entities. I have turned on debug-logging for custom_components.smartthings_soundbar, but there are no messages in the log.
My configuration.yaml is liek this
If I am not able to select input-source with your great component, I am afraid I will have to retrun the soundbar. So your help will be highly appreacted!!!
best regards
Erik :-)