Can I mix and match images and movies? in the same folder?
Yes, for me that works
Does the card load the video in cache?
I have a very large video that I want to loop. My ram is already at 69% used.
Honestly, I don’t know. It uses the standard html5 video tag. You can research specs on that if you’d like.
Anyone tried that gallery panel button “steals” focus and then automatically scrolls down on the page when using a phone ?
The focus bit is intentional on a recent update, to fulfill a request for arrow keys on a keyboard to navigate by default when you access the page. I’m sort of surprised that it was noticed on a phone.
I don’t know what would cause the scrolling, that shouldn’t happen. I just tried it on my phone (Android, via the HA App) and didn’t notice anything like that. How are you accessing it when you notice the scrolling happen?
It happens for me both on my android HA app and when I narrow my chrome browser down to a mobile size. It doesnt happen on my GF’s iphone app though.
As soon as I remove the gallery it doesn’t happen anymore.
If you got anything you want me to test, just tell me
Oh. Do you have gallery on a page with other cards? I.e. when it steals focus it scrolls down, to display the gallery card?
If that is the case, I believe I have a picture, and can work on a fix.
Yes I have alot of other stuff on the page too I prefer not sharing public. If you want to check it out / see pictures and so on you can send me a PM.
Update: I had some “custom element doesnt exist: gallery card” errors - no idea why.
Downgraded to version 3.2 and now I’m not having the auto scroll button focus problem
Sorry about that. No I don’t need pictures, I think I have an idea about what’s going on now. I opened an issue so i can track and fix this.
Hi all.
I have a DLNA media source that I would like to display photos from.
Does anyone know how I find the correct source path to enter in the gallery card?
Thanks
I gave this a quick try. I hoped it would be workable as is, but I could not find a path that worked. My suspicion is that the call to the API has to be different for DLNA source, thus it’s probably not supported by the card right now.
I wouldn’t mind to be proven wrong however, if anyone else has ideas. Otherwise, I added an issue on my github and I’ll take a look at supporting this when I have free time to work on this again.
Thanks for the feedback.
Hi. I’m moving from a clunky custom snapshot solution to using this brilliant gallery card. My image files are all saved with Unix timestamp which can be used in functions. For example, it can easily utilise relative_time (see below), or be referenced to a calendar.
I originally used YYYYMMDD-HHMMSS but it can’t be used in automations. See my current files below:
1652764766484_ipc1.jpg
1652764766484_ipc2.jpg
1653128717160_ipc1.jpg
1653128717160_ipc2.jpg
Is there a way to customise the caption_format to show relative_time?
Or to utilise Unix timestamps in the filename?
Thanks, Elton.
Not yet. I am working on an update, however, and I’m replacing my “home grown” date parsing with a common library. So, good timing! I’ll consider your requests in making this update…e.g., it looks like https://day.js.org/ supports both your requests, so that might be the one I go with.
Hi @TarheelGrad1998. That sounds great! I understand that you started this for your own needs and that doing this in between your day job isn’t always easy. Thanks for sharing
Hey!
I’ve got an issue with my files. They are named as follow: camera1-blabla.blalba.jpg
I can’t change their name because they are made by the camera. Any idea for the sensor setup?
I’m not sure I understand the problem. The card understands literals in the file name, just put “camera1-…” in the file name format. I am assuming the blablah are some formatted date/time (which is the typical)?
Or maybe I misunderstand?
The problem is that here is a ‘.’ in the names. so it won’t show the jpg file but the .4564 file what isn’t viewable.
This is what happens if I use:
filter: ‘inkom*’
The file is inkom-1654330440.03226-hpid2e.jpg
I don’t think the “.” is the problem. I verified it on my local (see below).
Are you sure you have your files where they are accessible to Home Assistant?
sensor:
- platform: files
folder: /config/www/testdot
name: testdot
filter: 'inkom*'
type: custom:gallery-card
entities:
- sensor.testdot