Automation from esphome website gives malformed extra keys not allowed @ data['0']

I have been using
ESPhome LVGL tips and tricks as a guide to understand LVGL and create the “Weather forecast panel”. However, when I try and create the example automation, it fails with the error “Message malformed: extra keys not allowed @ data[‘0’]”.

My esphome device YAML based off the example from the page above:

The modified automation based on my device name:

Any tips on why this automation doesn’t seem to be working?

Hello anocweb,

Curly brackets in curly brackets are not allowed.
{% set d = {

It’s in the first line of data[0] that the error points to.

1 Like