Node-RED time in notifications (notify.mobile)

Hi guys! I have been using one automation for years, bud it stopped working few weeks ago when I updated Node-RED. I have been using action node to send notification to my phone, and I need to have currecnt time in the notification, so I used this:

"message": "{{=<% %>=}}Asi spadl jistič {{now().strftime('%d.%m.')}} v {{now().strftime('%H:%M')}}",

I like having the time in almost all notifications, like if there is a blackout or someone is ringing the bell. All of them are now without time and I cant find a way to repair it Does anyone know what changed and how to fix it?




Home Assistant removed Jinja2 template parsing in the notification service.

You can add the date and time using JSONata. Change the “data” field type to J:Expression and update the message property:

"message": "Asi spadl jistič " & $moment().format("L v LT"),

Formatting options: https://momentjs.com/

1 Like

Oh! Thank you! I was thinking that it was some change in the NodeRed. This changes everything. Thank you for pointing it out :slight_smile: