New here, I have tried looking on the forum without finding answer to my problem.
I would like to dynamically create a file name based on content from msg.payload and current date/time using the camera snapshot service.
Payload is name of the camera, can vary from "garage", "driveway" or "backyard"
I manage to include the date but cannot find a way to include the payload in my file name.
Tried this but it does't work, {{payload}} is just not replaced with the actual payload text, it is just left empty.
I see. Unfortunately, like the many of folk here, I don't use HA
Therefore I would suggest using a change node or a function node before that service node to build your filename. Then you can reference the filename msg property that you generate using JSONata in that service node
You can also very easily check this change node or functional using a debug node to ensure it is doing what you expect.
Hi instead of posting screenshots of your flow & values could you please export the flow/values and paste them as text into a reply. that way I don't have to rebuild everything you've done to show you what the problem is.
Hi instead of posting screenshots of your flow & values could you please export the flow/values and paste them as text into a reply. that way I don't have to rebuild everything you've done to show you what the problem is.