Site updated at 2017-07-29 22:06:40 UTC
This commit is contained in:
parent
e55d4ce725
commit
59edc9bad6
744 changed files with 14665 additions and 3545 deletions
|
@ -112,14 +112,14 @@
|
|||
<span class="s">notification_id</span><span class="pi">:</span> <span class="s2">"</span><span class="s">{{</span><span class="nv"> </span><span class="s">trigger.event.data.title</span><span class="nv"> </span><span class="s">}}"</span>
|
||||
</code></pre>
|
||||
</div>
|
||||
<p>*Any field under the <code class="highlighter-rouge"><entry></code> tag in the feed can be used for example <code class="highlighter-rouge">trigger.event.data.content</code> will get the body of the feed entry.</p>
|
||||
<p>For more advanced use cases, a custom component registering to the <code class="highlighter-rouge">feedreader</code> event type could be used instead:
|
||||
For a drop in packaged complete example of Feedreader, you can use the <a href="https://github.com/CCOSTAN/Home-AssistantConfig/blob/master/packages/hasspodcast.yaml">PodCast notifier</a>.</p>
|
||||
<p>Any field under the <code class="highlighter-rouge"><entry></code> tag in the feed can be used for example <code class="highlighter-rouge">trigger.event.data.content</code> will get the body of the feed entry.</p>
|
||||
<p>For more advanced use cases, a custom component registering to the <code class="highlighter-rouge">feedreader</code> event type could be used instead:</p>
|
||||
<div class="language-python highlighter-rouge"><pre class="highlight"><code><span class="n">EVENT_FEEDREADER</span> <span class="o">=</span> <span class="s">"feedreader"</span>
|
||||
<span class="n">hass</span><span class="o">.</span><span class="n">bus</span><span class="o">.</span><span class="n">listen</span><span class="p">(</span><span class="n">EVENT_FEEDREADER</span><span class="p">,</span> <span class="n">event_listener</span><span class="p">)</span>
|
||||
</code></pre>
|
||||
</div>
|
||||
<p>To get started developing custom components, please refer to the <a href="/developers">developers</a> documentation</p>
|
||||
<p>For a drop in packaged complete example of Feedreader, you can use the <a href="https://github.com/CCOSTAN/Home-AssistantConfig/blob/master/packages/hasspodcast.yaml">PodCast notifier</a>.</p>
|
||||
</article>
|
||||
</div>
|
||||
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue