Hello ,
I am trying to give motion triggered pictures different names. I don't want them to be over written.
I have this flow which saves the pictures but couldn't figure out how to give different names.
[{"id":"4416b46d00b74e1d","type":"server-state-changed","z":"7aa5b5b5.c7c5f8","name":"Motion Sensor","server":"30307a46.24469a","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.192_168_50_60_motion","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":"2","forType":"num","forUnits":"seconds","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":140,"y":60,"wires":[["ddcf9a5fdc523cf8"]]},{"id":"ddcf9a5fdc523cf8","type":"switch","z":"7aa5b5b5.c7c5f8","name":"Value > 60?","property":"data.new_state.state","propertyType":"msg","rules":[{"t":"gt","v":"60","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":310,"y":60,"wires":[["48db04f7d334901b"]]},{"id":"48db04f7d334901b","type":"function","z":"7aa5b5b5.c7c5f8","name":"Take Picture","func":"msg.payload = {\n \"data\": \"http://192.168.50.60:8080/shot.jpg\"\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":60,"wires":[["d9daf7507bf38e9f"]]},{"id":"d9daf7507bf38e9f","type":"http request","z":"7aa5b5b5.c7c5f8","name":"Get Picture","method":"GET","ret":"bin","paytoqs":"ignore","url":"http://192.168.50.60:8080/photo.jpg","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"basic","senderr":false,"headers":[],"x":650,"y":60,"wires":[["9ca58ffd6eb64591"]]},{"id":"9ca58ffd6eb64591","type":"file","z":"7aa5b5b5.c7c5f8","name":"Save Picture","filename":"/media/Pictures/picture.jpg","filenameType":"str","appendNewline":false,"createDir":false,"overwriteFile":"false","encoding":"none","x":830,"y":60,"wires":[[]]},{"id":"30307a46.24469a","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30,"areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]