Hello!
I have a service call that is working in HA but when I use the same thing in a call service node, the time stamp doesn’t work.
Here is the service call data field (calling camera.record):
{
"filename": "/.../frontporch_{{ now().strftime('%Y%m%d_%H%M%S') }}.mp4",
"duration": "10"
}
But the file generated is only frontpurch_.mp4
.
When I call this from HA services I get frontporch_20190730_220431.mp4
So my question… how do I covert the HA service call {{ now().strftime(’%Y%m%d_%H%M%S’) }} to work in Node Red service call to HA?
Thanks - I feel dumb for not trying that.
For some reason I thought it would only effect variable calls (msg.payload, etc.).
That fixed it.
As an unimportant side note - my checkbox had a slightly different verbiage.
Uses “Mustache” instead of “template”.
Not sure if my installation is out of date, or yours
I guess I need to pull an updated image and see.
Anyway, THANK YOU for pointing that out - much appreciated!
DeadEnd
… tried to make your answer as the solution, but I am not seeing the checkbox in the ellipsis (…)
Kermit
4
You’re just using an older version.