Site updated at 2018-01-11 20:26:26 UTC

This commit is contained in:
Travis CI 2018-01-11 20:26:27 +00:00
parent 7dd64f5e9d
commit f1e8e05fb1
27 changed files with 76 additions and 67 deletions

View file

@ -75,7 +75,7 @@
</header>
<hr class="divider">
<p>Google Cast devices like Android TVs and Chromecasts will be automatically discovered if you enable <a href="/components/discovery/">the discovery component</a>. There is a issue where Chromecasts can only be discovered if your device is connected to the same subnet as your Chromecast.</p>
<p>Chromecast platform can also be forced to load by adding the following lines to your <code class="highlighter-rouge">configuration.yaml</code>:</p>
<p>The Chromecast platform can also be forced to load by adding the following lines to your <code class="highlighter-rouge">configuration.yaml</code>:</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
<span class="s">media_player</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">cast</span>
@ -84,8 +84,16 @@
<p>Configuration variables:</p>
<ul>
<li><strong>host</strong> (<em>Optional</em>): Use only if you dont want to scan for devices.</li>
<li><strong>ignore_cec</strong> (<em>Optional</em>) A list of chromecasts that should ignore CEC data for determining the active input. <a href="https://github.com/balloob/pychromecast#ignoring-cec-data">See the upstream documentation for more information.</a></li>
<li><strong>ignore_cec</strong> (<em>Optional</em>) A list of Chromecasts that should ignore CEC data for determining the active input. <a href="https://github.com/balloob/pychromecast#ignoring-cec-data">See the upstream documentation for more information.</a></li>
</ul>
<h2><a class="title-link" name="example" href="#example"></a> Example</h2>
<p>By setting <code class="highlighter-rouge">host:</code> you can specify the Chromecast to use.</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
<span class="s">media_player</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">cast</span>
<span class="s">host</span><span class="pi">:</span> <span class="s">192.168.1.10</span>
</code></pre>
</div>
</article>
</div>
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">

View file

@ -91,7 +91,7 @@
<ul>
<li><strong>name</strong> (<em>Optional</em>): Setting the optional parameter <code class="highlighter-rouge">name</code> allows multiple notifiers to be created. The default value is <code class="highlighter-rouge">notify</code>. The notifier will bind to the service <code class="highlighter-rouge">notify.NOTIFIER_NAME</code>.</li>
<li><strong>api_key</strong> (<em>Required</em>): The Slack API token to use for sending Slack messages.</li>
<li><strong>default_channel</strong> (<em>Required</em>): The default channel to post to if no channel is explicitly specified when sending the notification message.</li>
<li><strong>default_channel</strong> (<em>Required</em>): The default channel to post to if no channel is explicitly specified when sending the notification message. A channel can be specified adding a target attribute to the json at the same level as “message”</li>
<li><strong>username</strong> (<em>Optional</em>): Setting username will allow Home Assistant to post to Slack using the username specified. By default not setting this will post to Slack using the user account or botname that you generated the api_key as.</li>
<li><strong>icon</strong> (<em>Optional</em>): Use one of the Slack emojis as an Icon for the supplied username. Slack uses the standard emoji sets used <a href="http://www.webpagefx.com/tools/emoji-cheat-sheet/">here</a>.</li>
</ul>
@ -147,6 +147,7 @@
<div class="language-json highlighter-rouge"><pre class="highlight"><code><span class="p">{</span><span class="w">
</span><span class="nt">"message"</span><span class="p">:</span><span class="s2">"Message that will be added as a comment to the file."</span><span class="p">,</span><span class="w">
</span><span class="nt">"title"</span><span class="p">:</span><span class="s2">"Title of the file."</span><span class="p">,</span><span class="w">
</span><span class="nt">"target"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="s2">"#channelname"</span><span class="p">],</span><span class="w">
</span><span class="nt">"data"</span><span class="p">:{</span><span class="w">
</span><span class="nt">"file"</span><span class="p">:{</span><span class="w">
</span><span class="nt">"url"</span><span class="p">:</span><span class="s2">"http://[url to file, photo, security camera etc]"</span><span class="p">,</span><span class="w">