royto / logbook-card

Logbook card for Home Assistant UI Lovelace
GNU General Public License v3.0
204 stars 9 forks source link

Limits the number of entries shown #124

Open lbw-dynamicweb opened 4 months ago

lbw-dynamicweb commented 4 months ago

Sometimes I have a device that only changes state a few times a month, so I would like to be able to set the "Hours to show" to unlimited and then have a new option "Max entries to show". Setting this to e.g. 2 should only show the latest 2 entries from the log for the selected device(s).

royto commented 4 months ago

Hello, the api is requiring a date

image

So what should i put ? 1 month ? 1 year ?

my fear is to get too many data from the server ....

There is already a max_items property allowing to limit the number of items displayed in the card options