Error rendering data template: UndefinedError: 'dict object' has no attribute 'to_state'

I’m guessing you’re triggering this from the UI? If yes, that will error because there’s no trigger. Wait for the automation to occur naturally or use a test entity to trigger the automation.

You can use an input_number helper as a test entity.

4 Likes