mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 00:36:49 +00:00
Example of usage of square bracket notation (#908)
Shows example how to extract values from a key that normally isn't allowed in dot notation.
This commit is contained in:
parent
d95ed6156c
commit
9769bd5f08
@ -199,4 +199,7 @@ It depends per component or platform but it is common to be able to define a tem
|
||||
# Timestamps
|
||||
{% raw %}{{ value_json.tst | timestamp_local }}{% endraw %}
|
||||
{% raw %}{{ value_json.tst | timestamp_utc }}{% endraw %}
|
||||
|
||||
# Square bracket notation
|
||||
{% raw %}{{ value_json["001"] }}{% endraw %}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user