{% set d = (event.data.get('data') or {}).get('data') or {} %} {%- if d.get('Kp') is not none %}Geomagnetic activity (Kp index): {{ d.Kp }}{% endif -%}