From d6b1290db90e15a54bd5841f3abbdaac0b7558c0 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 10 Sep 2019 21:55:40 -0700 Subject: [PATCH 1/4] Add Home Assistant Cast service docs --- source/_components/cast.markdown | 39 ++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/source/_components/cast.markdown b/source/_components/cast.markdown index 59ac474f86e1..35bf855a5bbd 100644 --- a/source/_components/cast.markdown +++ b/source/_components/cast.markdown @@ -15,6 +15,17 @@ discovered if you enable [the discovery integration](/components/discovery/). If you don't have the discovery integration enabled, you can enable the Cast integration by going to the Integrations page inside the config panel. +## Home Assistant Cast + +The Cast integration allows you to start Home Assistant Cast on any Chromecast device. This is done via the `cast.show_lovelace_view` service. The service takes the path of a Lovelace view and an entity ID of a Cast device to show the view on. + +```json +{ + "entity_id": "media_player.office_display_4", + "view_path": "lights" +} +``` + ## Advanced use The Cast integration has some extra configuration options available for advanced @@ -38,20 +49,20 @@ You may need to enable Multicast DNS (MDNS) on your router if you are on a diffe {% 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.](https://github.com/balloob/pychromecast#ignoring-cec-data) - required: false - type: list +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.](https://github.com/balloob/pychromecast#ignoring-cec-data) +required: false +type: list {% endconfiguration %} If you want to manually configure multiple Cast media players, you can define From 452a4dce20cfbe15b872f8be0d1f767c7e39cb5f Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 10 Sep 2019 22:00:52 -0700 Subject: [PATCH 2/4] Add link in hass cast announcement --- source/_posts/2019-08-06-home-assistant-cast.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_posts/2019-08-06-home-assistant-cast.markdown b/source/_posts/2019-08-06-home-assistant-cast.markdown index 64c38bb15b6f..e73a70353a34 100644 --- a/source/_posts/2019-08-06-home-assistant-cast.markdown +++ b/source/_posts/2019-08-06-home-assistant-cast.markdown @@ -59,5 +59,5 @@ entities: This is the first release of Home Assistant Cast, and so we focused on the minimum that was worthy of a release. We still have some more things planned: -- Allow starting Home Assistant Cast from Home Assistant itself (not a browser), as part of an automation or script. +- Allow starting Home Assistant Cast from Home Assistant itself (not a browser), as part of an automation or script. [This is live now since Home Assistant 0.99.](/components/cast/#home-assistant-cast) - Use Home Assistant Cast as a text-to-speech target (inspired by [lovelace-browser-commander by @thomasloven](https://github.com/thomasloven/lovelace-browser-commander)). From 4f7ad96412106b80742bdbe6f0390c7c9d75141d Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 18 Sep 2019 22:06:16 +0200 Subject: [PATCH 3/4] Update source/_components/cast.markdown --- source/_components/cast.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_components/cast.markdown b/source/_components/cast.markdown index 35bf855a5bbd..596c9ad07902 100644 --- a/source/_components/cast.markdown +++ b/source/_components/cast.markdown @@ -17,7 +17,7 @@ integration by going to the Integrations page inside the config panel. ## Home Assistant Cast -The Cast integration allows you to start Home Assistant Cast on any Chromecast device. This is done via the `cast.show_lovelace_view` service. The service takes the path of a Lovelace view and an entity ID of a Cast device to show the view on. +The Cast integration allows you to start Home Assistant Cast on any Chromecast device, using the `cast.show_lovelace_view` service. The service takes the path of a Lovelace view and an entity ID of a Cast device to show the view on. ```json { From 13ed4276a9175c988097961c520a5e432d3d8028 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 18 Sep 2019 22:08:23 +0200 Subject: [PATCH 4/4] :ambulance: Fixes indents --- source/_components/cast.markdown | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/source/_components/cast.markdown b/source/_components/cast.markdown index 596c9ad07902..a7f8c7b0f891 100644 --- a/source/_components/cast.markdown +++ b/source/_components/cast.markdown @@ -49,20 +49,20 @@ You may need to enable Multicast DNS (MDNS) on your router if you are on a diffe {% 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.](https://github.com/balloob/pychromecast#ignoring-cec-data) -required: false -type: list + 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.](https://github.com/balloob/pychromecast#ignoring-cec-data) + required: false + type: list {% endconfiguration %} If you want to manually configure multiple Cast media players, you can define