Camera Snapshot works from Developer Tools Service but not in automation

Hi Folks,

I have this weird issue that I can’t put my finger on, I’m sure I’m missing something obvious.
I’m trying have an automation task to take camera snapshots.

If I do this in Developer tools | Services

The code:

entity_id: camera.nvr
filename: '/config/www/snapshots/snapshot_{{ }}_{{ now().strftime("%Y%m%d-%H%M%S") }}.jpg'

It works and I have a snapshot.
If I do the same in Automation, I get no snapshots

Ignore the Trigger (it could be anything) Execute does not do anything.

Waiting for the a-ha (doh) moment .


what does the resulting yaml look like for that automation?

Figured out what the issue is:
{{ }} cannot be evaluated in the automation which was properly evaluated in the services.

I’ll hardcode the value.