Advanced Camera Card - Switch to active camera

I have few displays showing me the camera feed from multiple cameras. The display shows each camera for 5 seconds then on to the next. This is all works just fine. What I would like to change is when one of the cameras detects motion the display switched to the live feed of that camera for the next 30 seconds. {Code to follow}

Is this possible? I tried to get it to switch and hold for 10 seconds but never got that code to happen.

Greg

type: custom:advanced-camera-card
camera_entity: camera.10_10_10_82
live_provider: go2rtc
go2rts:
  modes:
    - webrtc
cameras:
  - camera_entity: camera.garage
    live_provider: auto
    frigate:
      url: localhost
    triggers:
      motion: false
  - camera_entity: camera.frontcam
    live_provider: ha
  - camera_entity: camera.littlecam
  - camera_entity: camera.10_10_10_84
    triggers:
      occupancy: true
      motion: true
live:
  preload: true
  zoomable: false
view:
  default: live
  default_reset:
    every_seconds: 5
  default_cycle_camera: true
  triggers:
    actions:
      trigger: live
      untrigger: default
    untrigger_seconds: 10

How about creating a new switch based on motion that turns on with motion, and off after 20 seconds. Put that in Trigger from other entities

Looks like Trigger Live is designed to do this.

The example is very basic. It’ll take a bit of figuring out all the settings needed to do what you are after.

will look into this. You are right, example is very small.

Any luck on this? I’ve been trying todo something similar like this too but I gave up.

A few hits and misses. Looking at having two cards. One rotating through the camera, the other displaying steady feed of last active camera.

Tried doing it on one card, but the rotating camera feed trumped the steady feed from active camera. Not found a way around that yet