Message malformed: expected dict for dictionary value @ data['event_data']

Please share your attempted automation yaml text, and format it for the forum (see point 11). Do not post a screenshot.