This worked for me:
- service: camera.snapshot
data:
entity_id: camera.camXX
filename: /config/www/meteogram.jpg
- platform: local_file
name: show_meteogram
file_path: '/config/www/meteogram.jpg'
You may have to create the folder “www” beforehand and restart HA. details here