Add note on command template for binary sensor and sensor in command_line (#35126)

This commit is contained in:
G Johansson 2024-10-08 06:56:58 +02:00 committed by GitHub
parent ff82acc691
commit 65f1f0fa77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: