Add troubleshooting section to command_line (#36190)

This commit is contained in:
G Johansson 2024-12-06 20:25:49 +01:00 committed by GitHub
parent 7fa7b42e94
commit ec199cd77b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -290,6 +290,22 @@ command_line:
default: 30
{% endconfiguration %}
## Troubleshooting
As **Command line** {% term integration %} is a yaml only integration, turning on extended logging needs to be done by setting the logging information in your {% term "`configuration.yaml`" %} file.
Entering this example in your configuration sets the default logging to info, and for `command_line` to debug. Once done, restart Home Assistant to enable.
{% raw %}
```yaml
# Set logging
logger:
default: info
logs:
homeassistant.components.command_line: debug
```
{% endraw%}
{% 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.