mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-24 01:37:23 +00:00
Add note on command template for binary sensor and sensor in command_line (#35126)
This commit is contained in:
parent
ff82acc691
commit
65f1f0fa77
@ -290,6 +290,12 @@ command_line:
|
||||
default: 30
|
||||
{% endconfiguration %}
|
||||
|
||||
{% note %}
|
||||
|
||||
While `command` is accepting a template for `sensor` and `binary_sensor`, it's only the arguments that can be a template. This means the command name itself cannot be generated by a template, but it must be literally provided.
|
||||
|
||||
{% endnote %}
|
||||
|
||||
## Binary sensor
|
||||
|
||||
To use your Command binary sensor in your installation, add the following to your {% term "`configuration.yaml`" %} file:
|
||||
|
Loading…
x
Reference in New Issue
Block a user