How to get/use MQTT jason data in automation (trigger.value_jason or trigger.payload_jason not working)

Automation with MQTT data form ESP32 sensor.

MQTT data:
///////////////////

Message 0 received on espresense/devices/irk:1234567890abcdefghijklmnopqrstuv/stue at 11:03 AM:
{
    "id": "irk:1234567890abcdefghijklmnopqrstuv",
    "disc": "0b18a48b30",
    "idType": 200,
    "rssi@1m": -65,
    "rssi": -59,
    "raw": 0.5,
    "distance": 0.62,
    "speed": -0.01,
    "mac": "7fe37b9e7dcf",
    "interval": 312
}

The trigger works on the MQTT topic, but how to get the jason data in the MQTT data

The automation with condition
////////////////////////////////////////////////

condition: template
value_template: "{{ trigger.value_jason }}"

Gives this error/warning

Template variable warning: 'dict object' has no attribute 'value_jason' when rendering '{{ trigger.value_jason }}

the same if I try payload_jason

condition: template
value_template: "{{ trigger.payload_jason }}"
Template variable warning: 'dict object' has no attribute 'payload_jason' when rendering '{{ trigger.payload_jason }}

How do I get and use the MQTT jason data in an automation “condition” or “action” ?

It’s json, not jason.

1 Like

Embarrassing … so it is called json and payload_json works

Thanks