From df9c2833ce869406ddceee9228e5a38be0558638 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Mon, 7 Oct 2024 21:30:32 +0200 Subject: [PATCH] Add note on command template for binary sensor and sensor in command_line --- 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 89a82a444362..b2875629ab03 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: