Lovelace Picture Glance image when camera is offline

The following is part of my lovelace config

cards:
  - type: picture-glance
    title: Soggiorno
    entities:
      - light.soggiorno
      - sensor.tt_t1
      - sensor.tt_h1
      - sensor.t_media_player_samsung_q7f
    camera_image: camera.Soggiorno

When camera.Soggiorno is offline I get a “broken symbol” image with different size respect to my default camerav view, this cause a horrible disallineament of the views.
So… there’s a way to set a default offline image for the cameras or some workarounds to catch the offline and fix it in some way?

1 Like

if you have a sensor to know if camera is down you could use conditonnal to solve that

      - type: conditional
        conditions:
          - entity: sensor.camera
            state: "on"
        card:
          type: picture-glance
          title: Camera
          entities:
            - light.soggiorno
            - sensor.tt_t1
            - sensor.tt_h1
            - sensor.t_media_player_samsung_q7f
          camera_image: camera.Soggiorno
1 Like

Thank! :+1:
Well… it’s possible to put and “else” condition if image if the camera is “not on”? or I must write another type with a negate condition like this

  - type: conditional
    conditions:
      - entity: sensor.camera
        state: "off"
    card:
      type: picture-glance
      title: Camera
      entities:
        - light.soggiorno
        - sensor.tt_t1
        - sensor.tt_h1
        - sensor.t_media_player_samsung_q7f
     image: default.jpg

Did you find a way to have an “else” condition with the conditional card? I still don’t know how to show a different card when the condition is not fulfilled