Camera snapshot always returns the same image

I have Unifi cameras and one of them is the G4 doorbell. I’m trying to setup a simple automation that triggers when the doorbell camera sees a person, takes a snapshot and sends it to my phone. However, the jpg file created is NOT the doorbell camera, it’s the package camera. What’s even stranger is that if I pick any other random camera, trigger the snapshot I STILL get a still frame of the doorbell package camera. I know the file is new because I manually delete it every time (under www/tmp/front_door_person.jpg)

I know the entity is right, because if I look at it directly under “entities” it’s the correct stream. And, if I bring up the stream, click “download snapshot” in the browser, it’s correct.

Can anyone help me figure out what’s going on?

Ah, this turned out to be a caching issue with Cloudflare…

omg I’ve been trying to figure out my problem for weeks. Never thought that Cloudflare could be the cause. I’ve disabled caching and will see if that fixes it.