curious
December 23, 2024, 10:00am
1
I want an mp4 to play temporarily in a gallery card.
After reading various hints I understand I have to use
the files integration
a sensor
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
BebeMischa
(Bebe Mischa)
December 23, 2024, 10:06am
2
try
type: custom:gallery-card
entities:
- media-source://homeassistant/local/images/
curious
December 23, 2024, 10:33am
3
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.
BebeMischa
(Bebe Mischa)
December 23, 2024, 10:37am
4
maybe you need to use local in the sensor too.
/config/www/ on the server = /local/ in HA configs, dont ask me why…
countr
January 8, 2025, 8:38pm
5
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: