I have similar need to show 3 cameras in a loop within a card and re-purposed Slideshow card for that. Excellent card BTW, works great except I can’t figure out how to skip showing camera(s).
Prompted by your question, I just re-work my setup using this:
- type: conditional
conditions:
- entity: input_number.camera_loop
state_not: "9"
card:
type: picture-glance
title: Camera Loop
state_image:
0: https://localhost:8123/api/camera_proxy_stream/camera.carport?api_password=password
1: https://localhost:8123/api/camera_proxy_stream/camera.dining?api_password=password
2: https://localhost:8123/api/camera_proxy_stream/camera.kitchen?api_password=password
entity: input_number.camera_loop
entities:
[camera.carport, camera.dining, camera.kitchen]
To drive this card:
- camera_loop controls which camera to display or not display card at all
- an automation triggers every x second (display duration) to call a python script to update camera_loop based on motion detection state of camera
I also have 3 separate picture-glance cards to display each camera only when motion detected. So the camera is either shown in the loop card or its own.