dermotduffy / frigate-hass-card

A Lovelace card for Frigate in Home Assistant
MIT License
542 stars 60 forks source link

frigate-card broken when card-condition refer to a card offline #1384

Closed itispip closed 6 days ago

itispip commented 7 months ago

Issue: When there has no card-condition, one camera offline won't break the card, the offline card will either be displayed as black or as an image; Below YAML have card-condition refer to a card id yard_camera_card, when this camera got offline, the whole frigate_card won't work including the online living_room_camera

YAML Code

type: custom:frigate-card cameras: -- camera_entity: camera.backyard_1 id: yard_camera_card live_provider: go2rtc -- camera_entity: camera.camera_1 id: livingroom_camera_card live_provider: go2rtc elements: -- type: custom:frigate-card-conditional conditions: camera: -- yard_camera_card view: {}

What's expected one camera offline won't break the whole card, the offline card will either be displayed as black or as an image;

msth commented 7 months ago

have the same problem. Unfortunately for me the vacuum cleaner exists as a camera element. but this does not send an image in the proper sense and is therefore offline. Now no cameras are displayed

msth commented 6 months ago

image

REASystemeEDV commented 5 months ago

the problem is still there

Gadeo commented 5 months ago

Yes, still the problem. I got five cameras and one is online only at night. So sadly I eliminated frigate-card for work properly. Any suggestion?

dermotduffy commented 5 months ago

FYI: This is already fixed in the dev branch, so it's just a matter of waiting for the next release. The dev branch will render an error for a broken camera, but the rest of the card should otherwise work just fine.

dermotduffy commented 6 days ago

[Issue cleanup] I believe this is fixed with the v6 releases, please re-open if not.