Table on front-end

also, in jinja2 that should be:

{{ stateObj.state | round }}

I think

1 Like

Hmm still not looking correct for me, any chance you can take at look on https://github.com/robmarkcole/TrasportAPI-HASS/tree/master/front_table
Cheers!

That all looks okay, is it loading the file correctly?
I had to clear it in Chrome via this method for changes to appear a couple of times.:

F12 -> Network -> (find statecard-xxxxxxxxx in the Name) -> Right Click -> Clear Browser Cache

In ‘Sources’ you can see URL / local / custom_ui / state-card-xxxxxxxxxxxxxxxx too which shows you which file has been loaded.

Here you go, example config based on my setup with abit of additional formatting to the table.
https://github.com/Pow377/UK_Transport_State_Card

OK after I cleared the browser cache all looks in order :slight_smile:
If I stick the table on the my main view, half of the table gets cutoff. I wonder if there is a way to force the front end to display the whole width of the table?
Cheers!

I’m not sure if that’s possible, since HA uses standard sizes for the cards.
I need a bigger card myself, but haven’t found how to do it yet, I might go with a custom panel for it.

2 Likes