Pushbullet filename variable

I’m trying to send a file to pushbullet, the filename contains a timestamp as not to confuse pushbullet with files sent previously. I have whitelisted the dir and can send a statically named file fine, its simply looking file a file with the exact name provided rather than computing the string into something like /config/www/15-59 2018-06-08.jpg

  - service: notify.pushb
    data:
      title: "Home Alert"
      message: "Motion Detected"
      data:
        file: /config/www/{{now().strftime("%H-%M %Y-%m-%d")}}.jpg 

I’ve tried various combinations of quotes and double quotes but can’t seem to get my head around it. Any ideas or better ways of trying to achieve this?

Silly idea: have you tried to take the space out of the filename?

have you tried it in a data_template?

  - service: notify.pushb
    data:
      title: "Home Alert"
      message: "Motion Detected"
      data_template:
        file: "/config/www/{{now().strftime('%H-%M %Y-%m-%d')}}.jpg"

This is the working solution:

- service: notify.pushb
    data_template:
      title: "Home Alert"
      message: "Motion Detected"
      data:
        file: "/config/www/lounge_{{ now ().year }}{{ now ().month }}{{ now ().day }}-{{ now ().hour }}{{ now ().minute }}.jpg"

FYI you could have left it w/ strfttime to make it less messy:

  - service: notify.pushb
    data:
      title: "Home Alert"
      message: "Motion Detected"
      data_template:
        file: "/config/www/{{now().strftime('lounge_%Y%m%d-%H%M.jpg')}}"