Add note on use of json_attribute in command_line (#36282)

This commit is contained in:
G Johansson 2024-12-11 09:05:00 +01:00 committed by GitHub
parent b99bee155b
commit 358a58b03a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -290,6 +290,10 @@ command_line:
default: 30
{% endconfiguration %}
{% note %}
For sensors, while `value_template` is optional, if you set `json_attributes` because the output is a JSON, it is suggested to provide a template in the `value_template` field to provide a state to the sensor or the state will always be `unknown`. See [example](#usage-of-json-attributes-in-command-output) below.
{% endnote %}
## 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.