Advanced Camera Card - Toggle pan and zoom layout

So, I’ve searched and searched and even the documentation doesn’t provide me with an answer… so I’m afraid it’s not even possible. You are my last hope!

I’ve got a camera in the kids room, to keep an eye out when/if she sleeps. By default, I’ve set-up the camera to be zoomed in and panned to the bed. But I want to have a toggle to quickly switch between this (default) zoomed state, and viewing the full camera feed.
Anyone know how to do this? (I tried using template sensors for the pan and zoom values, but the advanced-camera-card does not like this. It seems to want cold hard numbers in the yaml.)

type: custom:advanced-camera-card
cameras:
  - camera_entity: camera.kids_bedroom
    dimensions:
      layout:
        fit: cover
        zoom: 3.7
        pan:
          x: 85
          y: 72
live:
  display:
    mode: grid
view:
  default: live
dimensions:
  aspect_ratio_mode: static
  aspect_ratio: "16:9"

Which camera brand and model is integrated?

Ah, I posted too soon. I actually did manage to solve this, with help of the documentation.
I added an automation to the camera card, to base its zoom on a input_boolean that I can toggle with a button.

type: custom:advanced-camera-card
cameras:
  - camera_entity: camera.kids_bedroom
    dimensions:
      layout:
        fit: cover
live:
  display:
    mode: grid
    grid_columns: 1
view:
  default: live
automations:
  - conditions:
      - condition: state
        entity: binary_sensor.camera_zoom
        state: 'on'
    actions:
      - action: custom:advanced-camera-card-action
        advanced_camera_card_action: ptz_digital
        target_id: camera.kids_bedroom
        absolute:
          zoom: 3.7
          pan:
            x: 85
            y: 72
    actions_not:
      - action: custom:advanced-camera-card-action
        advanced_camera_card_action: ptz_digital
        target_id: camera.kids_bedroom

So I hope this helps anyone else that couldn’t find this. :slight_smile:

EDIT: Thanks still @LiQuid_cOOled btw for responding to this topic so fast. Much appreciated!