No GUI VLC with Telnet interface for linux/386/amd64/armv7/arm64
10K+
A Docker image of VLC with Telnet interface for remote control, designed for Home Assistant users to play audio through any speakers.
This container enables Home Assistant to play audio through any connected speakers via VLC's Telnet interface. It supports USB speakers, HDMI audio, built-in audio, and any ALSA-compatible devices.
Key Features:
Create environment file:
cp .env.template .env
Edit .env with your values:
VLC_TELNET_PASSWORD=your_secure_password
ALSA_DEVICE=J710 # Your audio device keyword
Run with Docker Compose:
services:
vlc-telnet:
image: ne1ver/vlc-telnet
container_name: vlc-telnet
ports:
- "4212:4212"
devices:
- "/dev/snd:/dev/snd"
environment:
- VLC_TELNET_PASSWORD=${VLC_TELNET_PASSWORD}
- ALSA_DEVICE=${ALSA_DEVICE}
restart: unless-stopped
Start the container:
docker-compose up -d
List audio cards on host:
cat /proc/asound/cards
Find your device in output:
0 [J710 ]: USB-Audio - Jabra Speak 710
1 [HDMI ]: HDA-Intel - HDA ATI HDMI
2 [PCH ]: HDA-Intel - HD-Audio Generic
Set ALSA_DEVICE with unique keywords from your device name:
J710 for Jabra Speak 710HDMI for HDMI audioPCH for built-in audio| Variable | Required | Default | Description |
|---|---|---|---|
VLC_TELNET_PASSWORD | Yes | None | Telnet access password |
ALSA_DEVICE | No | "USB Audio" | Keywords to identify your audio device |
How it works: The container uses your keywords to search for the matching audio device and configures it for VLC.
Add to your configuration.yaml:
media_player:
- platform: vlc_telnet
host: localhost
port: 4212
password: your_secure_password
name: Audio Speakers
Or add via UI: Settings → Devices & Services → Add Integration → "VLC Telnet"
J710 instead of generic terms like USB/dev/snd:/dev/snd device mappingALSA_DEVICE with correct keywords from cat /proc/asound/cardsIf audio stops working:
cat /proc/asound/cards on hostALSA_DEVICE with correct keywordsPlay announcement:
service: media_player.play_media
target:
entity_id: media_player.audio_speakers
data:
media_content_id: /config/www/audio/announcement.mp3
media_content_type: music
Volume control:
service: media_player.volume_set
target:
entity_id: media_player.audio_speakers
data:
volume_level: 0.5
Disclaimer: This image is provided as-is. Use at your own risk.
Content type
Image
Digest
sha256:6efdb5a03…
Size
214.6 MB
Last updated
10 months ago
docker pull ne1ver/vlc-telnet