Add hint about using the dev tools to evaluate a response

This commit is contained in:
Fabian Affolter 2017-06-13 11:06:38 +02:00
parent 29934427e1
commit c56581b00c
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -249,3 +249,18 @@ The following overview contains a couple of options to get the needed values:
{% raw %}{{ value_json.tst | timestamp_utc }}{% endraw %}
{% raw %}{{ value_json.tst | timestamp_custom('%Y' True) }}{% endraw %}
```
To evaluate a response, go to the <img src='/images/screenshots/developer-tool-templates-icon.png' alt='template developer tool icon' class="no-shadow" height="38" /> template developer tools, create your output into "Template", and check the result.
``yaml
{% raw %}
{% set value_json=
{"name":"Outside",
"device":"weather-ha",
"data":
{"temp":"24C",
"hum":"35%"
} }%}
{{value_json.data.hum[:-1]}}{% endraw %}
```