From 65f1f0fa7727147b04cba44a77e0c092d330d639 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Tue, 8 Oct 2024 06:56:58 +0200 Subject: [PATCH] Add note on command template for binary sensor and sensor in command_line (#35126) --- source/_integrations/command_line.markdown | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/_integrations/command_line.markdown b/source/_integrations/command_line.markdown index 89a82a44436..b2875629ab0 100644 --- a/source/_integrations/command_line.markdown +++ b/source/_integrations/command_line.markdown @@ -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: