Gallery Panel for images/videos

What does your config here look like?

homeassistant:
  name: Home
  ...
  allowlist_external_dirs:
    ...  # what do you have here?

Home Assistant Core Integration - Home Assistant (home-assistant.io)

This is my config:

homeassistant:

  allowlist_external_dirs:
    - '/tmp'
    - '/config/www/images'
  whitelist_external_dirs:
    - '/tmp'  ```

doesn’t match

I run HA Core. Looks like you’re running a different installation method, so I cannot say for certain, but this may not be correct.

I am running:

  • Core2024.6.4
  • Supervisor2024.06.2
  • Operating System12.4
  • Frontend20240610.1
sensor:


    - platform: files
      folder: /config/www/images
      filter: '*.jpg'
      name: gallery_images
      sort: date
      
sensor:
  - platform: folder
    folder: /config/www/images


It’s working now. It was a typo in my config.
The only thing now, my video’s not playing in the card.

type: custom:gallery-card
title: Camera Garage
entities:
  - sensor.gallery_images
menu_alignment: Bottom
maximum_files: 10
parsed_date_sort: true
reverse_sort: true
random_sort: false
recursive: true
show_reload: true
include_video: false
file_name_format: HHmmss
caption_format: HH:mm

The video did not play, so I switched to the following card:

type: custom:gallery-card
title: Camera Garage
entities:
  - path: media-source://media_source
menu_alignment: Bottom
maximum_files: 10
parsed_date_sort: true
reverse_sort: true
random_sort: false
recursive: true
show_reload: true
include_video: false
file_name_format: HHmmss
caption_format: HH:mm

My video’s are in sub folders under /media.
I don’t see these files while recursive is set to true.

What am I missing?

I see this says its now deprecated - is this still working or is this no longer working on HA. Are there any alternatives in this case? Really liked the look of this and the ability to display a gallery of images on my dashboard!!

Really? The GitHub page is rather specific

This Panel has been depricated and will not be supported in some future version of Home Assistant.

Please use the Gallery Card instead, which provides the same functionality with more flexibility.

And the gallery card page says

End of Support 1/24/2024
I have intended to update this card for a while, but being honest with myself, and you users, it’s really unlikely to happen. My interest in the card has waned, as I have migrated to Frigate use the Frigate card now in place of Gallery Card for the most part, and I may eliminate the Gallery Card from my installation in the near future. My time has also been limited, and when I do get free time now I spend it enhancing my Home Assistant setup (which also has a long to do list).

For now the card works when properly configured, so feel free to use it. However, at some point that could change and I can no longer guarantee that I will fix it.

Also check out lukelalo’s fork who is doing further development.

yes really…

There is a link to another repo -

Also check out lukelalo’s fork who is doing further development.

there are also recent comments in this post… So obviously people are still using this…

hence the question. I also asked if people were using an alternative (if not using this as its deprecated … again maybe you should read the full post befor commenting?)

Maybe a simple answer rather than being an idiot would have been nice :slight_smile: (Guess that was too much to ask?)

I don’t see any indication that the fork is deprecated.

can anybody help me?
is not working anymore, after update
i use vers 2024.10.1


my filename is:

Camera Masina_00_20240916123800.mp4

my block code is:

type: custom:gallery-card
name: Camera Reolink
icon: mdi:video-outline
entities:
  - path: media-source://media_source/local/camera_masina/
    recursive: true
    caption_format: HH:mm:ss
include_images: false
include_videos: true
menu_alignment: bottom
maximum_files: 30
video_preload: true
file_name_date_begins: 18
file_name_format: yyyyMMddHHmmss
reverse_sort: true
show_reload: true
show_duration: false

Try following:
instead of menu_alignment: bottom
use menu_alignment: Responsive #bottom

remove
recursive: true
caption_format: HH:mm:ss
from entities:
and add after
menu_alignment:

I’m using GitHub - 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.

Looks like it’s still working to me, just need to tweak your captions. :slight_smile:

Have you tried setting file_name_date_begins to 11? I see the time starts at 18 but it may be more accurate if you let it parse the whole date.

noe is working
the fnal card is:

type: custom:gallery-card
name: Camera Reolink
icon: mdi:video-outline
entities:
  - path: media-source://media_source/local/camera_masina/
    caption_format: DD-MMM HH:mm
include_images: false
include_videos: true
menu_alignment: bottom
maximum_files: 30
video_preload: false
file_name_date_begins: 18
file_name_format: YYYYMMDDHHmmss
reverse_sort: true
show_reload: true
show_duration: false