ollo69 / ha-samsungtv-smart

📺 Home Assistant SamsungTV Smart Component with simplified SmartThings API Support configurable from User Interface.
Apache License 2.0
460 stars 59 forks source link

I can't play Media on the TV #162

Closed prodev900 closed 1 year ago

prodev900 commented 2 years ago

Describe the bug I can't play Media on the SmartTV, I always get an error Message.

Screenshots https://i.ibb.co/wQm9yvM/Screenshot-20220426-151751-Home-Assistant.jpg

Output of HA logs

Logger: homeassistant.components.websocket_api.http.connection
Source: components/media_player/browse_media.py:74
Integration: Home Assistant WebSocket API ([documentation](https://www.home-assistant.io/integrations/websocket_api), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+websocket_api%22))
First occurred: 15:35:44 (2 occurrences)
Last logged: 15:35:45

[547634912176] Unable to determine Home Assistant URL to send to device. Configure internal and external URL in general settings.
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/media_player/browse_media.py", line 65, in async_process_play_media_url
    base_url = get_url(hass)
  File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 201, in get_url
    raise NoURLAvailableError
homeassistant.helpers.network.NoURLAvailableError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 193, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1634, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1671, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 677, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 955, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 714, in _handle_entity_call
    await result
  File "/config/custom_components/samsungtv_smart/media_player.py", line 1452, in async_play_media
    media_id = async_process_play_media_url(self.hass, media_id)
  File "/usr/src/homeassistant/homeassistant/components/media_player/browse_media.py", line 74, in async_process_play_media_url
    raise HomeAssistantError(msg) from err
homeassistant.exceptions.HomeAssistantError: Unable to determine Home Assistant URL to send to device. Configure internal and external URL in general settings.
github-actions[bot] commented 1 year ago

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 7 days with no activity.