#Picture-Glance: Offline Image

1 messages · Page 1 of 1 (latest)

paper ledge
#

I'm trying to figure out how to show a static image when the camera is offline, but can't find a way.
An imagine is already defined, so it should show the image automatically, but for some reason it shows this broken image.

I'm guessing, that the card is unable to detect that the camera is offline?
Here's the yaml:

camera_view: auto
type: picture-glance
title: Kitchen
entities:
  - entity: switch.kitchen_camera_motion_detection
camera_image: camera.kitchen_camera_live_view
entity: camera.kitchen_camera_live_view
aspect_ratio: "16:7"
visibility:
  - condition: state
    entity: switch.kitchen_camera
    state: "on"
image: /api/image/serve/71d6e62a9fe122bc7e3767fe5c1bc18d/512x512

How can I resolve this? thanks.

#

A workaround is to use conditional card, but I'd rather find a better way of handling it. Alternative, it would've been nice if picture-glance card supported templating.
I also tried card-mod, but couldn't find a working method unfortunately.

visual gorge
#

I don't think using camera_image and image is supported by this card.

#

It doesn't have any fallback logic, if you give it a camera_image, it's going to try to use that, whether it's working or not

paper ledge
#

image was uploaded via the gui. If that's the case, it's quite strange that this isn't the default logic tbh
I'm guessing there is no workaround, other than using a custom card?

visual gorge
#

I'm not that familiar with cameras, is there a way to know if it is offline, via entity state?

#

Conditional card could work if that was the case.

paper ledge
#

I'm using tp-link camera, so there is a switch and camera entity I can use, via unavailable or off states, but I didn't really wanna go down the conditional card route. Seems like a HA limitation on the picture-entity card unfortunately.

Anyhow, appreciate your help!