Site updated at 2017-05-05 05:34:25 UTC

This commit is contained in:
Travis CI 2017-05-05 05:34:25 +00:00
parent 3d26f9fe20
commit 162674e7bf
27 changed files with 54 additions and 39 deletions

View file

@ -122,6 +122,20 @@
<span class="s">entity_id</span><span class="pi">:</span> <span class="s">switch.vision_zm1601eu5_battery_operated_siren_switch_9_0</span>
</code></pre>
</div>
<p>An example to show the use of event_data in the action:</p>
<div class="highlighter-rouge"><pre class="highlight"><code>- alias: 'Kitchen Telegram Speak'
trigger:
platform: event
event_type: telegram_command
event_data:
command: '/speak'
action:
- service: notify.kitchen_echo
data_template:
message: &gt;
Message from {{ trigger.event.data["from_first"] }}. {% for state in trigger.event.data["args"] %} {{ state }} {% endfor %}
</code></pre>
</div>
</article>
</div>
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">