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

Change number of cameras based on HA state does not work #1263

Closed
brpeterso opened this issue Sep 3, 2023 · 2 comments
Closed

Change number of cameras based on HA state does not work #1263

brpeterso opened this issue Sep 3, 2023 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@brpeterso
Copy link

I have several indoor cameras that I have turned off by a switch when we're home. Currently, these cameras take up space in the card that you have to scroll through. I see there is a hide camera from UI...could there be an option that allows you to hide/unhide it based on a sensor/switch?

@dermotduffy
Copy link
Owner

This should be possible with something like this, but I can't quite get it to work to change the number of cameras, so I'm going to leave this issue open to investigate further:

type: custom:frigate-card
cameras:
  - camera_entity: camera.back_yard
  - camera_entity: camera.sitting_room
overrides:
  - conditions:
      state:
        - entity: switch.whatever
          state: 'off'
    overrides:
      cameras:
        - camera_entity: camera.sitting_room

@dermotduffy dermotduffy changed the title Hide cameras based on switch/sensor Change number of cameras based on HA state does not work Sep 3, 2023
@dermotduffy dermotduffy added the bug Something isn't working label Sep 3, 2023
@dermotduffy dermotduffy added this to the v6.0.0 milestone Feb 9, 2024
@dermotduffy
Copy link
Owner

This is fixed on the dev branch and will be in the next release. The new documentation site includes an example that is this literal usecase:

https://dermotduffy.github.io/frigate-hass-card/#/examples?id=remove-a-camera-when-an-entity-state-changes

@github-actions github-actions bot locked and limited conversation to collaborators Oct 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants