Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow cameras to popup from the grid #1785

Open
fjluquerodriguez opened this issue Dec 20, 2024 · 5 comments
Open

Allow cameras to popup from the grid #1785

fjluquerodriguez opened this issue Dec 20, 2024 · 5 comments
Labels
feature New feature or request

Comments

@fjluquerodriguez
Copy link

Currently in grid mode, if i use expand action:

action: custom:frigate-card-action
frigate_card_action: expand

full grid (with all cameras) is expanded, so really, there is no so much difference... Maybe It will be more usefull if only selected camera will be expanded...

Alternatively I'm triying to open a popup with tap_action:

  actions:
    tap_action:
      - action: perform-action
        perform_action: script.popup_camera
        data:
          camera: camera.porche

This works but as you can see camera is static... I don't know how do it dynamic:

I've tried templating:

  actions:
    tap_action:
      - action: perform-action
        perform_action: script.popup_camera
        data:
          camera: "{{this.entity_id}}"

but seems that templates are not evaluated...

Thanks

@dermotduffy
Copy link
Owner

@fjluquerodriguez It would help if you could describe what are you trying to do. Would you mind saying a little more about what you are trying to achieve, and I'll see if I can think of way to achieve it?

@fjluquerodriguez
Copy link
Author

@dermotduffy i'm trying to show a camera in full screen or expanded (only that camera) when I click on the camera in grid mode. Now, it expands all cameras (full grid). I know that I can do clicking in the camera (camera is selected) and then click in the grid button of the menu. But when I have a lot of cameras, thats is not easy or "confortable"... I think It will be better to click to zoom and a close button in order to return to the grid view. Thats is that i'm triting with tap_action and script but without templating available is imposible... thanks

@dermotduffy
Copy link
Owner

Thanks @fjluquerodriguez . When you click on a camera in grid mode, it should already "zoom into that camera" (the degree it scales is controlled by grid_selected_width_factor. I think you're looking for some sort of alternative, that instead of scaling that camera within the grid, when you click on it, it instead "pops up" only that camera. Is that right?

I could imagine a new parameter grid_select_action which has these values:

  • scale: Scales the camera within the grid [default today]
  • expand: Selects that camera only, and expands it. When the expanded camera closes, it returns the card to the grid.

Is that the kind of thing you're looking for?

@fjluquerodriguez
Copy link
Author

That's exactly @dermotduffy. It would be great to have it! Thanks

@dermotduffy dermotduffy changed the title Grid view - Expand only selected camera Allow cameras to popup from the grid Jan 29, 2025
@dermotduffy dermotduffy added the feature New feature or request label Jan 29, 2025
@dermotduffy
Copy link
Owner

OK, got it. The more votes the top comment gets, the more likely I am to prioritize this on the stack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants