How to run Automation/script at 1st day of month?

Hi. My first post in the forum.

I have trouble creating a condition so that an automation runs at midnight the 1st day of each month.
I found a guide on a forum but this does not work for me.

See the picture for the settings in the automation, and
the error I get when pressing Test.
What have I done wrong?

condition: template
value_template: '{{ now().day == 1 }}'

Error: Error occurred while testing condition. template value should be a string for dictionary value @ data[‘value_template’]. Got None

1 Like

This seems to work:

  - platform: time
    at: 00:14:40
  - platform: template
    value_template: '{{ now().day == 17 }}'
  condition: []