TarheelGrad1998 / gallery-card

A custom card for Home Assistant that will display images and/or videos from a folder in the style of a gallery.
97 stars 30 forks source link

Files not sorting right at all #84

Open kakins opened 6 months ago

kakins commented 6 months ago

I have tried various configurations of this:

type: custom:gallery-card
entities:
  - sensor.front_doorbell
menu_alignment: bottom
maximum_files: 10
file_name_format: YYYYMMDD-HHmmss
caption_format: M/D h:mm A
parsed_date_sort: true
show_reload: true
video_autoplay: false

Files look like this:

image

However it does not give me the first 10 images, sorted by date. The images are sorted, but it's not taking into account all the images. It seems very random.

image

moritzmaier84 commented 4 months ago

I have the same problem. Without the "maximum_files: 10" code, it is working correctly. But if you add the "maximum_files" thing, the sorting is gone and the wrong files are showing up.

Strange! Because without this thing, there are way too much files showing up...