Picture-element tap_action more-info camera pop-up

i have a PTZ foscam which is exposed in a picture-elements card (similar to what the documentation also offers). It works as expected - the lovelace card shows a live stream from the camera and the buttons move it around. I just can’t figure out how to make a bigger pop-up of the camera stream when i click the image in the card (i want basically the same behaviour as when clicking the picture-entity).
does anybody have a clue how to achieve this?

3 Likes

I am after exactly the same information. Did you get it going?

Not optimal, but some kind of workaround:

  • Create a new view (tab) in badge mode, e.g. “camera door”
  • Add camera as first element. Should now be full width
  • for the original picture entity card change tap action to navigate and path to the newly created tab (e.g. /lovelace/camera-door)

I use browser_mod to do this, using the pop up cards

1 Like

Hi there, thanks for this tip, would you mind sharing your config to the tap action on the camera stream? I can’t seem to get it to function but think I must be adding it to the wrong place in the UI yaml.

type: picture-elements
image: camera.name_camera
camera_image: camera.name_camera
camera_view: live
elements:
  - type: image
    entity: camera.name_camera
    camera_image: camera.name_camera
    camera_view: live
    style:
      top: 50%
      left: 50%
      width: 100%
      opacity: 0%
4 Likes