PiotrMachowski / Home-Assistant-Lovelace-HTML-Jinja2-Template-card

This card displays provided Jinja2 template as an HTML content of a card. It uses exactly the same engine as Home Assistant in Developer tools.
MIT License
68 stars 10 forks source link

Stops updating #22

Open jpmeijers opened 10 months ago

jpmeijers commented 10 months ago

Ever since I added this card to my dashboard, the dashboard would stop refreshing data at some point. The graph widgets on the dashboard will draw lines up to "now", but with straight lines, like when there is no new data.

In the console I see an error: image

This makes me think the problem could be related to: https://github.com/home-assistant/frontend/issues/13304 https://github.com/home-assistant/frontend/issues/11132

The template code I use inside the Jinja2 card is: https://github.com/wernerhp/ha.integration.load_shedding/blob/master/examples/card5.yaml

PiotrMachowski commented 10 months ago

the dashboard would stop refreshing data at some point

What do you mean? Does it work for a few minutes and then crashes?

jpmeijers commented 10 months ago

Yes correct. Maybe more a couple of hours, then it stops refreshing/showing new data. Next time it happens I'll have a screenshot to explain better.

I experience this on an Android tablet, running the Home Assistant app. Therefore debugging this is very difficult. I'm now leaving the same dashboard open in my Chrome browser, with the dev tools console running, hoping that I can catch any other errors than the one mentioned above.