Assign current date and time to my input_datetime

That’s a generalization and it doesn’t reflect the facts. The ability to support templating is not determined by Lovelace but by the card used.

The current set of standard cards don’t support templating for tap_action. However, there are various custom cards that do support templating. For example, the Auto-Entities card.