Photo and Video stream from cayenne dashboard

you can try something like this Take picture when motion with Pi 3 and Agent 2.0 CayenneMQTTClient() and notify by email - how to trigger a script on Pi 3