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.
99 stars 33 forks source link

Feature Request - Implement Lovelace "Tap Actions" #25

Open GaryOkie opened 2 years ago

GaryOkie commented 2 years ago

The capabilities of this great gallery card could be expanded a great deal if tap actions were implemented on the main image.

I currently create both snapshots and recordings locally on HASS, but find that they often miss out on key events due to the 10+ second streaming lag (even with maximum "lookback" enabled).

These recordings are simultaneously captured on an NVR and/or camera SD-Card which could be played back when provided an appropriate URL with a given time stamp. This is what a tap action on the main image could enable - play back a recording from the NVR. (Default single tap could still play the recording as it does now).

This could also allow changing the media source to the snapshot directory instead of mp4's for much faster gallery display, and still allow playing the video's (assuming the filename provides the appropriate time stamp info). Then there would be no need to capture recordings on HASS at all, just snapshots.

Incidentally, there are 3 other feature requests on this github that could potentially be satisfied via tap actions (URL path, Service Call).

TarheelGrad1998 commented 2 years ago

Fantastic idea. Not sure when/if I can get to it, but will definitely keep this on my radar.

pgorod commented 1 year ago

I would also love this.

Dennis90BW commented 1 year ago

Great idea. Maybe it's also possible to suppress the "Reload" button and postpone this function to a tap action. I would also like to have an option to see the navigation buttons (next, previous picture) always. On a mobile device there is no real mouseover, so it's a little bit random when they show up.

TarheelGrad1998 commented 1 year ago

You should be able to swipe on mobile. And as of the last version that now works on the image popup as well.

Dennis90BW commented 1 year ago

Yes I know. Sorry, for not mentioning it. But when using the "Home Assistant Swipe Navigation" from HACS. Then swiping the Gallery card is very difficult. So I would like to have a Gallery card which has no need to use swipe actions.

TarheelGrad1998 commented 1 year ago

Ah, got it. I wanted to be sure baked in functionality was known, but yes I see the problem in your use case.

whittin3 commented 1 year ago

This would be a very nice feature. I too have a similar use case where I want to tap the image and open a URL to blue iris. The files my gallery card displays have a name format resembling ${camera_name}_${timestamp}_${db_reference}.

Using the variables embedded in the file names, I can construct a unique blue iris URL that plays the associated video of said image.