Xiaomi TV

The xiaomi_tv platform 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 file:

# Example configuration.yaml entry
  - platform: xiaomi_tv
When starting or restarting Home Assistant make sure your TV is off. This is a flaw in the TV itself.

Configuration Variables

host string (Optional)

The IP of the Xiaomi TV, e.g.,

name string (Optional, default: Xiaomi TV)

The name to use on the frontend.

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
  - platform: xiaomi_tv
    host: YOUR_TV_IP
    name: YOUR_TV_NAME
The platform will never turn your TV off. Instead, it will be put to sleep and woken up. This can be useful, because the selected source of the TV will remain the same. It will essentially turn your TV into a dumb TV.