Paulus Schoutsen 0c2c8f8652 Add Home Assistant Cast service docs (#10339)
* Add Home Assistant Cast service docs

* Add link in hass cast announcement

* Update source/_components/cast.markdown

* 🚑 Fixes indents
2019-09-18 13:44:24 -07:00

1.9 KiB

title, description, logo, ha_category, featured, ha_release, ha_iot_class, redirect_from
title description logo ha_category featured ha_release ha_iot_class redirect_from
Google Cast Instructions on how to integrate Google Cast into Home Assistant. google_cast.png
Media Player
true pre 0.7 Local Polling /components/media_player.cast/

You can enable the Cast integration by going to the Integrations page inside the config panel.

Home Assistant Cast

Home Assistant has its own Cast application to show the Home Assistant UI. You can load it on your Chromecast by adding the Cast entity row to your Lovelace UI or by using the cast.show_lovelace_ui service. The service takes the path of a Lovelace view and an entity ID of a Cast device to show the view on.

{
  "entity_id": "media_player.office_display_4",
  "view_path": "lights"
}

Advanced use

Note that Home Assistant Cast requires your Home Assistant installation to be accessible via https://. If you're using Home Assistant Cloud, you don't need to do anything. Otherwise you must make sure that you have configured the base_url for the http integration.

Advanced use

Cast devices can only be discovered if they are on the same subnet as Home Assistant. If this is not the case, you need to configure the IP address of the Cast device directly:

# Example configuration.yaml entry
cast:
  media_player:
    - host: 192.168.1.10

{% configuration %} media_player: description: A list that contains all Cast devices. required: true type: list keys: host: description: Use only if you don't want to scan for devices. required: false type: string ignore_cec: description: > A list of Chromecasts that should ignore CEC data for determining the active input. See the upstream documentation for more information. required: false type: list {% endconfiguration %}