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

Options around handling of offline cameras #891

Closed
nibagit opened this issue Nov 10, 2022 · 4 comments
Closed

Options around handling of offline cameras #891

nibagit opened this issue Nov 10, 2022 · 4 comments

Comments

@nibagit
Copy link

nibagit commented Nov 10, 2022

Options around handling of offline cameras, we turn off inside of the house cameras when we are at our home, however this means we either have cameras with an old time stamp (which one might not notice) and/or an blank camera. It would be great if there is some way to either have a 1. standard image indicating status 2. last camera image with an overlay status 3. have the cameras not appear in the list....currently using a switch to turn off power to camera, future might use API to switch off (no change to feature request) or use it to switch off recording (feature to state NOT RECORDING in an overlay). Anyways thank you for creating this card it works great as-is already!!!

@dermotduffy
Copy link
Owner

Thanks for the request. Does Home Assistant itself notice that the camera is offline? i.e. does the camera state change to unavailable? I'm guessing not, because otherwise I think the card would throw an error when you try to look at the camera.

Reason I ask: Unless Home Assistant knows the camera is offline, there's no way the card can do anything different.

@dermotduffy dermotduffy changed the title Options around handling of offline cameras, we turn off inside of the house cameras when we are at our home, however this means we either have cameras with an old time stamp (which one might not notice) and/or an blank camera. It would be great if there is some way to either have a 1. standard image indicating status 2. last camera image with an overlay status 3. have the cameras not appear in the list....currently using a switch to turn off power to camera, future might use API to switch off (no change to feature request) or use it to switch off recording (feature to state NOT RECORDING in an overlay). Anyways thank you for creating this card it works great as-is already!!! Options around handling of offline cameras Nov 11, 2022
@nibagit
Copy link
Author

nibagit commented Nov 12, 2022

HA only knows that the zwave device (switch) is off that powers the camera, actually no error in the frigate or the card nor an unavailable message I have seen two states either just blank OR solid green (most common) OR a picture from the last time it was connected (not sure how I got that as I have been unable to reproduce it). Current "work around" is that I have both cameras listed as the last ones, so they don't show up directly. Guess having some way to make the camera conditional in HA either through a device tracker OR through the state of the switch would be an option and have that allow for a feature in the card or use a static image+message OR text, maybe?

@felipecrs
Copy link
Contributor

The Frigate Hass Card has already a nice handler for camera entities in unavailable states, now the only pending thing is to make the Frigate integration turn cameras into unavailable when they stop sending frames to ffmpeg:

I would suggest closing this issue in favor of the one above.

@dermotduffy
Copy link
Owner

Agree -- it makes much more sense to implement this on the integration side (and then it will "just work" in the card). Closing this for now and we can track progress on the other bug. Thanks!

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

No branches or pull requests

3 participants