Responding to myself here, because after digging some more I found a rather simple solution to this.
I added the âavailability_topicâ attribute to my MQTT cameras and made sure that Blu Iris sends the payload âonlineâ as well as the image whenever it detects motion. My MQTT cameras will then have the state âunavailableâ if no motion has been detected, this will change to âidleâ as soon as it gets an image and âonlineâ as its âavailability_topicâ. The latter was the key to the solution. Now the âpicture-glanceâ cards for each of my MQTT cameras will only show if any movement has been detected, in which case it shows the snapshot from the last alert. Not sure if this is the easiest way to achieve this, but it works.
Working code:
type: custom:auto-entities
card:
type: picture-glance
camera_view: auto
entities: []
camera_image: camera.front_door_mqtt
filter:
include:
- entity_id: camera.front_door_mqtt
state: idle
show_empty: false