Duplicated automations, 1 is fine, 2nd doesn't check out

I have duplicated a working Automation, swapped out the sensor entity, and the new automation doesn’t check out:

Message malformed: invalid template (TemplateSyntaxError: expected token 'end of print statement', got 'd3439b93e_temperature') for dictionary value @ data['action'][2]['data']

Why? I’ve run it through Meld to compare, I don’t see it:

The Kitchen temp entity (sensor.582d3439b93e_temperature) is correct.

Any clues? Thanks!

When entity_ids start with a number, you have to use the states("sensor.582d3439b93e_temperature") notation rather than the states.sensor.582d3439b93e_temperature.state, or you get this error.

1 Like

I would’ve never figure that out, thanks. I usually name my entities, this one slipped by.