@RAUS wrote:
Hi, title may be confusing. Very sorry for that. Let me to explain what I want to solve.
I am working on, taking camera snapshot and sending snapshot photo file to notify on mobile/telegram with message. It is working well after going thru many other post on this forum, Thanks to all for this.
I have 3 automations on 3 contact sensors. And having only one script. Automation sends message and camera-entity-id to the script. Script take snapshot on camera id that automation has sent and notify to mobile app/telegram with the snapshot and message received from automation.
Now, issue is new snapshot file overwrites previous snapshot file.
I am looking to generate file name in automation, e.g., backyard_2019_11_06_20_07_57_088904.jpg in automation and pass it to script like currently passing camera entity id and message.
I know in python, this can be achieved by
datetime.datetime.now().strftime("%Y_%m_%d_%H_%M_%S_%f")
. But I don’t know how to write in automation yaml file.Appreciate your help. Thanks
Posts: 3
Participants: 2