A small tweak to the Predbat Table Card has enabled a really cool new use-case – MINI Predbat table cards!
Github user @stiplady made a request to add a limit to the number of rows the plan returns, for “quick look” style functionality. A pretty easy change, but has unlocked some very cool functionality.

By limiting the number of rows, users can now combine this functionality with custom columns and font size to create a mini Predbat table card on bigger dashboards.
Previous to this, while you could limit the columns, the plan was usually 24 hours long, so at least 48 rows of data – which was not great for dashboards with other cards in place.

As you can see in the images above, placing the table card nicely in a dashboard is now super easy!
Here’s the YAML you can use to get started – obviously feel free to customise the YAML to meet your needs according to the spec.
type: custom:predbat-table-card
entity: predbat.plan_html
columns:
- time-column
- state-column
- pv-column
- load-column
- soc-column
table_width: 100
fill_empty_cells: true
row_limit: 5
font_size: 13
old_skool_columns:
- state-column
hide_last_update: true