home-assistant.io/source/_components/xiaomi_tv.markdown
Piotr Żuralski 6cbcc1acdc fixing ha_category components annotation (#9432)
* fixing ha_category components annotation

Signed-off-by: Piotr Żuralski <piotr.zuralski@gmail.com>

* ✏️ Tweak
2019-05-11 09:46:28 +02:00

1.6 KiB

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_release, ha_iot_class, redirect_from
layout title description date sidebar comments sharing footer logo ha_category ha_release ha_iot_class redirect_from
page Xiaomi TV Instructions on how to integrate a Xiaomi TV into Home Assistant. 2018-02-12 19:00 true false true true xiaomi.png
Media Player
0.64 Assumed State
/components/media_player.xiaomi_tv/

The xiaomi_tv platform allows you to control a Xiaomi TV.

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
media_player:
  - platform: xiaomi_tv

When starting or restarting Home Assistant make sure your TV is off. This is a flaw in the TV itself.

{% configuration %} host: description: "The IP of the Xiaomi TV, e.g., 192.168.0.10." required: false type: string name: description: The name to use on the frontend. required: false default: Xiaomi TV type: string {% endconfiguration %}

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

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.