Added example of using template in shell_command. (#547)

This commit is contained in:
Nick Touran 2016-06-18 12:20:06 -07:00 committed by Paulus Schoutsen
parent 4039f0c507
commit 2e0193ea0d

View File

@ -26,3 +26,20 @@ Configuration variables:
- Alias for the command
- Command itself.
The commands can be dynamic, using templates to insert values of other entities. For example
```yaml
# Apply value of a GUI slider to the shell_command
input_slider:
ac_temperature:
name: A/C Setting
initial: 24
min: 18
max: 32
step: 1
{% raw %}
shell_command:
set_ac_to_slider: 'irsend SEND_ONCE DELONGHI AC_{{ states.input_slider.ac_temperature.state}}_AUTO'
{% endraw %}
```