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

Make view configuration overridable #529

Closed
tytlau opened this issue May 1, 2022 · 3 comments
Closed

Make view configuration overridable #529

tytlau opened this issue May 1, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@tytlau
Copy link

tytlau commented May 1, 2022

Hi all, thanks a lot for the work in making this card. I have recently incorporated Frigate and this lovelace card into my HA and it is working well. Thanks!

If not already possible, can I use HA template syntax within frigate lovelace card?

My camera gets its power through a smart switch (which is integrated with HA as well). What I would like to achieve is, if the switch (and hence the camera) is on, the default view of frigate lovelace card is 'live'. If switch is off, the default view is 'image'. This way, when my camera is off (such as when I am at home), HA would not keep trying to get a live stream (and therefore keep showing a spinning icon).

If this can already be acheived by existing funtionality of the card, would be great to hear some advice!

Thanks

(PS sorry not sure if this is the right place to post this - please feel free to move this to somewhere else in the forum)

@dermotduffy
Copy link
Owner

Hi @tytlau , thanks for the feature request.

Short answer: This is not currently possible.

Longer answer: I'm currently (yesterday!) working on #418 . With that, it would allow overrides to apply to the card based on HA state. I'd also need to make the view configuration section overridable, but I think with both of those you'd have what you need.

I'll keep this bug open to refer to the second half of this feature request. So leave it with me ...

@dermotduffy dermotduffy added the enhancement New feature or request label May 1, 2022
@dermotduffy dermotduffy changed the title Template Support Make view configuration overridable May 1, 2022
@dermotduffy
Copy link
Owner

OK -- everything required for this should now be in. I have this working in my test environment, and have added this exact situation as an example in the README for the 4.0.0 branch.

Note that you won't be able to use this until the 4.0.0 branch is released (unless you do your own test build in the meantime).

@tytlau
Copy link
Author

tytlau commented May 8, 2022

@dermotduffy thanks for the reply! I will eagerly wait for the release!

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

No branches or pull requests

2 participants