MQTT: Parse payload


I’m using MQTT-triggers and want to read/parse the payload. How do I do that? If I try to access something within the payload object, everything fails with errors like «could not be validated…», »cannot access…» etc. If I remove that line, everything works splendid!

Code is worth a thousand words :grinning_face_with_smiling_eyes:

If I understand what you say, did you check Automation Trigger Variables - Home Assistant ?