I need some help with an automation and rewriting the code, please be patient with me, i’m a novice with all the code/syntx writing
this is my code:
action:
- service: camera.snapshot
data:
filename: /config/www/tmp/snapshot-reolink.jpg
target:
entity_id: camera.cam_gate_sub
- service: notify.mobile_app_lior_s_cell
data:
message: "Car get open "
title: The car gate is open for more than 5 min - it will be closed in 1 minute
data:
image: >-
https://************.ui.nabu.casa/local/tmp/snapshot-reolink.jpg
now I want to change the code by the following Camera - Home Assistant (home-assistant.io) so the file that will be made will have a date and the time, BUT I don’t know how to rewrite it, any help will be appreciated