diff --git a/atom.xml b/atom.xml index 4dd2c42f5d..009a84ba61 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
'{{value_json.on}}'
Nested JSON in a response is supported as well
+{
+ "sensor": {
+ "type": "air",
+ "id": "12345"
+ },
+ "values": {
+ "temp": 26.09,
+ "hum": 56.73,
+ }
+}
+
+Just use the “Square bracket notation” to get the value.
+'{{ value_json["values"]["temp"] }}'
+
+The following overview contains a couple of options to get the needed values:
# Incoming value:
{"primes": [2, 3, 5, 7, 11, 13]}
@@ -250,9 +267,6 @@ Closest to an entity: {{ closest(states.zone.school, 'group.children') }}
{{ value_json.tst | timestamp_local }}
{{ value_json.tst | timestamp_utc }}
{{ value_json.tst | timestamp_custom('%Y' True) }}
-
-# Square bracket notation
-{{ value_json["001"] }}