Skip to content

Card should display "Camera unavailable..." even if Frigate integration is not loaded #2214

Description

@felipecrs

Checklist:

[REQUIRED] Card diagnostic information:

Diagnostics are not available when the card is in this state.

[REQUIRED] Description of problem:

When the Frigate integration is not loaded (like right after rebooting the Home Assistant OS when Frigate is running as an add-on), the card will show this error:

Image

However, I believe it should have showed this instead:

Image

For two reasons:

  1. That is way more user friendly and better represents the state of the entity. In this card specifically I don't even use any Frigate-specific feature, which makes it even more confusing.
  2. This error will not auto-recover once the entity is back available. The Camera unavailable... handle recovering just fine.

See a demonstration:

chrome_MuBFJmpZXT.mp4
type: custom:advanced-camera-card
cameras:
  - camera_entity: camera.video_porteiro
    live_provider: image
    image:
      refresh_seconds: 1
profiles:
  - low-performance
dimensions:
  aspect_ratio_mode: static
  aspect_ratio: "16:9"
menu:
  style: none

To provoke this issue, you can:

  1. Turn off Frigate
  2. Reload Frigate integration, wait for it to enter unload state
  3. Check the card

[OPTIONAL] Last working release (if known): N/A

[OPTIONAL] Javascript errors shown in the web inspector: N/A

[OPTIONAL] Additional information: N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Priority: LowbugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions