Bonjour à tous,
Je souhaite diffuser un son via le serveur HA via la prise jack, et d’après maintes sources, l’intégration VLC semble être la meilleure solution…
Contexte : NUC N97 + Proxmox + VM HAOS + Audio passthrough
Steps:
- Ajout de l’Add-On VLC
- Redémarrage complet HA
- Configuration Add-On VLC : sélection des entrées et sorties audio détectées par l’add-on
- Redémarrage Add-On
- Détection automatique par HA de l’Intégration VLC media player via Telnet
- Configuration automatique OK
- Ouverture de l’entité crée, navigation pour sélectionner un média, lancement de la lecture
Et là, erreur :
Échec de l’exécution de l’action media_player/play_media. Unable to determine Home Assistant URL to send to device. Configure internal and external URL in general settings.
Une idée de ce qui cloche ?
Logs VLC :
[11:03:24] INFO: Service restart after closing
cont-init: info: /etc/cont-init.d/secret.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service vlc: starting
s6-rc: info: service vlc successfully started
s6-rc: info: service legacy-services: starting
[00007fc4aaf94c40] main interface error: no suitable interface module
[00007fc4af6da9b0] main libvlc error: interface "globalhotkeys,none" initialization failed
[00007fc4af498c10] main playlist: playlist is empty
[00007fc4aaf95420] [http] lua interface: Lua HTTP interface
[00007fc4af458920] [telnet] lua interface: Listening on host "telnet://:4212".
s6-rc: info: service legacy-services successfully started
[11:03:24] INFO: Successfully send discovery information to Home Assistant.
2024/09/15 11:03:25 [notice] 161#161: using the "epoll" event method
2024/09/15 11:03:25 [notice] 161#161: nginx/1.24.0
2024/09/15 11:03:25 [notice] 161#161: OS: Linux 6.6.46-haos
2024/09/15 11:03:25 [notice] 161#161: getrlimit(RLIMIT_NOFILE): 1073741816:1073741816
2024/09/15 11:03:25 [notice] 161#161: start worker processes
2024/09/15 11:03:25 [notice] 161#161: start worker process 166
Logs HA :
2024-09-15 11:05:36.429 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139710388009664] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/media_player/browse_media.py", line 74, in async_process_play_media_url
base_url = get_url(hass)
^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 212, 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 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2761, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 996, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1068, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/vlc_telnet/media_player.py", line 62, in wrapper
await func(self, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/vlc_telnet/media_player.py", line 253, in async_play_media
media_id = async_process_play_media_url(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/media_player/browse_media.py", line 83, 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.
Ma configuration
System Information
version | core-2024.9.1 |
---|---|
installation_type | Home Assistant OS |
dev | false |
hassio | true |
docker | true |
user | root |
virtualenv | false |
python_version | 3.12.4 |
os_name | Linux |
os_version | 6.6.46-haos |
arch | x86_64 |
timezone | Europe/Paris |
config_dir | /config |
Home Assistant Community Store
GitHub API | ok |
---|---|
GitHub Content | ok |
GitHub Web | ok |
HACS Data | ok |
GitHub API Calls Remaining | 5000 |
Installed Version | 2.0.1 |
Stage | running |
Available Repositories | 1473 |
Downloaded Repositories | 6 |
Home Assistant Cloud
logged_in | false |
---|---|
can_reach_cert_server | ok |
can_reach_cloud_auth | ok |
can_reach_cloud | ok |
Home Assistant Supervisor
host_os | Home Assistant OS 13.1 |
---|---|
update_channel | stable |
supervisor_version | supervisor-2024.09.1 |
agent_version | 1.6.0 |
docker_version | 26.1.4 |
disk_total | 30.8 GB |
disk_used | 10.1 GB |
healthy | true |
supported | true |
host_connectivity | true |
supervisor_connectivity | true |
ntp_synchronized | true |
virtualization | kvm |
board | ova |
supervisor_api | ok |
version_api | ok |
installed_addons | File editor (5.8.0), Duck DNS (1.18.0), Linky (1.5.0), Terminal & SSH (9.14.0), Samba share (12.3.2), VLC (0.3.0) |
Dashboards
dashboards | 5 |
---|---|
resources | 3 |
views | 21 |
mode | storage |
Recorder
oldest_recorder_run | 5 septembre 2024 à 13:20 |
---|---|
current_recorder_run | 15 septembre 2024 à 10:56 |
estimated_db_size | 187.26 MiB |
database_engine | sqlite |
database_version | 3.45.3 |