Cannot get gallery card working

I want an mp4 to play temporarily in a gallery card.
After reading various hints I understand I have to use

  1. the files integration
  2. a sensor
  3. the gallery card (duh)

It seems I cannot get the paths right so I hope I can get some help here:

The mp4 is in ./homeassistant/www/images
In the file integration I added an entity : /config/www/images

I created a sensor:

- platform: files
  folder: /config/www/images/
  filter: "**/**/*.mp4"
  name: "gallery_videos"
  sort: date
  recursive: True

In the gallery card my code =

type: custom:gallery-card
entities:
  - media-source://homeassistant/www/images/

Can someone tell me where I am wrong ?

Thanks in advance

try

type: custom:gallery-card
entities:
  - media-source://homeassistant/local/images/

Does not work unfortunately:
When checking for correct yaml I get a message saying ‘Platform error ‘sensor’ from integration ‘files’ - Integration ‘files’ not found.’ Don’t know whether it has anything to do with it.

maybe you need to use local in the sensor too.

/config/www/ on the server = /local/ in HA configs, dont ask me why… :wink:

The sensor you are trying to create is already not made. Maybe the component is not installed ok?
Check here if you followed all steps:

You could also use the built-in ‘folders’ component, like you can read here:

I have had the gallery-card working for about a year, displaying my stored snapshots from the doorbell, but after one or more core updates recently, it now shows that the custom gallery-card doesn’t exist.

But it does, it exist and it is installed and I have tried re-installing it, but no joy

Has anybody else had this issue?

Incidentally to the person or anyone else that couldn’t get this working, I created a folder in the ‘media’ folder, called ‘images’.

You then have to wriite this into the config file

homeassistant:
  media_dirs:
    local: /media
    images: /media/images

When you make a reference to the image files in the card it confusingly looks like this

type: custom:gallery-card
entities:
  - media-source://media_source/images
menu_alignment: bottom
include_video: hidden
maximum_files: 10
file_name_format: YYYYMMDD-HHmmss

That has been working well for me until the card not existing

I have the same problem.

The gallery-card addon worked for years until it was suddenly displayed as unavailable. The only thing I changed was the update from Frigate to Advanced Camera Card. I then uninstalled the updates and reinstalled Frigate and gallery-card, but nothing changed. It probably wasn’t that at all. Then I imported a backup, which didn’t change anything either.

And then the surprise, without me doing anything, the gallery-card was back. But only for two days and then the same thing happened again. I didn’t understand it and hoped that it was just a browser cache problem. Nope.

So now I’m looking for an alternative (the support for gallery-card ended 2024), but I haven’t found anything comparable for images and photos (i don’t need videos in this case).

Gallery-card is definitely installed via HACS. I checked the paths manually, everything is there, but HA reports: “Custom element doesn’t exist: gallery-card.”

So I hope someone knows a solution.

I found the solution.
Delete the old repository and switch to

It also to find in the store named: “Galery Card 2024”