Lovelace refreshs every second

Suggestion:

  1. Reduce your code to a minimal snippet - only related to your particular problem.
  2. Post this code & a question in the already present dedicated config-template-card community thread - let’s keep solutions in one place & share experience.