feat: Add folder view to view folder media (#2077)

- Closes: #2068

Note: Renames existing `folder` view to `folders` [experimental
functionality]
This commit is contained in:
Dermot Duffy
2025-05-31 17:13:39 -07:00
committed by GitHub
parent 1901475065
commit 956a2e523c
30 changed files with 246 additions and 132 deletions
+29 -1
View File
@@ -114,7 +114,7 @@ advanced_camera_card_action: expand
## `folder`
Show a given folder in the folder gallery.
Show media from a given folder in the media viewer.
```yaml
action: custom:advanced-camera-card-action
@@ -126,6 +126,20 @@ advanced_camera_card_action: folder
| --------- | ------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------- |
| `folder` | The first configured folder (under [`folders`](../../folders.md)). | An optional id of the folder to show, see the `id` parameter under [`folders` configuration](../../folders.md). |
## `folders`
Show a given folder in the folders gallery.
```yaml
action: custom:advanced-camera-card-action
advanced_camera_card_action: folders
# [...]
```
| Parameter | Default | Description |
| --------- | ------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------- |
| `folder` | The first configured folder (under [`folders`](../../folders.md)). | An optional id of the folder to show, see the `id` parameter under [`folders` configuration](../../folders.md). |
## `fullscreen`
Toggle fullscreen.
@@ -821,4 +835,18 @@ elements:
- action: custom:advanced-camera-card-action
advanced_camera_card_action: status_bar
status_bar_action: reset
- type: custom:advanced-camera-card-menu-icon
icon: mdi:alpha-m-circle-outline
title: View Folder Media
tap_action:
- action: custom:advanced-camera-card-action
advanced_camera_card_action: folder
folder: my-folder
- type: custom:advanced-camera-card-menu-icon
icon: mdi:alpha-n-circle-outline
title: View Folders Gallery
tap_action:
- action: custom:advanced-camera-card-action
advanced_camera_card_action: folders
folder: my-folder
```