Xiaomi TV
The xiaomi_tv
integrationIntegrations connect and integrate Home Assistant with your devices, services, and more.
[Learn more] allows you to control a Xiaomi TV.
The Xiaomi TV integration only supports Xiaomi TVs running MIUI.
You need to make sure the TV is connected to the internet, and that your Home Assistant instance is on the same network.
To add a TV to your installation, add the following to your configuration.yaml
The configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI.[Learn more] file.
After changing the configuration.yaml
The configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI.[Learn more] file, restart Home Assistant to apply the changes. To view the changes, go to Settings > Devices & services > Entities.
# Example configuration.yaml entry
media_player:
- platform: xiaomi_tv
If you do not set a host in the configuration file, local TVs will automatically be discovered.
To manually add a TV you can use the following configuration:
# Example configuration.yaml entry
media_player:
- platform: xiaomi_tv
host: YOUR_TV_IP
name: YOUR_TV_NAME