c0ffeeca7 1cea4cd373
v-integrations: restart HA after changing config (#32744)
- add note to restart HA after changing config
- add related topics
- rename 'platform' or 'sensor' to 'integration' to streamline terminology
- add glossary reference to Configuration file
2024-05-14 10:30:30 +02:00

2.0 KiB
Raw Blame History

title, description, ha_category, ha_release, ha_iot_class, ha_domain, ha_platforms, ha_integration_type, related
title description ha_category ha_release ha_iot_class ha_domain ha_platforms ha_integration_type related
VLC media player Instructions on how to integrate VLC media player into Home Assistant.
Media player
0.35 Local Polling vlc
media_player
integration
docs title
/docs/configuration/ Configuration file

The vlc platform allows you to control VLC media player.

The VLC media player {% term integration %}, is currently only available for installations that are based on the Home Assistant Core in a Python virtual environment.

Configuration

To add a VLC media player to your installation, add the following to your {% term "configuration.yaml" %} file. {% include integrations/restart_ha_after_config_inclusion.md %}

# Example configuration.yaml entry
media_player:
  - platform: vlc

{% configuration %} name: description: The name to use in the frontend. required: false type: string arguments: description: Additional arguments to be passed to VLC. required: false type: string {% endconfiguration %}

Only the "music" media type is supported for now.

This service will control a background VLC instance, therefore you cannot use this to control a VLC instance launched on your desktop, unlike the Kodi media player for example.

Full configuration

A full configuration for VLC could look like the one below:

# Example configuration.yaml entry
media_player:
  - platform: vlc
    name: speaker_1
    arguments: "--alsa-audio-device=hw:1,0"

Additional configuration on macOS

On macOS python-vlc wont find the VLC plugin directory unless you add this to the users .bash_profile that is running Home Assistant:

export VLC_PLUGIN_PATH=$VLC_PLUGIN_PATH:/Applications/VLC.app/Contents/MacOS/plugins

Additional configuration on Linux

You need to add the homeassistant user to the audio group:

sudo usermod -a -G audio homeassistant